Skip to content

Commit 4bf4b67

Browse files
committed
string interpolate to fix sort error
1 parent 1f4911f commit 4bf4b67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/controllers/catalog_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ class CatalogController < ApplicationController
238238
# whether the sort is ascending or descending (it must be asc or desc
239239
# except in the relevancy case).
240240
config.add_sort_field 'score desc, dc_title_sort asc', label: 'relevance'
241-
config.add_sort_field '#{Settings.FIELDS.YEAR} desc, dc_title_sort asc', label: 'year'
242-
config.add_sort_field '#{Settings.FIELDS.PUBLISHER} asc, dc_title_sort asc', label: 'publisher'
243-
config.add_sort_field '#{Settings.FIELDS.TITLE} asc', label: 'title'
241+
config.add_sort_field "#{Settings.FIELDS.YEAR} desc, dc_title_sort asc", label: 'year'
242+
config.add_sort_field "#{Settings.FIELDS.PUBLISHER} asc, dc_title_sort asc", label: 'publisher'
243+
config.add_sort_field "#{Settings.FIELDS.TITLE} asc", label: 'title'
244244

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

0 commit comments

Comments
 (0)