lib/bolognese/readers/datacite_reader.rb in bolognese-1.0.8 vs lib/bolognese/readers/datacite_reader.rb in bolognese-1.0.9
- old
+ new
@@ -175,10 +175,10 @@
"url" => options.fetch(:url, nil),
"titles" => titles,
"creator" => get_authors(Array.wrap(meta.dig("creators", "creator"))),
"contributor" => get_authors(Array.wrap(meta.dig("contributors", "contributor"))),
"periodical" => periodical,
- "publisher" => meta.fetch("publisher", "").strip.presence,
+ "publisher" => meta.fetch("publisher", nil).to_s.strip.presence,
"source" => "DataCite",
"funding_references" => funding_references,
"dates" => dates,
"publication_year" => meta.fetch("publicationYear", nil),
"descriptions" => descriptions,