The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit abe0c764 authored by Demian Katz's avatar Demian Katz
Browse files

Make simple container links more generic.

- Fixes compatibility with Search2 backend.
parent 09434e17
No related merge requests found
......@@ -271,7 +271,8 @@ class SolrDefault extends DefaultRecord
);
// Disable highlighting for efficiency; not needed here:
$params = new \VuFindSearch\ParamBag(['hl' => ['false']]);
return $this->searchService->search('Solr', $query, 0, 0, $params)
return $this->searchService
->search($this->sourceIdentifier, $query, 0, 0, $params)
->getTotal();
}
......
......@@ -229,7 +229,10 @@ class RecordLink extends \Zend\View\Helper\AbstractHelper
public function getChildRecordSearchUrl($driver)
{
$urlHelper = $this->getView()->plugin('url');
$url = $urlHelper('search-results')
$optionsHelper = $this->getView()->plugin('searchOptions');
$route = $optionsHelper->__invoke($driver->getSourceIdentifier())
->getSearchAction();
$url = $urlHelper($route)
. '?lookfor='
. urlencode(addcslashes($driver->getUniqueID(), '"'))
. '&type=ParentID';
......
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