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

Merge branch 'release-3.1'

parents 90481c78 a58b558c
No related merge requests found
...@@ -147,11 +147,11 @@ class Params extends \VuFind\Search\Base\Params ...@@ -147,11 +147,11 @@ class Params extends \VuFind\Search\Base\Params
// Special case -- if we have a "holdings only" or "expand query" facet, // Special case -- if we have a "holdings only" or "expand query" facet,
// we want this to always appear, even on the "no results" screen, since // we want this to always appear, even on the "no results" screen, since
// setting this facet actually EXPANDS rather than reduces the result set. // setting this facet actually EXPANDS rather than reduces the result set.
if (isset($facets['holdingsOnly'])) { foreach ($facets as $i => $facet) {
$facets['holdingsOnly']['alwaysVisible'] = true; list($field) = explode(':', $facet['filter']);
} if ($field == 'holdingsOnly' || $field == 'queryExpansion') {
if (isset($facets['queryExpansion'])) { $facets[$i]['alwaysVisible'] = true;
$facets['queryExpansion']['alwaysVisible'] = true; }
} }
// Return modified list: // Return modified list:
......
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