Skip to content

Commit

Permalink
make sure contributor name_identifiers are an array #705
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 18, 2021
1 parent 2328d45 commit 1b3ab9a
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 @@ -144,6 +144,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 1b3ab9a

Please sign in to comment.