Class: BlacklightAdvancedSearch::AdvancedController

Inherits:
CatalogController
  • Object
show all
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

Instance Method Details

#indexObject



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 options = {}
  catalog_index_url(options.except(:controller, :action))
end