Skip to content

Commit

Permalink
fix: change sort order fields to use pub_date_si
Browse files Browse the repository at this point in the history
  • Loading branch information
yetti committed Feb 9, 2024
1 parent 0f61ca3 commit 11e42a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,13 @@ class CatalogController < ApplicationController
# whether the sort is ascending or descending (it must be asc or desc
# except in the relevancy case). Add the sort: option to configure a
# custom Blacklight url parameter value separate from the Solr sort fields.
config.add_sort_field "score desc, pub_date_ssim desc, title_si asc", label: "Relevance"
config.add_sort_field "pub_date_ssim desc, title_si asc", label: "Date New to Old"
config.add_sort_field "pub_date_ssim asc, title_si asc", label: "Date Old to New"
config.add_sort_field "score desc, pub_date_si desc, title_si asc", label: "Relevance"
config.add_sort_field "pub_date_si desc, title_si asc", label: "Date New to Old"
config.add_sort_field "pub_date_si asc, title_si asc", label: "Date Old to New"
config.add_sort_field "author_si asc, title_si asc", label: "Author A-Z"
config.add_sort_field "author_si desc, title_si asc", label: "Author Z-A"
config.add_sort_field "title_si asc, pub_date_ssim desc", label: "Title A-Z"
config.add_sort_field "title_si desc, pub_date_ssim desc", label: "Title Z-A"
config.add_sort_field "title_si asc, pub_date_si desc", label: "Title A-Z"
config.add_sort_field "title_si desc, pub_date_si desc", label: "Title Z-A"

# If there are more than this many search results, no spelling ("did you
# mean") suggestion is offered.
Expand Down

0 comments on commit 11e42a9

Please sign in to comment.