app/helpers/hyrax/hyrax_helper_behavior.rb
# Uses Rails auto_link to add links to fields
#
# @param field [String,Hash] string to format and escape, or a hash as per helper_method
# @option field [SolrDocument] :document
# @option field [String] :field name of the solr field
# @option field [Blacklight::Configuration::IndexField, Blacklight::Configuration::ShowField] :config
# @option field [Array] :value array of values for the field
# @param show_link [Boolean]
# @return [ActiveSupport::SafeBuffer]
# @todo stop being a helper_method, start being part of the Blacklight render stack?
Uses Rails auto_link to add links to fields
Uses Rails auto_link to add links to fields
def iconify_auto_link(field, show_link = true)
      if field.is_a? Hash
        options = field[:config].separator_options || {}
        text = field[:value].to_sentence(options)
      else
        text = field
      end
      auto_link(html_escape(text)) do |value|
        "<span class='glyphicon glyphicon-new-window'></span>#{('&nbsp;' + value) if show_link}"
      end
    end
def iconify_auto_link ( field , show_link = true ) if field . is_a? Hash options = field [ :config ] . separator_options || { } text = field [ :value ] . to_sentence ( options ) else text = field end auto_link ( html_escape ( text ) ) do | value | "<span class='glyphicon glyphicon-new-window'></span>#{('&nbsp;' + value) if show_link}" end end
Uses Rails auto_link to add links to fields
Uses Rails auto_link to add links to fields
# this block is only executed when a link is inserted; # if we pass text containing no links, it just returns text.
None
ActiveSupport::SafeBuffer
field
:value array of values for the field
: value array of values for the field
show_link
<not_specific>
<not_specific>
None
todo
None