Sha256: 0053e1c45334933f26b5b31d3d71e6d7abed300abd1dc4f4a7f195b6bfd56c46
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true module ModsDisplay class Genre < Field def fields return_fields = @values.map do |value| ModsDisplay::Values.new(label: displayLabel(value) || label, values: [value.text.strip.capitalize].flatten) end collapse_fields(return_fields) end private def delimiter '<br />' end def displayLabel(element) super(element) || I18n.t('mods_display.genre') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mods_display-1.0.0 | lib/mods_display/fields/genre.rb |
mods_display-1.0.0.alpha5 | lib/mods_display/fields/genre.rb |