% default_field = @blacklight_configuration.blacklight_config.default_search_field %>
<%= field_set_tag(t(:'.header'), id: 'search_fields') do %>
<%= t(:'.help') %>
<%= t(:'.instructions') %>
<%= f.fields_for :search_fields, @blacklight_configuration.blacklight_config.search_fields.keys do |vt| %>
-
<% @blacklight_configuration.blacklight_config.search_fields.select { |_k, v| blacklight_configuration_context.evaluate_if_unless_configuration(v.original) && v.include_in_simple_select != false }.except(default_field.key).each_with_index do |(k, config), index| %>
<%= vt.fields_for k, config do |field| %>
<%= render layout: 'spotlight/shared/dd3_item', locals: { id: k, index: index, field: field } do %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if can? :manage, Spotlight::CustomSearchField.new(exhibit: current_exhibit) %>
<%= t(:'.exhibit_specific.header') %>
<%= t(:'.exhibit_specific.instructions') %>
<% @exhibit.custom_search_fields.each do |field| %>
<%= field.label %>
<%= exhibit_edit_link field %> ·
<%= exhibit_delete_link field %>
|
<%= field.field %>
|
<% end %>
<%= exhibit_create_link Spotlight::CustomSearchField.new, class: 'btn btn-primary' %>
<% end %>