|
|
@ -90,6 +90,13 @@ function islandora_menu() { |
|
|
|
'access arguments' => array(FEDORA_INGEST), |
|
|
|
'access arguments' => array(FEDORA_INGEST), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$items['islandora'] = array( |
|
|
|
|
|
|
|
'title' => 'Islandora Repository', |
|
|
|
|
|
|
|
'page callback' => 'islandora_view_default_object', |
|
|
|
|
|
|
|
'type' => MENU_NORMAL_ITEM, |
|
|
|
|
|
|
|
'access arguments' => array(FEDORA_VIEW), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$items['islandora/object/%'] = array( |
|
|
|
$items['islandora/object/%'] = array( |
|
|
|
'title' => 'Repository', |
|
|
|
'title' => 'Repository', |
|
|
|
'page callback' => 'islandora_view_object', |
|
|
|
'page callback' => 'islandora_view_object', |
|
|
@ -381,6 +388,11 @@ function islandora_purge_datastream($object_id, $datastream_id) { |
|
|
|
drupal_goto('islandora/object/' . $object_id); |
|
|
|
drupal_goto('islandora/object/' . $object_id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function islandora_view_default_object() { |
|
|
|
|
|
|
|
$pid = variable_get('islandora_repository_pid', 'islandora:root'); |
|
|
|
|
|
|
|
return islandora_view_object($pid); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* The view entry point. modules should implement hook_islandora_view_object for the Fedora Content models that |
|
|
|
* The view entry point. modules should implement hook_islandora_view_object for the Fedora Content models that |
|
|
|
* their modules want to provide a view for. |
|
|
|
* their modules want to provide a view for. |
|
|
|