lib/bolognese/datacite_utils.rb in bolognese-0.9.81 vs lib/bolognese/datacite_utils.rb in bolognese-0.9.82

- old
+ new

@@ -88,19 +88,19 @@ def insert_publication_year(xml) xml.publicationYear(publication_year) end - def resource_type + def res_type { "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? - xml.resourceType(resource_type["__content__"], - 'resourceTypeGeneral' => resource_type["resource_type_general"]) + xml.resourceType(res_type["__content__"], + 'resourceTypeGeneral' => res_type["resource_type_general"]) end def insert_alternate_identifiers(xml) return xml unless alternate_name.present?