|
|
|
@ -122,13 +122,11 @@ function fedora_repository_ingest_form_submit($form, &$form_state) {
|
|
|
|
|
if ($form_state['storage']['xml']) { |
|
|
|
|
module_load_include('inc', 'xml_form_api', 'XMLForm'); |
|
|
|
|
$xml_form = new XMLForm($form_state); |
|
|
|
|
if ($xml_form->isInitialized()) { |
|
|
|
|
$doc = $form->submit($drupal_form, $form_state); |
|
|
|
|
$doc = $xml_form->submit($form, $form_state); |
|
|
|
|
$document = $doc->document; |
|
|
|
|
dom_document_pretty_print($document); |
|
|
|
|
exit(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if ($form_state['clicked_button']['#id'] == 'edit-submit') { |
|
|
|
|
global $base_url; |
|
|
|
|
module_load_include('inc', 'fedora_repository', 'CollectionClass'); |
|
|
|
@ -644,13 +642,11 @@ function fedora_repository_edit_qdc_form_submit($form, &$form_state) {
|
|
|
|
|
if ($form_state['storage']['xml']) { |
|
|
|
|
module_load_include('inc', 'xml_form_api', 'XMLForm'); |
|
|
|
|
$xml_form = new XMLForm($form_state); |
|
|
|
|
if ($xml_form->isInitialized()) { |
|
|
|
|
$doc = $form->submit($drupal_form, $form_state); |
|
|
|
|
$doc = $xml_form->submit($form, $form_state); |
|
|
|
|
$document = $doc->document; |
|
|
|
|
dom_document_pretty_print($document); |
|
|
|
|
exit(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
module_load_include('inc', 'fedora_repository', 'ConnectionHelper'); |
|
|
|
|
global $base_url; |
|
|
|
|