diff --git a/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php b/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php index 48e1d7084474643bb420bebb818c5a72764d0f64..697f1cc77d783e638d32cff2d01e9700d2927ce8 100644 --- a/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php +++ b/module/finc/src/finc/RecordDriver/SolrDefaultFincTrait.php @@ -57,7 +57,7 @@ trait SolrDefaultFincTrait * * @return bool */ - public function isCollection() +/* public function isCollection() { // first check as always if we have a collection $isCollection = parent::isCollection(); @@ -71,7 +71,7 @@ trait SolrDefaultFincTrait // if we've come so far this record is no collection return false; } - +*/ /** * Get all call numbers associated with the record (empty string if none). * diff --git a/module/finc/src/finc/RecordTab/HierarchyTree.php b/module/finc/src/finc/RecordTab/HierarchyTree.php index 1e764d10cea6fdadb8e025556afcb183a42a88c5..d1fed01c1fa293a1223d4e2900d353b6c7a26e50 100644 --- a/module/finc/src/finc/RecordTab/HierarchyTree.php +++ b/module/finc/src/finc/RecordTab/HierarchyTree.php @@ -62,16 +62,23 @@ class HierarchyTree extends \VuFind\RecordTab\HierarchyTree $this->config = $config; } + public function getDescription() + { + if ($this->driver->isCollection()) return parent::getDescription(); + else return 'From same Collection'; + } + /** * Is this tab active? * * @return bool */ - public function isActive() +/* public function isActive() { return ( $this->getRecordDriver()->tryMethod('isSingleElementHierarchyRecord') ? false : parent::isActive() ); } +*/ }