Class: Spotlight::BrowseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Spotlight::BrowseController
- Includes:
- Blacklight::Facet, Catalog
- Defined in:
- app/controllers/spotlight/browse_controller.rb
Overview
Index and read actions for browse (see SearchesController for the curator’s create-update-delete actions)
Instance Method Summary collapse
Methods included from Catalog
Methods included from SearchHelper
#search_service, #search_service_context
Methods included from Base
#autocomplete_json_response, #autocomplete_json_response_for_document, #blacklight_config, #controller_tracking_method
Methods included from Config
#exhibit_specific_blacklight_config
Methods included from Concerns::ApplicationController
#enabled_in_spotlight_view_type_configuration?, #field_enabled?
Methods included from Controller
#blacklight_config, #current_exhibit, #current_masthead=, #current_site, #default_url_options, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_path, #search_action_url, #search_facet_path, #search_state, #set_exhibit_locale_scope, #set_locale
Instance Method Details
#index ⇒ Object
33 34 35 36 |
# File 'app/controllers/spotlight/browse_controller.rb', line 33 def index @groups = @exhibit.groups.published @searches = @searches.published end |
#show ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 |
# File 'app/controllers/spotlight/browse_controller.rb', line 38 def show # For Blacklight 8, @document_list will be nil but # will be required for Blacklight 7 to work correctly. @response, @document_list = search_service.search_results do |builder| builder.with(params.merge(browse_category_id: @search.id)) end respond_to do |format| format.html end end |