Skip to content

Commit

Permalink
Array.wrap doi nameIdentifiers element.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and svogt0511 committed Jan 15, 2021
1 parent 5347b6a commit c4d4bd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/serializers/datacite_doi_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class DataciteDoiSerializer
Array.wrap(c["affiliation"]).map do |a|
params[:affiliation] ? a : a["name"]
end.compact
c["nameIdentifiers"] = Array.wrap(c["nameIdentifiers"])
c
end.compact
end
Expand Down

0 comments on commit c4d4bd4

Please sign in to comment.