lib/bolognese/readers/datacite_reader.rb in bolognese-0.10.17 vs lib/bolognese/readers/datacite_reader.rb in bolognese-0.10.18

- old
+ new

@@ -74,10 +74,10 @@ container_title = Array.wrap(meta.dig("descriptions", "description")).find { |r| r["descriptionType"] == "SeriesInformation" }.to_h.fetch("__content__", nil) alternate_name = Array.wrap(meta.dig("alternateIdentifiers", "alternateIdentifier")).map do |r| { "type" => r["alternateIdentifierType"], "name" => r["__content__"] }.compact end.unwrap - description = Array.wrap(meta.dig("descriptions", "description")).map do |r| + description = Array.wrap(meta.dig("descriptions", "description")).select { |r| r["descriptionType"] != "SeriesInformation" }.map do |r| { "type" => r["descriptionType"], "text" => sanitize(r["__content__"]) }.compact end.unwrap license = Array.wrap(meta.dig("rightsList", "rights")).map do |r| { "id" => normalize_url(r["rightsURI"]), "name" => r["__content__"] }.compact end.unwrap