Class: BlacklightAdvancedSearch::AdvancedController
- Inherits:
-
CatalogController
- Object
- CatalogController
- BlacklightAdvancedSearch::AdvancedController
- Includes:
- AdvancedHelper
- Defined in:
- app/controllers/blacklight_advanced_search/advanced_controller.rb
Overview
Need to sub-class CatalogController so we get all other plugins behavior for our own “inside a search context” lookup of facets.
Instance Method Summary collapse
- #index ⇒ Object
-
#search_action_url(options = {}) ⇒ Object
Blacklight uses #search_action_url to figure out the right URL for the global search box.
Instance Method Details
#index ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/blacklight_advanced_search/advanced_controller.rb', line 13 def index @nav_li_active = 'search' unless request.method==:post @response = get_advanced_search_facets end end |
#search_action_url(options = {}) ⇒ Object
Blacklight uses #search_action_url to figure out the right URL for the global search box
8 9 10 |
# File 'app/controllers/blacklight_advanced_search/advanced_controller.rb', line 8 def search_action_url = {} catalog_index_url(.except(:controller, :action)) end |