lib/bolognese/readers/datacite_reader.rb in bolognese-0.9.79 vs lib/bolognese/readers/datacite_reader.rb in bolognese-0.9.80
- old
+ new
@@ -93,11 +93,10 @@
end
state = doi.present? ? "findable" : "not_found"
{ "id" => id,
"type" => type,
- "additional_type" => meta.fetch("resourceType", {}).fetch("__content__", nil) ||
- meta.fetch("resourceType", {}).fetch("resourceTypeGeneral", nil),
+ "additional_type" => meta.fetch("resourceType", {}).fetch("__content__", nil),
"citeproc_type" => Bolognese::Utils::DC_TO_CP_TRANSLATIONS[resource_type_general.to_s.dasherize] || "article",
"bibtex_type" => Bolognese::Utils::SO_TO_BIB_TRANSLATIONS[type] || "misc",
"ris_type" => Bolognese::Utils::DC_TO_RIS_TRANSLATIONS[resource_type_general.to_s.dasherize] || "GEN",
"resource_type_general" => resource_type_general,
"doi" => doi,