Class: Blacklight::Configuration::ViewConfig::Index

Inherits:
Blacklight::Configuration::ViewConfig show all
Defined in:
lib/blacklight/configuration/view_config.rb

Instance Attribute Summary collapse

Attributes inherited from Blacklight::Configuration::ViewConfig

#constraints_component, #display_type_field, #document_actions, #document_component, #facet_group_component, #icon, #partials, #search_bar_component, #search_header_component, #template, #title_field

Instance Method Summary collapse

Methods inherited from Blacklight::Configuration::ViewConfig

#display_label

Methods inherited from OpenStructWithHashAccess

#deep_dup, #deep_transform_values, #merge, #merge!, #reverse_merge, #select, #sort_by, #sort_by!, #try

Instance Attribute Details

#collection_actionsString, Symbol

Returns:

  • (String, Symbol)


75
76
77
# File 'lib/blacklight/configuration/view_config.rb', line 75

def document_presenter_class
  super || Blacklight::IndexPresenter
end

#groupfalse, ...

Returns what field, if any, to use to render grouped results.

Returns:

  • (false, String, Symbol)

    what field, if any, to use to render grouped results



75
76
77
# File 'lib/blacklight/configuration/view_config.rb', line 75

def document_presenter_class
  super || Blacklight::IndexPresenter
end

#respond_toOpenStructWithHashAccess{Symbol => OpenStruct}

Returns additional response formats for search results; see Blacklight::Catalog#additional_response_formats for information about the OpenStruct data.

Returns:

  • (OpenStructWithHashAccess{Symbol => OpenStruct})

    additional response formats for search results; see Blacklight::Catalog#additional_response_formats for information about the OpenStruct data



75
76
77
# File 'lib/blacklight/configuration/view_config.rb', line 75

def document_presenter_class
  super || Blacklight::IndexPresenter
end

Instance Method Details

#document_presenter_classObject



75
76
77
# File 'lib/blacklight/configuration/view_config.rb', line 75

def document_presenter_class
  super || Blacklight::IndexPresenter
end

#to_hObject



79
80
81
# File 'lib/blacklight/configuration/view_config.rb', line 79

def to_h
  super.merge(document_presenter_class: document_presenter_class)
end