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.26.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.26.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.25.3 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.25.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.25.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.25.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.24.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.23.0.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.23.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.22.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.22.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.22.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.21.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.21.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.21.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.20.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.20.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.19.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.19.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.19.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb