lib/bolognese/readers/datacite_reader.rb in bolognese-0.10.8 vs lib/bolognese/readers/datacite_reader.rb in bolognese-0.10.9
- old
+ new
@@ -92,12 +92,12 @@
state = doi.present? ? "findable" : "not_found"
{ "id" => id,
"type" => type,
"additional_type" => additional_type,
- "citeproc_type" => Bolognese::Utils::SO_TO_CP_TRANSLATIONS[type] || "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",
+ "citeproc_type" => Bolognese::Utils::CR_TO_CP_TRANSLATIONS[additional_type.to_s.underscore.camelcase] || Bolognese::Utils::SO_TO_CP_TRANSLATIONS[type] || "article",
+ "bibtex_type" => Bolognese::Utils::CR_TO_BIB_TRANSLATIONS[additional_type.to_s.underscore.camelcase] || Bolognese::Utils::SO_TO_BIB_TRANSLATIONS[type] || "misc",
+ "ris_type" => Bolognese::Utils::CR_TO_RIS_TRANSLATIONS[additional_type.to_s.underscore.camelcase] || Bolognese::Utils::DC_TO_RIS_TRANSLATIONS[resource_type_general.to_s.dasherize] || "GEN",
"resource_type_general" => resource_type_general,
"doi" => doi,
"url" => options.fetch(:url, nil),
"title" => title,
"alternate_name" => alternate_name,