Class: Blacklight::InclusiveFacetItemPresenter

Inherits:
FacetItemPresenter show all
Defined in:
app/presenters/blacklight/inclusive_facet_item_presenter.rb

Instance Attribute Summary

Attributes inherited from FacetItemPresenter

#facet_config, #facet_field, #facet_item, #search_state, #view_context

Instance Method Summary collapse

Methods inherited from FacetItemPresenter

#add_href, #constraint_label, #field_label, #hits, #href, #initialize, #items, #remove_href, #selected?, #value

Constructor Details

This class inherits a constructor from Blacklight::FacetItemPresenter

Instance Method Details

#labelString

Get the displayable version of a facet’s value

Returns:

  • (String)


9
10
11
12
13
14
# File 'app/presenters/blacklight/inclusive_facet_item_presenter.rb', line 9

def label
  view_context.safe_join(
    Array(facet_item).map { |value| Blacklight::FacetGroupedItemPresenter.new(facet_item, value, facet_config, view_context, facet_field, search_state).label },
    view_context.t('blacklight.advanced_search.or_html')
  )
end