Skip to content
Snippets Groups Projects
Commit d6805913 authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #13705

* multiple changes in hierarchy display
* adds hierarchy tab to records
* removes isSingleElementHierarchy function
parent c3b649b1
No related merge requests found
...@@ -57,7 +57,7 @@ trait SolrDefaultFincTrait ...@@ -57,7 +57,7 @@ trait SolrDefaultFincTrait
* *
* @return bool * @return bool
*/ */
public function isCollection() /* public function isCollection()
{ {
// first check as always if we have a collection // first check as always if we have a collection
$isCollection = parent::isCollection(); $isCollection = parent::isCollection();
...@@ -71,7 +71,7 @@ trait SolrDefaultFincTrait ...@@ -71,7 +71,7 @@ trait SolrDefaultFincTrait
// if we've come so far this record is no collection // if we've come so far this record is no collection
return false; return false;
} }
*/
/** /**
* Get all call numbers associated with the record (empty string if none). * Get all call numbers associated with the record (empty string if none).
* *
......
...@@ -62,16 +62,23 @@ class HierarchyTree extends \VuFind\RecordTab\HierarchyTree ...@@ -62,16 +62,23 @@ class HierarchyTree extends \VuFind\RecordTab\HierarchyTree
$this->config = $config; $this->config = $config;
} }
public function getDescription()
{
if ($this->driver->isCollection()) return parent::getDescription();
else return 'From same Collection';
}
/** /**
* Is this tab active? * Is this tab active?
* *
* @return bool * @return bool
*/ */
public function isActive() /* public function isActive()
{ {
return ( return (
$this->getRecordDriver()->tryMethod('isSingleElementHierarchyRecord') $this->getRecordDriver()->tryMethod('isSingleElementHierarchyRecord')
? false : parent::isActive() ? false : parent::isActive()
); );
} }
*/
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment