app/models/concerns/arclight/search_behavior.rb in arclight-0.1.4 vs app/models/concerns/arclight/search_behavior.rb in arclight-0.2.0

- old
+ new

@@ -24,10 +24,10 @@ end ## # For the hierarchy view, set the sort order to preserve the order of components def add_hierarchy_sort(solr_params) - solr_params[:sort] = 'sort_ii asc' if blacklight_params[:view] == 'hierarchy' + solr_params[:sort] = 'sort_ii asc' if %w[hierarchy online_contents].include? blacklight_params[:view] solr_params end ## # Disable highlighting for hiearchy, and enable it for all other searches