Skip to content
Snippets Groups Projects
Commit 802faef4 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Simplified redundant code.

parent dc546510
Branches
Tags
No related merge requests found
...@@ -76,14 +76,12 @@ class AuthorityController extends AbstractSearch ...@@ -76,14 +76,12 @@ class AuthorityController extends AbstractSearch
public function recordAction() public function recordAction()
{ {
$id = $this->params()->fromQuery('id'); $id = $this->params()->fromQuery('id');
$cfg = $this->serviceLocator->get('Config');
$tabConfig = $cfg['vufind']['recorddriver_tabs'];
$driver = $this->serviceLocator->get(\VuFind\Record\Loader::class) $driver = $this->serviceLocator->get(\VuFind\Record\Loader::class)
->load($id, 'SolrAuth'); ->load($id, 'SolrAuth');
$request = $this->getRequest(); $request = $this->getRequest();
$tabs = $this->serviceLocator $tabs = $this->serviceLocator
->get(\VuFind\RecordTab\PluginManager::class) ->get(\VuFind\RecordTab\PluginManager::class)
->getTabsForRecord($driver, $tabConfig, $request); ->getTabsForRecord($driver, $this->getRecordTabConfig(), $request);
return $this->createViewModel(['driver' => $driver, 'tabs' => $tabs]); return $this->createViewModel(['driver' => $driver, 'tabs' => $tabs]);
} }
......
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