Skip to content

Commit

Permalink
fix asc oid sorting (#1064)
Browse files Browse the repository at this point in the history
Co-authored-by: JP Engstrom <jpengstrom@MWPF2JK9NR.yu.yale.edu>
Co-authored-by: JP Engstrom <jpengstrom@macbook-pro.lan>
  • Loading branch information
3 people authored Oct 21, 2024
1 parent 884898a commit 83002db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class CatalogController < ApplicationController
config.add_sort_field 'creator_ssim desc, title_ssim asc, archivalSort_ssi asc', label: 'Creator (Z --> A)'
config.add_sort_field 'title_ssim asc, oid_ssi desc, archivalSort_ssi asc', label: 'Title (A --> Z)'
config.add_sort_field 'title_ssim desc, oid_ssi desc, archivalSort_ssi asc', label: 'Title (Z --> A)'
config.add_sort_field 'year_isim asc, id desc, archivalSort_ssi asc', label: 'Year (ascending)'
config.add_sort_field 'year_isim asc, id asc, archivalSort_ssi asc', label: 'Year (ascending)'
config.add_sort_field 'year_isim desc, id desc, archivalSort_ssi asc', label: 'Year (descending)'

# If there are more than this many search results, no spelling ("did you
Expand Down
2 changes: 1 addition & 1 deletion spec/system/advanced_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@

it 'can sort by date asc' do
within '#sort' do
find("option[value='year_isim asc, id desc, archivalSort_ssi asc']").click
find("option[value='year_isim asc, id asc, archivalSort_ssi asc']").click
end
click_on 'SEARCH'
within '#documents' do
Expand Down

0 comments on commit 83002db

Please sign in to comment.