Skip to content
Snippets Groups Projects
Commit 8f78557c authored by Dorian Merz's avatar Dorian Merz Committed by Frank Morgner
Browse files

refs #11768:

* adds CoverRouter to Record ViewHelper
parent c50e4f14
Branches
Tags
No related merge requests found
......@@ -65,13 +65,19 @@ class Factory
*/
public static function getRecord(ServiceManager $sm)
{
return new Record(
$return = new Record(
$sm->getServiceLocator()->get('VuFind\Config')->get('config'),
$sm->get('url'),
$sm->getServiceLocator()->get('VuFind\AuthManager'),
$sm->getServiceLocator()->get('finc\Rewrite'),
$sm->getServiceLocator()->get('VuFind\Config')->get('Resolver')
);
//due to https://github.com/vufind-org/vufind/pull/718
//we have to explicitly add the cover router (cf. #
$return->setCoverRouter($sm->getServiceLocator()->get('VuFind\Cover\Router'));
return $return;
}
/**
......
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