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 93113b80 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed bug: wrong operator applied to facets.

parent bb9570ad
Branches
Tags
No related merge requests found
......@@ -354,7 +354,8 @@ class Results extends \VuFind\Search\Base\Results
throw new \Exception("$facetSort facet sort not supported by Summon.");
}
foreach ($facetfields as $facet) {
$params->addFacet($facet . ',or,' . $page . ',' . $limit);
$mode = $params->getFacetOperator($facet) === 'OR' ? 'or' : 'and';
$params->addFacet("$facet,$mode,$page,$limit");
// Clear existing filters for the selected field if necessary:
if ($removeFilter) {
......
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