Browse Source

Tweaks to get_information

pull/110/head
Mitchell MacKenzie 13 years ago
parent
commit
120b0f2bb4
  1. 6
      islandora_basic_collection/islandora_basic_collection.module

6
islandora_basic_collection/islandora_basic_collection.module

@ -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');
}
} }
} }

Loading…
Cancel
Save