lib/bolognese/readers/datacite_reader.rb in bolognese-1.10.0 vs lib/bolognese/readers/datacite_reader.rb in bolognese-1.11.0

- old
+ new

@@ -228,17 +228,17 @@ "relatedItemType" => ri["relatedItemType"], "relatedItemIdentifier" => relatedItemIdentifier, "creators" => get_authors(Array.wrap(ri.dig("creators", "creator"))), "titles" => get_titles(ri), "publicationYear" => ri["publicationYear"], - "volume" => ri["volume"], - "issue" => ri["issue"], + "volume" => parse_attributes(ri["volume"]), + "issue" => parse_attributes(ri["issue"]), "number" => number, "numberType" => numberType, - "firstPage" => ri["firstPage"], - "lastPage" => ri["lastPage"], - "publisher" => ri["publisher"], - "edition" => ri["edition"], + "firstPage" => parse_attributes(ri["firstPage"]), + "lastPage" => parse_attributes(ri["lastPage"]), + "publisher" => parse_attributes(ri["publisher"]), + "edition" => parse_attributes(ri["edition"]), "contributors" => get_authors(Array.wrap(ri.dig("contributors", "contributor"))), }.compact end geo_locations = Array.wrap(meta.dig("geoLocations", "geoLocation")).map do |gl|