Skip to content

Commit

Permalink
fix showing DMPs by organization id. #632
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Sep 17, 2020
1 parent 831f22c commit c768c15
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,8 @@ def self.gql_query(query, options={})
# match either ROR ID or Crossref Funder ID if either organization_id, affiliation_id or funder_id
# is a query parameter
if options[:organization_id].present?
should << { term: { "creators.nameIdentifiers.nameIdentifier" => ror_from_url(options[:organization_id]) }}
should << { term: { "contributors.nameIdentifiers.nameIdentifier" => ror_from_url(options[:organization_id]) }}
should << { term: { "creators.nameIdentifiers.nameIdentifier" => "https://#{ror_from_url(options[:organization_id])}" }}
should << { term: { "contributors.nameIdentifiers.nameIdentifier" => "https://#{ror_from_url(options[:organization_id])}" }}
minimum_should_match = 1
end
if options[:affiliation_id].present?
Expand Down
Loading

0 comments on commit c768c15

Please sign in to comment.