Skip to content

Commit

Permalink
Merge pull request #626 from IU-Libraries-Joint-Development/essi-2009…
Browse files Browse the repository at this point in the history
…_facets_more_link

Display "more >>>" links for facets missing them (limited to first 10)
  • Loading branch information
dlpierce authored Oct 21, 2024
2 parents 153d8c1 + 60c762d commit dc273f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/concerns/essi/dynamic_catalog_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def load_allinson_flex
if prop.indexing.include?("facetable")
name = solr_name(prop.name.to_s, :facetable)
facet_args = { label: label }
facet_args.merge!({ limit: true }) # @todo read value from property config, if supplied
if prop.indexing.include?("admin_only")
facet_args[:if] = lambda { |context, _field_config, _document| context.try(:current_user)&.admin? }
end
Expand Down

0 comments on commit dc273f8

Please sign in to comment.