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-8.6.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.40.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.6.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.5.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.5.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.39.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.4.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.38.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.3.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.2.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.2.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.2.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.37.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.36.2 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.36.1 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.36.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-7.35.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb
blacklight-8.1.0 app/presenters/blacklight/inclusive_facet_item_presenter.rb