From 11e42a94719655ba54e2e0582a3d839769b2d3e3 Mon Sep 17 00:00:00 2001 From: Yetrina Battad Date: Fri, 9 Feb 2024 14:48:17 +1100 Subject: [PATCH] fix: change sort order fields to use pub_date_si --- app/controllers/catalog_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index 062f94fd..3f719919 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -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.