Skip to content

Commit

Permalink
Re-add blacklight range limit config for year facet
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Jun 28, 2024
1 parent 1184ef4 commit 043e237
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class CatalogController < ApplicationController
config.add_facet_field Settings.FIELDS.SUBJECT, label: 'Subject', limit: 8
config.add_facet_field Settings.FIELDS.THEME, label: 'Theme', limit: 8
config.add_facet_field Settings.FIELDS.SPATIAL_COVERAGE, label: 'Place', limit: 8
config.add_facet_field Settings.FIELDS.INDEX_YEAR, label: 'Year', limit: 10
config.add_facet_field Settings.FIELDS.INDEX_YEAR, label: 'Year', limit: 10, range: {
assumed_boundaries: [1100, Time.zone.now.year + 2]
}
config.add_facet_field Settings.FIELDS.ACCESS_RIGHTS, label: 'Access', limit: 8,
item_component: Geoblacklight::IconFacetItemComponent
# Disabled until GeoMonitor is updated for v4.x compatibility
Expand Down

0 comments on commit 043e237

Please sign in to comment.