Class: Blacklight::InclusiveFacetItemPresenter
- Inherits:
-
FacetItemPresenter
- Object
- FacetItemPresenter
- Blacklight::InclusiveFacetItemPresenter
- 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
-
#label ⇒ String
Get the displayable version of a facet’s value.
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
#label ⇒ String
Get the displayable version of a facet’s value
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 |