class Blacklight::Configuration::ViewConfig

Public Instance Methods

display_label(deprecated_key = nil, **options) click to toggle source
# File lib/blacklight/configuration/view_config.rb, line 24
def display_label(deprecated_key = nil, **options)
  Deprecation.warn(Blacklight::Configuration::ViewConfig, 'Passing the key argument to ViewConfig#display_label is deprecated') if deprecated_key.present?

  I18n.t(
    :"blacklight.search.view_title.#{deprecated_key || key}",
    default: [
      :"blacklight.search.view.#{deprecated_key || key}",
      label,
      title,
      (deprecated_key || key).to_s.humanize
    ],
    **options
  )
end
search_bar_presenter_class() click to toggle source

@!attribute template

@return [String] partial to render around the documents

@!attribute partials

@return [Array<String>] partials to render for each document(see #render_document_partials)

@!attribute document_presenter_class

@return [Class] document presenter class used by helpers and views

@!attribute document_component

@return [Class] component class used to render a document; defaults to Blacklight::DocumentComponent

@!attribute title_field

@return [String, Symbol] solr field to use to render a document title

@!attribute display_type_field

@return [String, Symbol] solr field to use to render format-specific partials

@!attribute icon

@return [String, Symbol] icon file to use in the view picker

@!attribute document_actions

@return [NestedOpenStructWithHashAccess{Symbol => Blacklight::Configuration::ToolConfig}] 'tools' to render for each document
Calls superclass method
# File lib/blacklight/configuration/view_config.rb, line 20
def search_bar_presenter_class
  super || Blacklight::SearchBarPresenter
end