Skip to content

Commit

Permalink
handle missing crossref member id. datacite/lupo#739
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 4, 2021
1 parent 91f225d commit 15500a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def self.get_crossref_metadata(id)
"@id" => id,
"@type" => type,
"datePublished" => date_published,
"registrantId" => "crossref.#{meta['member']}",
"registrantId" => meta["member"].present? ? "crossref.#{meta['member']}" : nil,
}.compact
end

Expand Down

0 comments on commit 15500a3

Please sign in to comment.