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