lib/briard/readers/datacite_reader.rb in briard-2.7.1 vs lib/briard/readers/datacite_reader.rb in briard-2.8.0
- old
+ new
@@ -4,10 +4,10 @@
module Readers
module DataciteReader
def get_datacite(id: nil, **options)
return { 'string' => nil, 'state' => 'not_found' } unless id.present?
- api_url = doi_api_url(id, options)
+ api_url = datacite_api_url(id, options)
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)