lib/bolognese/readers/datacite_reader.rb in bolognese-0.10.20 vs lib/bolognese/readers/datacite_reader.rb in bolognese-0.10.21
- old
+ new
@@ -107,10 +107,10 @@
"resource_type_general" => resource_type_general,
"doi" => doi,
"url" => options.fetch(:url, nil),
"title" => title,
"alternate_name" => alternate_name,
- "author" => get_authors(meta.dig("creators", "creator")),
+ "author" => get_authors(Array.wrap(meta.dig("creators", "creator"))),
"editor" => get_authors(Array.wrap(meta.dig("contributors", "contributor")).select { |r| r["contributorType"] == "Editor" }),
"container_title" => container_title,
"publisher" => meta.fetch("publisher", nil),
"service_provider" => "DataCite",
"funding" => funding,