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 13, 2024
1 parent 43736f8 commit 30c284c
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 30c284c

Please sign in to comment.