Skip to content

Commit

Permalink
use lowercase string for registration agency id
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 9, 2020
1 parent 93358b3 commit 6217ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ def self.query(query, options={})
filter << { terms: { "types.resourceType": options[:resource_type].split(",") }} if options[:resource_type].present?
filter << { terms: { provider_id: options[:provider_id].split(",") } } if options[:provider_id].present?
filter << { terms: { client_id: options[:client_id].to_s.split(",") } } if options[:client_id].present?
filter << { terms: { agency: options[:registration_agency].split(",").map(&:humanize) } } if options[:registration_agency].present?
filter << { terms: { agency: options[:registration_agency].split(",").map(&:downcase) } } if options[:registration_agency].present?
filter << { terms: { prefix: options[:prefix].to_s.split(",") } } if options[:prefix].present?
filter << { term: { uid: options[:uid] }} if options[:uid].present?
filter << { range: { created: { gte: "#{options[:created].split(",").min}||/y", lte: "#{options[:created].split(",").max}||/y", format: "yyyy" }}} if options[:created].present?
Expand Down

0 comments on commit 6217ba0

Please sign in to comment.