lib/bolognese/readers/datacite_reader.rb in bolognese-1.1.8 vs lib/bolognese/readers/datacite_reader.rb in bolognese-1.1.11
- old
+ new
@@ -185,21 +185,21 @@
"geoLocationPolygon" => Array.wrap(gl.dig("geoLocationPolygon", "polygonPoint")).map { |glp| { "polygonPoint" => glp } }.compact.presence,
"geoLocationPlace" => parse_attributes(gl["geoLocationPlace"], first: true).to_s.strip.presence
}.compact
end
end.compact
- container = set_container(meta)
+
state = doi.present? || read_options.present? ? "findable" : "not_found"
{ "id" => id,
"types" => types,
"doi" => doi_from_url(doi),
"identifiers" => identifiers,
"url" => options.fetch(:url, nil).to_s.strip.presence,
"titles" => titles,
"creators" => get_authors(Array.wrap(meta.dig("creators", "creator"))),
"contributors" => get_authors(Array.wrap(meta.dig("contributors", "contributor"))),
- "container" => container,
+ "container" => set_container(meta),
"publisher" => parse_attributes(meta.fetch("publisher", nil), first: true).to_s.strip.presence,
"agency" => "DataCite",
"funding_references" => funding_references,
"dates" => dates,
"publication_year" => parse_attributes(meta.fetch("publicationYear", nil), first: true).to_s.strip.presence,