lib/bolognese/readers/datacite_reader.rb in bolognese-1.0.1 vs lib/bolognese/readers/datacite_reader.rb in bolognese-1.0.2
- old
+ new
@@ -37,11 +37,11 @@
content_url = Array.wrap(attributes.fetch("media", nil)).map do |media|
media.split(":", 2).last
end.compact
{ "string" => string,
- "b_url" => attributes.fetch("url", nil),
+ "url" => attributes.fetch("url", nil),
"state" => attributes.fetch("state", nil),
"date_registered" => attributes.fetch("minted", nil),
"date_updated" => attributes.fetch("updated", nil),
"provider_id" => attributes.fetch("allocator_symbol", nil),
"client_id" => attributes.fetch("datacentre_symbol", nil),
@@ -172,15 +172,15 @@
"dates" => dates,
"date_published" => datacite_date(dates, "Issued") || meta.fetch("publicationYear", nil),
"date_modified" => datacite_date(dates, "Updated"),
"description" => description,
"rights" => rights,
- "b_version" => meta.fetch("version", nil),
+ "version" => meta.fetch("version", nil),
"keywords" => keywords,
"language" => meta.fetch("language", nil),
"geo_location" => geo_location,
"related_identifiers" => related_identifiers,
- "b_format" => formats,
+ "formats" => formats,
"size" => sizes,
"schema_version" => schema_version,
"state" => state
}
end