Skip to content

Commit

Permalink
Merge pull request #741 from sul-dlss/740-facet-limit
Browse files Browse the repository at this point in the history
Set the facet limit for hierarchical facets to -1 (unlimited)
  • Loading branch information
Jessie Keck authored Nov 22, 2019
2 parents 4e583b6 + 5716be1 commit a0684e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,13 @@ class CatalogController < ApplicationController
config.add_facet_field 'cho_type_facet.en_ssim',
partial: 'blacklight/hierarchy/facet_hierarchy',
label: 'Type en',
if: en_locale
if: en_locale,
limit: -1 # unlimited
config.add_facet_field 'cho_type_facet.ar-Arab_ssim',
partial: 'blacklight/hierarchy/facet_hierarchy',
label: 'Type ar',
if: arabic_locale
if: arabic_locale,
limit: -1 # unlimited
config.facet_display = {
hierarchy: {
'cho_type_facet.en' => [['ssim'], ':'],
Expand Down

0 comments on commit a0684e1

Please sign in to comment.