Skip to content

Commit

Permalink
Fix range slider label with deferred facets.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Sep 24, 2024
1 parent 817f292 commit 5f4fd68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/VuFind/src/VuFind/AjaxHandler/GetSideFacets.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,15 @@ protected function formatFacets(
) {
$response = [];
$facetSet = $recommend->getFacetSet();
$facetConfig = $results->getParams()->getFacetConfig();
foreach ($facets as $facet) {
if (strpos($facet, ':')) {
$response[$facet]['checkboxCount']
= $this->getCheckboxFacetCount($facet, $results);
} else {
$context['facet'] = $facet;
$context['cluster'] = $facetSet[$facet] ?? [
'label' => $facetConfig[$facet],
'list' => [],
];
$context['collapsedFacets'] = [];
Expand Down

0 comments on commit 5f4fd68

Please sign in to comment.