diff --git a/islandora.module b/islandora.module index 6d486a1b..e40a98df 100644 --- a/islandora.module +++ b/islandora.module @@ -90,6 +90,13 @@ function islandora_menu() { '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( 'title' => 'Repository', 'page callback' => 'islandora_view_object', @@ -381,6 +388,11 @@ function islandora_purge_datastream($object_id, $datastream_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 * their modules want to provide a view for.