|
|
@ -138,7 +138,7 @@ function islandora_basic_collection_get_objects($object) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function islandora_basic_collection_islandora_ingest_get_information($models, $object) { |
|
|
|
function islandora_basic_collection_islandora_ingest_get_information($models, $object) { |
|
|
|
if(in_array('islandora:collectionCModel', $models) && isset($object['COLLECTION_POLICY'])) { |
|
|
|
if(in_array('info:fedora/islandora:collectionCModel', $models) && isset($object['COLLECTION_POLICY'])) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
$return = array(); |
|
|
|
$return = array(); |
|
|
|
$xml = new SimpleXMLElement($object['COLLECTION_POLICY']); |
|
|
|
$xml = new SimpleXMLElement($object['COLLECTION_POLICY']); |
|
|
@ -155,6 +155,8 @@ function islandora_basic_collection_islandora_ingest_get_information($models, $o |
|
|
|
|
|
|
|
|
|
|
|
return $return; |
|
|
|
return $return; |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception $e) { } |
|
|
|
catch (Exception $e) { |
|
|
|
|
|
|
|
drupal_set_message(t('Islandora Error getting collection info for %s', array('%s' => $object->id)), 'error'); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|