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
// 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
// setting this facet actually EXPANDS rather than reduces the result set.
if (isset($facets['holdingsOnly'])) {
$facets['holdingsOnly']['alwaysVisible'] = true;
}
if (isset($facets['queryExpansion'])) {
$facets['queryExpansion']['alwaysVisible'] = true;
foreach ($facets as $i => $facet) {
list($field) = explode(':', $facet['filter']);
if ($field == 'holdingsOnly' || $field == 'queryExpansion') {
$facets[$i]['alwaysVisible'] = true;
}
}
// 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