Skip to content

Commit

Permalink
Only display CollectionList if record is a collection (#4170)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuomaJuha authored Dec 19, 2024
1 parent 97657b1 commit 8aaa8a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions module/VuFind/src/VuFind/RecordTab/CollectionList.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ public function getParams()
return $this->getResults()->getParams();
}

/**
* Is this tab active?
*
* @return bool
*/
public function isActive()
{
return parent::isActive() && $this->getRecordDriver()->tryMethod('isCollection');
}

/**
* Get the processed search results.
*
Expand Down

0 comments on commit 8aaa8a4

Please sign in to comment.