Sha256: 45d46a1d0225f46418e63d1fba7741fc669f382832a97117ca72160f20b2a7e3

Contents?: true

Size: 503 Bytes

Versions: 69

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class InclusiveFacetItemPresenter < Blacklight::FacetItemPresenter
    ##
    # Get the displayable version of a facet's value
    #
    # @return [String]
    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
  end
end

Version data entries

69 entries across 68 versions & 2 rubygems

Version Path
blacklight-7.18.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.18.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.17.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.17.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.17.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.16.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.15.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.15.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.15.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb