Browse Source

Fixed restConnection line in manage collection policies

pull/123/merge
rwincewicz 13 years ago
parent
commit
c3b3ee1530
  1. 4
      islandora_basic_collection/includes/manage_policies.inc

4
islandora_basic_collection/includes/manage_policies.inc

@ -137,6 +137,7 @@ function islandora_manage_policies_form_validate($form, &$form_state) {
* @param array $form_state
*/
function islandora_manage_policies_form_submit($form, &$form_state) {
module_load_include('module', 'islandora', 'islandora');
$collection_pid = $form_state['values']['parent_collection'];
$collection_object = islandora_object_load($collection_pid);
@ -166,7 +167,8 @@ function islandora_manage_policies_form_submit($form, &$form_state) {
$cp_namespace = $form_state['values']['new_cp_namespace'];
$cp_content_model = $form_state['values']['content_model_to_add'];
$content_model_object = new FedoraObject($cp_content_model, $rest_connection->repository);
// $content_model_object = new FedoraObject($cp_content_model, $rest_connection->repository);
$content_model_object = islandora_object_load($cp_content_model);
$content_model_datastream = $content_model_object->getDatastream(variable_get('Islandora_Content_Model_DSID', 'ISLANDORACM'));
$content_models_element = $collection_policy_xml->getElementsByTagName('content_models');

Loading…
Cancel
Save