lib/bolognese/datacite_utils.rb in bolognese-0.9.99 vs lib/bolognese/datacite_utils.rb in bolognese-0.10
- old
+ new
@@ -89,10 +89,10 @@
def insert_publication_year(xml)
xml.publicationYear(publication_year)
end
def res_type
- { "resource_type_general" => Metadata::SO_TO_DC_TRANSLATIONS[type] || "Other",
+ { "resource_type_general" => resource_type_general || Metadata::SO_TO_DC_TRANSLATIONS[type] || "Other",
"__content__" => additional_type || type }
end
def insert_resource_type(xml)
return xml unless type.present?