diff --git a/module/VuFind/src/VuFind/Controller/AbstractRecord.php b/module/VuFind/src/VuFind/Controller/AbstractRecord.php index 3f7e7ccd2b944ccdb974e2fbda21d454cbf7b04c..737a732841750c2922cd3baf980fb0f35c2803f2 100644 --- a/module/VuFind/src/VuFind/Controller/AbstractRecord.php +++ b/module/VuFind/src/VuFind/Controller/AbstractRecord.php @@ -529,6 +529,17 @@ class AbstractRecord extends AbstractBase return $this->redirect()->toUrl($target . $params); } + /** + * Get the tab configuration for this controller. + * + * @return array + */ + protected function getTabConfiguration() + { + $cfg = $this->getServiceLocator()->get('Config'); + return $cfg['recorddriver_tabs']; + } + /** * Get all tab information for a given driver. * @@ -538,11 +549,10 @@ class AbstractRecord extends AbstractBase { if (null === $this->allTabs) { $driver = $this->loadRecord(); - $cfg = $this->getServiceLocator()->get('Config'); $request = $this->getRequest(); $this->allTabs = $this->getServiceLocator() ->get('VuFind\RecordTabPluginManager') - ->getTabsForRecord($driver, $cfg['recorddriver_tabs'], $request); + ->getTabsForRecord($driver, $this->getTabConfiguration(), $request); } return $this->allTabs; }