lib/bolognese/datacite_utils.rb in bolognese-1.6.12 vs lib/bolognese/datacite_utils.rb in bolognese-1.7.1

- old
+ new

@@ -114,14 +114,13 @@ xml.resourceType(types["resourceType"] || types["schemaOrg"], 'resourceTypeGeneral' => types["resourceTypeGeneral"] || Metadata::SO_TO_DC_TRANSLATIONS[types["schemaOrg"]] || "Other") end def insert_alternate_identifiers(xml) - alternate_identifiers = Array.wrap(identifiers).select { |r| r["identifierType"] != "DOI" } - return xml unless alternate_identifiers.present? + return xml unless identifiers.present? xml.alternateIdentifiers do - Array.wrap(alternate_identifiers).each do |alternate_identifier| + Array.wrap(identifiers).each do |alternate_identifier| xml.alternateIdentifier(alternate_identifier["identifier"], 'alternateIdentifierType' => alternate_identifier["identifierType"]) end end end