Browse Source

ISLANDORA-318 Updated the class in core which shows the detailed list of content. Renamed it from FedoraObject -> FedoraObjectDetailedContent. This will allow the new API to be used with the newest release of Islandora.

pull/17/head
jonathangreen 13 years ago
parent
commit
36997226e6
  1. 4
      fedora_repository.module
  2. 8
      plugins/FedoraObjectDetailedContent.inc

4
fedora_repository.module

@ -799,7 +799,7 @@ function fedora_repository_get_items($pid = NULL, $dsId = NULL, $collection = NU
module_load_include('inc', 'fedora_repository', 'CollectionClass'); module_load_include('inc', 'fedora_repository', 'CollectionClass');
$collectionClass = new CollectionClass(); $collectionClass = new CollectionClass();
module_load_include('inc', 'fedora_repository', 'ContentModel'); module_load_include('inc', 'fedora_repository', 'ContentModel');
module_load_include('inc', 'fedora_repository', 'plugins/fedoraObject'); module_load_include('inc', 'fedora_repository', 'plugins/FedoraObjectDetailedContent');
$breadcrumbs = array(); $breadcrumbs = array();
$objectHelper->getBreadcrumbs($pid, $breadcrumbs); $objectHelper->getBreadcrumbs($pid, $breadcrumbs);
drupal_set_breadcrumb(array_reverse($breadcrumbs)); drupal_set_breadcrumb(array_reverse($breadcrumbs));
@ -824,7 +824,7 @@ function fedora_repository_get_items($pid = NULL, $dsId = NULL, $collection = NU
} }
} }
// Add a 'manage object' tab for all objects, where detailed list of content is shown. // Add a 'manage object' tab for all objects, where detailed list of content is shown.
$obj = new FedoraObject($pid); $obj = new FedoraObjectDetailedContent($pid);
$object_details = $obj->showFieldSets(); $object_details = $obj->showFieldSets();
$cmodels_tabs = array_merge($cmodels_tabs, $object_details); $cmodels_tabs = array_merge($cmodels_tabs, $object_details);
return tabs_render($cmodels_tabs); return tabs_render($cmodels_tabs);

8
plugins/fedoraObject.inc → plugins/FedoraObjectDetailedContent.inc

@ -4,13 +4,15 @@
/** /**
* @file * @file
* FedoraObject class * FedoraObjectDetailedContent class
*/ */
/** /**
* Fedora Object class ?? * Fedora Object. This class is a plugin called from content models to display a detailed list of
* content of the Fedora Item. This is hard coded into Islandora core, and it can also be called
* from the IslandoraCM stream.
*/ */
class FedoraObject { class FedoraObjectDetailedContent {
/** /**
* Constructor * Constructor
Loading…
Cancel
Save