Class: Spotlight::BrowseController

Inherits:
ApplicationController show all
Includes:
Base, Catalog::AccessControlsEnforcement
Defined in:
app/controllers/spotlight/browse_controller.rb

Instance Method Summary collapse

Methods included from Base

#autocomplete_json_response, #blacklight_config

Methods included from Config

#exhibit_specific_blacklight_config

Methods included from Controller

#blacklight_config, #current_exhibit, #current_masthead, #current_masthead=, #default_masthead?, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_url, #search_action_url, #search_facet_url

Instance Method Details

#indexObject



13
14
15
# File 'app/controllers/spotlight/browse_controller.rb', line 13

def index
  @searches = @exhibit.searches.published
end

#showObject



17
18
19
20
21
22
# File 'app/controllers/spotlight/browse_controller.rb', line 17

def show
  blacklight_config.index.document_actions = blacklight_config.browse.document_actions

  add_breadcrumb @search.title, exhibit_browse_path(@exhibit, @search)
  (@response, @document_list) = get_search_results @search.query_params.with_indifferent_access.merge(params)
end