lib/bolognese/readers/datacite_reader.rb in bolognese-1.9.7 vs lib/bolognese/readers/datacite_reader.rb in bolognese-1.9.8

- old
+ new

@@ -5,10 +5,10 @@ module DataciteReader def get_datacite(id: nil, **options) return { "string" => nil, "state" => "not_found" } unless id.present? api_url = doi_api_url(id, options) - response = Maremma.get api_url + response = Maremma.get(api_url) attributes = response.body.dig("data", "attributes") return { "string" => nil, "state" => "not_found" } unless attributes.present? string = attributes.fetch('xml', nil) string = Base64.decode64(string) if string.present?