<% if constraints? %>

<%= t 'blacklight.advanced_search.form.search_context' %>

<% constraints.each do |constraint| %> <%= constraint %> <% end %>
<% end %> <%= form_tag @url, method: @method, class: @classes.join(' '), role: 'search', 'aria-label' => t('blacklight.search.form.submit') do %> <%= render_hash_as_hidden_fields(@params) %>

<%= t('blacklight.advanced_search.form.query_criteria_heading_html', select_menu: default_operator_menu) %>

<% if search_filter_controls? %>

<%= t('blacklight.advanced_search.form.limit_criteria_heading_html')%>

<% search_filter_controls.each do |control| %> <%= control %> <% end %>
<% end %>
<% if sort_fields_select %>
<%= content_tag :h2, t('blacklight.advanced_search.form.sort_label'), class: 'col-md-3 col-form-label text-md-right' %>
<%= sort_fields_select %>
<% end %>
<%= submit_tag t('blacklight.advanced_search.form.search_btn_html'), class: 'btn btn-primary advanced-search-submit', id: "advanced-search-submit" %> <%= button_tag t('blacklight.advanced_search.form.start_over_html'), type: 'reset', class: 'btn btn-link advanced-search-start-over' %>
<% end %>