Module: Spotlight::Controller
Instance Method Summary
collapse
Methods included from Config
#exhibit_specific_blacklight_config
Instance Method Details
#blacklight_config ⇒ Object
overwrites Blacklight::Controller#blacklight_config
16
17
18
19
20
21
22
|
# File 'lib/spotlight/controller.rb', line 16
def blacklight_config
if current_exhibit
exhibit_specific_blacklight_config
else
default_catalog_controller.blacklight_config
end
end
|
#current_exhibit ⇒ Object
11
12
13
|
# File 'lib/spotlight/controller.rb', line 11
def current_exhibit
@exhibit
end
|
#exhibit_search_action_url(*args) ⇒ Object
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/spotlight/controller.rb', line 40
def exhibit_search_action_url *args
options = args.
only_path = options[:only_path]
options.except! :exhibit_id, :only_path
if only_path
spotlight.exhibit_catalog_index_path(current_exhibit, *args, options)
else
spotlight.exhibit_catalog_index_url(current_exhibit, *args, options)
end
end
|
#exhibit_search_facet_url(*args) ⇒ Object
52
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/spotlight/controller.rb', line 52
def exhibit_search_facet_url *args
options = args.
only_path = options[:only_path]
options.except! :exhibit_id, :only_path
if only_path
spotlight.exhibit_catalog_facet_url(current_exhibit, *args, options)
else
spotlight.exhibit_catalog_facet_url(current_exhibit, *args, options)
end
end
|
#search_action_url(*args) ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/spotlight/controller.rb', line 24
def search_action_url *args
if current_exhibit
exhibit_search_action_url *args
else
main_app.catalog_index_url *args
end
end
|
#search_facet_url(*args) ⇒ Object
32
33
34
35
36
37
38
|
# File 'lib/spotlight/controller.rb', line 32
def search_facet_url *args
if current_exhibit
exhibit_search_facet_url *args
else
main_app.catalog_facet_url *args
end
end
|