Class: ModsDisplay::Note

Inherits:
Field
  • Object
show all
Defined in:
lib/mods_display/fields/note.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

#fieldsObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/mods_display/fields/note.rb', line 5

def fields
  return_fields = note_fields.map do |note_element|
    ModsDisplay::Values.new(
      label: displayLabel(note_element) || note_label(note_element),
      values: [element_text(note_element)],
      field: self
    )
  end
  collapse_fields(return_fields)
end