Class: ModsDisplay::Issuance
- Defined in:
- lib/mods_display/fields/issuance.rb
Instance Method Summary collapse
Methods inherited from Field
#initialize, #label, #render_in, #to_html
Constructor Details
This class inherits a constructor from ModsDisplay::Field
Instance Method Details
#fields ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mods_display/fields/issuance.rb', line 5 def fields return_fields = @stanford_mods_elements.map do |origin_info_element| issuance_value = origin_info_element.issuance&.text&.strip next unless issuance_value.present? ModsDisplay::Values.new( label: I18n.t('mods_display.issuance'), values: [issuance_value], field: self ) end.compact collapse_fields(return_fields) end |