|
|
@ -109,13 +109,35 @@ function islandora_menu() { |
|
|
|
'file' => 'includes/metadata.inc', |
|
|
|
'file' => 'includes/metadata.inc', |
|
|
|
'access arguments' => array('administer site configuration'), |
|
|
|
'access arguments' => array('administer site configuration'), |
|
|
|
); |
|
|
|
); |
|
|
|
$items['admin/islandora/solution_packs'] = array( |
|
|
|
$items['admin/islandora/solution_pack_config'] = array( |
|
|
|
'title' => 'Solution packs', |
|
|
|
'title' => 'Solution pack configuration', |
|
|
|
|
|
|
|
'description' => 'Configure Islandora solution packs.', |
|
|
|
|
|
|
|
'access callback' => 'islandora_find_package', |
|
|
|
|
|
|
|
'access arguments' => array('Islandora Solution Packs'), |
|
|
|
|
|
|
|
'type' => MENU_NORMAL_ITEM, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
$items['admin/islandora/islandora_viewers'] = array( |
|
|
|
|
|
|
|
'title' => 'Islandora Viewers', |
|
|
|
|
|
|
|
'description' => 'Configure custom viewers.', |
|
|
|
|
|
|
|
'access callback' => 'islandora_find_package', |
|
|
|
|
|
|
|
'access arguments' => array('Islandora Viewers'), |
|
|
|
|
|
|
|
'type' => MENU_NORMAL_ITEM, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
$items['admin/islandora/islandora_utilities'] = array( |
|
|
|
|
|
|
|
'title' => 'Islandora Utility Modules', |
|
|
|
|
|
|
|
'description' => 'Configure Islandora utility modules.', |
|
|
|
|
|
|
|
'access callback' => 'islandora_find_package', |
|
|
|
|
|
|
|
'access arguments' => array('Islandora Utilities'), |
|
|
|
|
|
|
|
'type' => MENU_NORMAL_ITEM, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
$items['admin/islandora/solution_pack_config/solution_packs'] = array( |
|
|
|
|
|
|
|
'title' => 'Solution packs required objects', |
|
|
|
'description' => 'Install content models and collections required by installed solution packs.', |
|
|
|
'description' => 'Install content models and collections required by installed solution packs.', |
|
|
|
'page callback' => 'islandora_solution_packs_admin', |
|
|
|
'page callback' => 'islandora_solution_packs_admin', |
|
|
|
'access arguments' => array(ISLANDORA_ADD_DS), |
|
|
|
'access arguments' => array(ISLANDORA_ADD_DS), |
|
|
|
'file' => 'includes/solution_packs.inc', |
|
|
|
'file' => 'includes/solution_packs.inc', |
|
|
|
'type' => MENU_NORMAL_ITEM, |
|
|
|
'type' => MENU_NORMAL_ITEM, |
|
|
|
|
|
|
|
'weight' => -1, |
|
|
|
); |
|
|
|
); |
|
|
|
$items['islandora'] = array( |
|
|
|
$items['islandora'] = array( |
|
|
|
'title' => 'Islandora Repository', |
|
|
|
'title' => 'Islandora Repository', |
|
|
@ -1531,6 +1553,11 @@ function islandora_entity_property_info() { |
|
|
|
'label' => t('Content Models'), |
|
|
|
'label' => t('Content Models'), |
|
|
|
'description' => t('The list of content models which the object has.'), |
|
|
|
'description' => t('The list of content models which the object has.'), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
$p['createdDate'] = array( |
|
|
|
|
|
|
|
'type' => 'text', |
|
|
|
|
|
|
|
'label' => t('Created Date'), |
|
|
|
|
|
|
|
'description' => t('When the object was created.'), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return $info; |
|
|
|
return $info; |
|
|
|
} |
|
|
|
} |
|
|
@ -1819,9 +1846,9 @@ function islandora_repair_drupal_filter() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Implements hook_islandora_metadata_display_info(). |
|
|
|
* Implements hook_islandora_metadata_display_info(). |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function islandora_islandora_metadata_display_info() { |
|
|
|
function islandora_islandora_metadata_display_info() { |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'dublin_core' => array( |
|
|
|
'dublin_core' => array( |
|
|
@ -1858,3 +1885,24 @@ function islandora_islandora_datastream_access($op, AbstractDatastream $datastre |
|
|
|
} |
|
|
|
} |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Access for submenu items. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param string $package_name |
|
|
|
|
|
|
|
* Name of the package |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @return bool |
|
|
|
|
|
|
|
* Access granted |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
function islandora_find_package($package_name) { |
|
|
|
|
|
|
|
$results = system_get_info('module'); |
|
|
|
|
|
|
|
$found = FALSE; |
|
|
|
|
|
|
|
foreach ($results as $name => $values) { |
|
|
|
|
|
|
|
if ($values['package'] == $package_name) { |
|
|
|
|
|
|
|
$found = TRUE; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return $found && user_access('administer site configuration'); |
|
|
|
|
|
|
|
} |
|
|
|