Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix catalog sort labels #320

Merged
merged 1 commit into from
Oct 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ class CatalogController < ApplicationController
# the labels through +I18n.t+ first, displaying only the symbolized translation
# keys we're sending here.
config.add_sort_field 'score desc, system_create_dtsi desc', label: "Relevance"
config.add_sort_field 'date_issued_sort_dtsi asc', label: "Date Added \u25B2"
config.add_sort_field 'date_issued_sort_dtsi desc', label: "Date Added \u25BC"
config.add_sort_field 'system_create_dtsi asc', label: "Issue Date \u25B2"
config.add_sort_field 'system_create_dtsi desc', label: "Issue Date \u25BC"
config.add_sort_field 'date_issued_sort_dtsi asc', label: "Issue Date \u25B2"
config.add_sort_field 'date_issued_sort_dtsi desc', label: "Issue Date \u25BC"
config.add_sort_field 'system_create_dtsi asc', label: "Date Added \u25B2"
config.add_sort_field 'system_create_dtsi desc', label: "Date Added \u25BC"

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