app/helpers/vault_homepage_helper.rb
##
# Standard display of a facet value in a list. Used in both _facets sidebar
# partial and catalog/facet expanded list. Will output facet value name as
# a link to add that to your restrictions, with count in parens.
#
# @param [String]: The name of the facet field, e.g. "genre_label_sim"
# @param [Blacklight::Solr::Response::Facets::FacetItem] item
# @param [Hash] options
# @option options [Boolean] :suppress_link display the facet, but don't link to it
# @return [String]
Standard display of a facet value in a list. Used in both _facets sidebar
partial and catalog/facet expanded list. Will output facet value name as
a link to add that to your restrictions, with count in parens.
Standard display of a facet value in a list . Used in both _facets sidebar partial and catalog / facet expanded list . Will output facet value name as a link to add that to your restrictions with count in parens .
def render_homepage_facet_value(facet_field, item, options ={})
    path = path_for_homepage_facet(facet_field, item)
    options[:label] ? label = options[:label] : label = facet_display_value(facet_field, item)
    content_tag(:li, class:"homepage-facet-label col-md") do
      link_to_unless(options[:suppress_link], label, path, class: "homepage-facet-link homepage-tab-link")
    end
  end
def render_homepage_facet_value ( facet_field , item , options = { } ) path = path_for_homepage_facet ( facet_field , item ) options [ :label ] ? label = options [ :label ] : label = facet_display_value ( facet_field , item ) content_tag ( :li , class : "homepage-facet-label col-md" ) do link_to_unless ( options [ :suppress_link ] , label , path , class : "homepage-facet-link homepage-tab-link" ) end end
Standard display of a facet value in a list.
Standard display of a facet value in a list .
None
String
facet_field
<not_specific>
item
<not_specific>
options
:suppress_link display the facet, but don't link to it
: suppress_link display the facet but don ' t link to it
:
<not_specific>
The name of the facet field, e.g.
The name of the facet field e . g .
<not_specific>
None