Sha256: 3f7b1130cc86d6e766a8e37f8d8c1ac285c8dbbd20c490386f602dcf7a42cceb

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

# WHEN Blacklight 5.2 comes out this should inherit from Blacklight::DocumentPresenter
module Spotlight
  class DocumentPresenter < Blacklight::DocumentPresenter

    def raw_document_heading
      Array(@document[@configuration.view_config(:show).title_field]).join(field_value_separator) || @document.id
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-spotlight-0.2.0 lib/spotlight/document_presenter.rb
blacklight-spotlight-0.1.0 lib/spotlight/document_presenter.rb