From 120b0f2bb4fe80e1fee68ea15b74a34cbd0eed9e Mon Sep 17 00:00:00 2001 From: Mitchell MacKenzie Date: Thu, 24 May 2012 10:06:29 -0300 Subject: [PATCH] Tweaks to get_information --- .../islandora_basic_collection.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'); + } } }