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, #exhibit_search_action_url, #exhibit_search_facet_url, #search_action_url, #search_facet_url

Instance Method Details

#indexObject



11
12
13
# File 'app/controllers/spotlight/browse_controller.rb', line 11

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

#showObject



15
16
17
18
# File 'app/controllers/spotlight/browse_controller.rb', line 15

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