lib/stanford-mods/imprint.rb in stanford-mods-2.6.1 vs lib/stanford-mods/imprint.rb in stanford-mods-2.6.2
- old
+ new
@@ -46,10 +46,10 @@
date_field_keys.map do |date_field|
next unless origin_info_node.respond_to?(date_field)
date_elements = origin_info_node.send(date_field)
date_elements.map(&:as_object).map(&:first) if date_elements.any?
- end.first
+ end.compact.first
end
if date_elements.nil? || date_elements.none?
[]
elsif date_elements.find(&:start?) &&