Skip to content

Commit

Permalink
🧹 Change date_created_sim to date_created_d_sim
Browse files Browse the repository at this point in the history
The date_created_d_sim field is more appropriate for date ranges because
it is the "Machine Readable Date Created" field.  This is perfect for
date ranges because it should be a specific format and can be sorted.
  • Loading branch information
kirkkwang committed Feb 28, 2024
1 parent aa6cb1e commit 889007a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ def self.title_field

# solr fields that will be treated as facets by the blacklight application
# The ordering of the field names is the order of the display
config.add_facet_field 'date_created_sim', label: "Date Created",
range: {
num_segments: 6,
assumed_boundaries: [1100, Time.zone.now.year + 2],
segments: true,
maxlength: 4
}
config.add_facet_field 'date_created_d_sim', label: "Date Created",
range: {
num_segments: 6,
assumed_boundaries: [1100, Time.zone.now.year + 2],
segments: true,
maxlength: 4
}
config.add_facet_field 'human_readable_type_sim', label: "Type", limit: 5
config.add_facet_field 'resource_type_sim', label: "Resource Type", limit: 5
config.add_facet_field 'creator_sim', limit: 5
Expand Down

0 comments on commit 889007a

Please sign in to comment.