Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
bbpennel committed Sep 27, 2023
1 parent 63f4041 commit a628801
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def single_item_search_builder(id)
# solr request handler? The one set in config[:default_solr_parameters][:qt],
# since we aren't specifying it otherwise.
config.add_search_field('all_fields', label: 'All Fields', advanced_parse: false, include_in_advanced_search: true) do |field|
all_names = config.show_fields.values.map(&:field).join(" ")
all_names = config.show_fields.values.map(&:field).join(' ')
title_name = 'title_tesim'
field.solr_parameters = {
qf: "#{all_names} file_format_tesim all_text_timv",
Expand Down
8 changes: 4 additions & 4 deletions app/search_builders/hyc/catalog_search_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def join_works_from_files(solr_parameters)
end

def retrieve_all_fields_query
blacklight_params["clause"]&.each do |_, entry|
if entry["field"] == "all_fields"
return entry["query"]
blacklight_params['clause']&.each do |_, entry|
if entry['field'] == 'all_fields'
return entry['query']
end
end
return nil
Expand All @@ -39,4 +39,4 @@ def join_work_to_file
"{!join from=#{ActiveFedora.id_field} to=file_set_ids_ssim}"
end
end
end
end
4 changes: 2 additions & 2 deletions spec/search_builders/hyc/catalog_search_builder_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
# frozen_string_literal: true

require 'rails_helper'

Expand All @@ -24,7 +24,7 @@
context 'joining with file_sets' do
let(:blacklight_params) do
{
search_field: 'advanced',
search_field: 'advanced',
clause: { '0' => {field: 'all_fields', query: 'metalloprotease' } }
}
end
Expand Down

0 comments on commit a628801

Please sign in to comment.