|
|
|
@ -49,10 +49,9 @@ function islandora_basic_collection_theme($existing, $type, $theme, $path) {
|
|
|
|
|
*/ |
|
|
|
|
function islandora_basic_collection_islandora_get_types() { |
|
|
|
|
$types = array(); |
|
|
|
|
$types['info:fedora/islandora:collectionCModel'][ISLANDORA_VIEW_HOOK] = TRUE; |
|
|
|
|
$types['info:fedora/islandora:collectionCModel'][ISLANDORA_EDIT_HOOK] = FALSE; |
|
|
|
|
$types['islandora:collectionCModel'][ISLANDORA_VIEW_HOOK] = TRUE; |
|
|
|
|
$types['islandora:collectionCModel'][ISLANDORA_EDIT_HOOK] = FALSE; |
|
|
|
|
return $types; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -138,7 +137,7 @@ function islandora_basic_collection_get_objects($object) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function islandora_basic_collection_islandora_ingest_get_information($models, $object) { |
|
|
|
|
if(in_array('info:fedora/islandora:collectionCModel', $models) && isset($object['COLLECTION_POLICY'])) { |
|
|
|
|
if (in_array('islandora:collectionCModel', $models) && isset($object['COLLECTION_POLICY'])) { |
|
|
|
|
try { |
|
|
|
|
module_load_include('inc', 'islandora_basic_collection', 'includes/CollectionPolicy'); |
|
|
|
|
$return = array(); |
|
|
|
@ -147,8 +146,7 @@ function islandora_basic_collection_islandora_ingest_get_information($models, $o
|
|
|
|
|
$return['relationship'] = $policy->getRelationship(); |
|
|
|
|
|
|
|
|
|
return $return; |
|
|
|
|
} |
|
|
|
|
catch (Exception $e) { |
|
|
|
|
} catch (Exception $e) { |
|
|
|
|
drupal_set_message(t('Islandora Error getting collection info for %s', array('%s' => $object->id)), 'error'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|