diff --git a/islandora_basic_collection/islandora_basic_collection.module b/islandora_basic_collection/islandora_basic_collection.module index caf3d17a..e329ebaf 100644 --- a/islandora_basic_collection/islandora_basic_collection.module +++ b/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) { - if(in_array('islandora:collectionCModel', $models) && isset($object['COLLECTION_POLICY'])) { + if(in_array('info:fedora/islandora:collectionCModel', $models) && isset($object['COLLECTION_POLICY'])) { try { $return = array(); $xml = new SimpleXMLElement($object['COLLECTION_POLICY']); @@ -155,6 +155,8 @@ function islandora_basic_collection_islandora_ingest_get_information($models, $o return $return; } - catch (Exception $e) { } + catch (Exception $e) { + drupal_set_message(t('Islandora Error getting collection info for %s', array('%s' => $object->id)), 'error'); + } } }