Browse Source

Cosmetic improvements to book ingest process.

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
1cfd45cc02
  1. 22
      ilives/book.inc

22
ilives/book.inc

@ -36,16 +36,17 @@ class IslandoraBook {
'#title' => 'Catalogue item URL', '#title' => 'Catalogue item URL',
); );
$form['unapi_url_submit'] = array( $form['unapi_url_submit'] = array(
'#type' => 'submit', '#type' => 'submit',
'#value' => t('Retrieve MODS record'), '#value' => t('Retrieve MODS record'),
'#submit' => array('fedora_ilives_retrieve_unapi_submit'), '#submit' => array('fedora_ilives_retrieve_unapi_submit'),
'#ahah' => array( '#ahah' => array(
'path' => 'fedora/ilives/retrieve_unapi/js', // path we defined in hook_menu 'path' => 'fedora/ilives/retrieve_unapi/js', // path we defined in hook_menu
'wrapper' => 'mods-wrapper', // the HTML that wraps the element that needs to be replaced 'wrapper' => 'mods-wrapper', // the HTML that wraps the element that needs to be replaced
'method' => 'replace', // the method we're going to use: a replace operation 'method' => 'replace', // the method we're going to use: a replace operation
'effect' => 'fade', // the effect used when replacing the element (try fade!) //'effect' => 'fade', // the effect used when replacing the element (try fade!)
) ),
); '#suffix' => '<br/>',
);
drupal_add_js('', 'inline'); drupal_add_js('', 'inline');
// We define a <div> wrapper. Everything in it will be replaced. // We define a <div> wrapper. Everything in it will be replaced.
$form['mods'] = array( $form['mods'] = array(
@ -56,6 +57,7 @@ class IslandoraBook {
$form['mods']['mods_record'] = array( $form['mods']['mods_record'] = array(
'#type' => 'textarea', '#type' => 'textarea',
'#title' => 'MODS Record to Import', '#title' => 'MODS Record to Import',
'#rows' => 20,
'#value' => (!empty($mods_save) ? $mods_save['mods']['mods_record'] : ''), '#value' => (!empty($mods_save) ? $mods_save['mods']['mods_record'] : ''),
); );
return $form; return $form;

Loading…
Cancel
Save