File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 12
12
</ ul >
13
13
<% if should_render_spotlight_search_bar? %>
14
14
< div class ="navbar-right navbar-nav exhibit-search-form mt-3 mt-md-0 ">
15
- <%= render_search_bar %>
15
+ <%- renderable_search_fields = current_exhibit . blacklight_config . search_fields . values . collect { |field_def | [ label_for_search_field ( field_def . key ) , field_def . key ] if should_render_field? ( field_def ) } . compact %>
16
+ <%= render ( ( current_exhibit . blacklight_config &.view_config ( document_index_view_type ) &.search_bar_component ||Blacklight ::SearchBarComponent ) . new (
17
+ url : search_action_url ,
18
+ advanced_search_url : search_action_url ( action : 'advanced_search' ) ,
19
+ search_fields : renderable_search_fields ,
20
+ params : search_state . params_for_search . except ( :qt ) ,
21
+ autocomplete_path : search_action_path ( action : :suggest ) )
22
+ ) %>
16
23
</ div >
17
24
<% end %>
18
25
</ div >
You can’t perform that action at this time.
0 commit comments