lib/cirneco/work.rb in cirneco-0.9.7 vs lib/cirneco/work.rb in cirneco-0.9.8

- old
+ new

@@ -117,9 +117,11 @@ def insert_publication_year(xml) xml.publicationYear(publication_year) end def insert_resource_type(xml) + return xml unless resource_type.present? + xml.resourceType(resource_type[:value], 'resourceTypeGeneral' => resource_type[:resource_type_general]) end def insert_alternate_identifiers(xml) return xml unless alternate_identifier.present?