Sha256: 0e6a3c2846498cf43142be7c24fd761249aa94de63cf2b0fe32152cce977f018

Contents?: true

Size: 548 Bytes

Versions: 12

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

module Arclight
  # Custom presentation methods for show partial
  class ShowPresenter < Blacklight::ShowPresenter
    def heading
      document.normalized_title
    end

    def with_field_group(group)
      self.field_group = group
      self
    end

    private

    def field_group
      @field_group || 'show_field'
    end

    attr_writer :field_group

    def field_config(field)
      BlacklightFieldConfigurationFactory.for(config: configuration, field: field, field_group: field_group)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
arclight-0.5.0 app/presenters/arclight/show_presenter.rb
arclight-0.4.0 app/presenters/arclight/show_presenter.rb
arclight-0.3.3 app/presenters/arclight/show_presenter.rb
arclight-0.3.2 app/presenters/arclight/show_presenter.rb
arclight-0.3.1 app/presenters/arclight/show_presenter.rb
arclight-0.3.0 app/presenters/arclight/show_presenter.rb
arclight-0.2.0 app/presenters/arclight/show_presenter.rb
arclight-0.1.4 app/presenters/arclight/show_presenter.rb
arclight-0.1.3 app/presenters/arclight/show_presenter.rb
arclight-0.1.2 app/presenters/arclight/show_presenter.rb
arclight-0.1.1 app/presenters/arclight/show_presenter.rb
arclight-0.1.0 app/presenters/arclight/show_presenter.rb