function tripal_pub_citation_form

2.x tripal_pub.pub_citation.inc tripal_pub_citation_form($form, &$form_state)
3.x tripal_chado.pub_importers.inc tripal_pub_citation_form($form, &$form_state)
1.x pub_citation.inc tripal_pub_citation_form($form_state)

The admin form for submitting job to create citations

Parameters

$form_state:

Related topics

1 string reference to 'tripal_pub_citation_form'
tripal_pub_menu in tripal_pub/tripal_pub.module
Implements hook_menu().

File

tripal_pub/includes/tripal_pub.pub_citation.inc, line 14
Functions to manage citations

Code

function tripal_pub_citation_form($form, &$form_state) {

  $form['instructions'] = array(
    '#markup' => '<p>Use this form to unify publication citations. Citations are created automtically when
      importing publications but citations are set by the user when publications are added manually.
      Or publications added to the Chado database by tools other than the Tripal Publication Importer may
      not have citations set. If you are certain that all necessary information for all publications is present (e.g.
      authors, volume, issue, page numbers, etc.) but citations are not consistent, then you can
      choose to update all citations for all publications using the form below. Alternatively, you
      can update citations only for publication that do not already have one.</p>'
  );

  $form['options'] = array(
    '#type' => 'radios',
    '#options' => array(
      'all' => 'Create citation for all publications. Replace the existing citation if it exists.',
      'new' => 'Create citation for publication only if it does not already have one.'),
    '#default_value' => 'all'
  );

  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit')
  );

  return $form;
}