Module: Arclight::EadFormatHelpers
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActionView::Helpers::OutputSafetyHelper
- Included in:
- FieldConfigHelpers, SolrDocument
- Defined in:
- app/controllers/concerns/arclight/ead_format_helpers.rb
Overview
A module to add EAD to HTML transformation rules for Arclight
Instance Method Summary collapse
Instance Method Details
#render_html_tags(args) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/concerns/arclight/ead_format_helpers.rb', line 10 def (args) values = args[:value] || [] values.map! do |value| transform_ead_to_html(value) end values.map! { |value| wrap_in_paragraph(value) } if values.count > 1 safe_join(values.map(&:html_safe)) end |