Skip to content

Commit

Permalink
Adds ROR normalization when reading publisherIdentifier in line with …
Browse files Browse the repository at this point in the history
…affiliationIdentifier and nameIdentifier
  • Loading branch information
codycooperross committed Oct 19, 2023
1 parent 1039b0c commit 5ab5042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bolognese/readers/datacite_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def read_datacite(string: nil, **options)
elsif r.is_a?(Hash)
{
"name" => r["__content__"].strip,
"publisherIdentifier" => r["publisherIdentifier"],
"publisherIdentifier" => r["publisherIdentifierScheme"] == "ROR" ? normalize_ror(r["publisherIdentifier"]) : r["publisherIdentifier"],
"publisherIdentifierScheme" => r["publisherIdentifierScheme"],
"schemeUri" => r["schemeURI"],
"lang" => r["lang"],
Expand Down

0 comments on commit 5ab5042

Please sign in to comment.