diff --git a/module/VuFind/src/VuFind/View/Helper/Root/SortFacetList.php b/module/VuFind/src/VuFind/View/Helper/Root/SortFacetList.php index 2740ccdf5c2..30ce81db080 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/SortFacetList.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/SortFacetList.php @@ -65,7 +65,8 @@ public function __invoke($results, $field, $list, $searchRoute) $urlHelper = $this->getView()->plugin('url'); foreach ($list as $value) { $url = $urlHelper($searchRoute) . $results->getUrlQuery() - ->addFacet($field, $value['value'])->getParams(); + ->addFacet($field, $value['value'], ($value['operator'] ?? 'AND')) + ->getParams(); $facets[$url] = $value['displayText']; } $this->getSorter()->natsort($facets);