lib/bolognese/datacite_utils.rb in bolognese-0.9.14 vs lib/bolognese/datacite_utils.rb in bolognese-0.9.15

- old
+ new

@@ -164,25 +164,21 @@ def rel_identifier Array.wrap(related_identifier).map do |r| { "__content__" => r["id"] || r["issn"], "related_identifier_type" => r["issn"].present? ? "ISSN" : validate_url(r["id"]), - "relation_type" => r["relationType"], - "resource_type_general" => r["resourceTypeGeneral"] || "Other", - "title" => r["title"] }.compact + "relation_type" => r["relationType"] }.compact end end def insert_related_identifiers(xml) return xml unless rel_identifier.present? xml.relatedIdentifiers do rel_identifier.each do |related_identifier| attributes = { 'relatedIdentifierType' => related_identifier["related_identifier_type"], - 'relationType' => related_identifier["relation_type"], - 'resourceTypeGeneral' => related_identifier["resource_type_general"], - 'title' => related_identifier["title"] }.compact + 'relationType' => related_identifier["relation_type"] }.compact xml.relatedIdentifier(related_identifier["__content__"], attributes) end end end