There is no need to a drop down list when there is only one import format available. Select that import format automatically instead.

CommentFileSizeAuthor
#1 938448_1_biblio_import_form.patch1.93 KBscor

Comments

scor’s picture

Status: Active » Needs review
StatusFileSize
new1.93 KB
rjerome’s picture

Accepted mostly as posted except for...

    $form['message'] = array (
      '#markup' => 'You can either choose to import from a file or directly paste a list of IDs.<br />',
     );

which would appear to be specific to PubMed import types.

And changed the import type to use the "#description" attribute of the "file" input field...

      $form['biblio_import_file']['#description'] = t('Import type: ') . current($import_options);

http://drupal.org/cvs?commit=434770

scor’s picture

Status: Needs review » Fixed

yeah, I initially wrote the patch with PubMed in mind, knowing it would need to be generalized. I posted the patch for the records.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.