Skip to content
Snippets Groups Projects
Commit b2137b50 authored by Dorian Merz's avatar Dorian Merz
Browse files

Merge branch 'instance/fid' into instance/fid_bbi

parents 33e9cfb9 f5205fda
Branches
Tags
No related merge requests found
...@@ -164,8 +164,15 @@ trait SolrDefaultFincTrait ...@@ -164,8 +164,15 @@ trait SolrDefaultFincTrait
if (is_null($settings)) return false; if (is_null($settings)) return false;
if ($settings instanceof Config) $settings = $settings->toArray(); if ($settings instanceof Config) $settings = $settings->toArray();
foreach ((array) $settings as $value) { foreach ((array) $settings as $value) {
list($methodName, $methodReturn) = explode(':', $value); $conf = explode(':', $value);
if (in_array($methodReturn, (array) $this->tryMethod($methodName))) { $methodName = array_shift($conf);
if (empty($conf))
{
return $methodName === 'enabled';
}
$methodReturn = array_shift($conf);
if (in_array($methodReturn, (array) $this->tryMethod($methodName)))
{
// as the current permission matches the current record, // as the current permission matches the current record,
// return it // return it
return true; return true;
......
...@@ -63,7 +63,7 @@ class ResultFeed extends \VuFind\View\Helper\Root\ResultFeed ...@@ -63,7 +63,7 @@ class ResultFeed extends \VuFind\View\Helper\Root\ResultFeed
} }
$entry->setTitle(empty($title) ? $record->getBreadcrumb() : $title); $entry->setTitle(empty($title) ? $record->getBreadcrumb() : $title);
$serverUrl = $this->getView()->plugin('serverurl'); $serverUrl = $this->getView()->plugin('serverurl');
$recordLink = $this->getView()->plugin('recordlink'); $recordLink = $this->getView()->plugin('recordLink');
try { try {
$url = $serverUrl($recordLink->getUrl($record)); $url = $serverUrl($recordLink->getUrl($record));
} catch (\Zend\Mvc\Router\Exception\RuntimeException $e) { } catch (\Zend\Mvc\Router\Exception\RuntimeException $e) {
......
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