From 1b3ab9a4ddde8f6ba727c0dc6c43cb5df67f6aab Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 18 Jan 2021 15:27:46 +0100 Subject: [PATCH] make sure contributor name_identifiers are an array #705 --- app/serializers/datacite_doi_serializer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/serializers/datacite_doi_serializer.rb b/app/serializers/datacite_doi_serializer.rb index d3414694a..2306c6017 100644 --- a/app/serializers/datacite_doi_serializer.rb +++ b/app/serializers/datacite_doi_serializer.rb @@ -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