Module: Arclight::FieldConfigHelpers
- Includes:
- EadFormatHelpers
- Included in:
- ArclightHelper
- Defined in:
- app/helpers/arclight/field_config_helpers.rb
Overview
A module to add configuration helpers for certain fields used by Arclight
Instance Method Summary collapse
Methods included from EadFormatHelpers
Instance Method Details
#item_requestable?(document) ⇒ Boolean
9 10 11 |
# File 'app/helpers/arclight/field_config_helpers.rb', line 9 def item_requestable?(document) document.requestable? end |
#link_to_name_facet(args) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/helpers/arclight/field_config_helpers.rb', line 14 def link_to_name_facet(args) = args[:config]&. || {} values = args[:value] || [] values.map do |value| link_to( value, search_action_path(f: { names: [value] }) ) end.to_sentence().html_safe end |