Skip to content

Commit

Permalink
Appease Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed Dec 12, 2024
1 parent 948ea00 commit 2453788
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions app/models/doi/search/filter_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,27 @@ def build
end

private
def build_pid_entity_filter
[
{ terms: { "subjects.subjectScheme": ["PidEntity"] } },
{ terms: { "subjects.subject": @options[:pid_entity].split(",").map(&:humanize) } }
]
end

def build_pid_entity_filter
[
{ terms: { "subjects.subjectScheme": ["PidEntity"] } },
{ terms: { "subjects.subject": @options[:pid_entity].split(",").map(&:humanize) } }
]
end
def build_field_of_science_filter
[
{ terms: { "subjects.subjectScheme": ["Fields of Science and Technology (FOS)"] } },
{ terms: { "subjects.subject": @options[:field_of_science].split(",").map { |s| "FOS: " + s.humanize } } }
]
end

def build_field_of_science_filter
[
{ terms: { "subjects.subjectScheme": ["Fields of Science and Technology (FOS)"] } },
{ terms: { "subjects.subject": @options[:field_of_science].split(",").map { |s| "FOS: " + s.humanize } } }
]
end
def build_field_of_science_repository_filter
{ terms: { "fields_of_science_repository": @options[:field_of_science_repository].split(",").map { |s| s.humanize } } }
end

def build_field_of_science_repository_filter
{ terms: { "fields_of_science_repository": @options[:field_of_science_repository].split(",").map { |s| s.humanize } } }
end

def build_field_of_science_combined_filter
{ terms: { "fields_of_science_combined": @options[:field_of_science_combined].split(",").map { |s| s.humanize } } }
end
def build_field_of_science_combined_filter
{ terms: { "fields_of_science_combined": @options[:field_of_science_combined].split(",").map { |s| s.humanize } } }
end
end
end
end

0 comments on commit 2453788

Please sign in to comment.