Sha256: e1125b30747f33ecd8aeb39405be0ea7aadec2697aa126ab3d407df33a853ddc
Contents?: true
Size: 476 Bytes
Versions: 4
Compression:
Stored size: 476 Bytes
Contents
class ModsDisplay::Contact < ModsDisplay::Field def fields return_fields = contact_fields.map do |value| ModsDisplay::Values.new(:label => displayLabel(value) || I18n.t('mods_display.contact'), :values => [value.text]) end collapse_fields(return_fields) end private def contact_fields @values.select do |value| value.attributes["type"].respond_to?(:value) and value.attributes["type"].value.downcase == "contact" end end end
Version data entries
4 entries across 4 versions & 1 rubygems