app/models/referent.rb in umlaut-4.1.0.pre3 vs app/models/referent.rb in umlaut-4.1.0

- old
+ new

@@ -149,10 +149,14 @@ build_referent_value("private_data", rft.private_data) end rft.metadata.each { | key, value | next unless value.present? - build_referent_value( key, value) + # Sometimes value is an array, for DC for instance. Do the best we + # can. + Array(value).each do |v| + build_referent_value( key, v) + end } end # pass in a Referent, or a ropenurl ContextObjectEntity that has a metadata # method. Or really anything with a #metadata method returning openurl-style