File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1212 </ ul >
1313 <% if should_render_spotlight_search_bar? %>
1414 < 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+ ) %>
1623 </ div >
1724 <% end %>
1825 </ div >
You can’t perform that action at this time.
0 commit comments