Sha256: 6dc3ecc83035b42b34e1adc68957cb6b2a074eeefc0acd2e287b006df4a39416

Contents?: true

Size: 425 Bytes

Versions: 53

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true
module Blacklight
  class ShowPresenter < DocumentPresenter
    private

    # @return [Hash<String,Configuration::Field>]
    def fields
      configuration.show_fields_for(display_type)
    end

    def field_config(field)
      configuration.show_fields.fetch(field) { Configuration::NullField.new(field) }
    end

    def field_presenter_options
      { context: 'show' }
    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.39.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.38.0 app/presenters/blacklight/show_presenter.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/presenters/blacklight/show_presenter.rb
blacklight-7.37.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.36.2 app/presenters/blacklight/show_presenter.rb
blacklight-7.36.1 app/presenters/blacklight/show_presenter.rb
blacklight-7.36.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.35.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.34.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.33.1 app/presenters/blacklight/show_presenter.rb
blacklight-7.33.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.32.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.31.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.30.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.29.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.28.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.27.1 app/presenters/blacklight/show_presenter.rb
blacklight-7.27.0 app/presenters/blacklight/show_presenter.rb
blacklight-7.26.1 app/presenters/blacklight/show_presenter.rb