Sha256: be9f2bb3e927a96edfb89d86ce35050acfbee9f3fa1f78c14a324c51289de9c3

Contents?: true

Size: 1.86 KB

Versions: 19

Compression:

Stored size: 1.86 KB

Contents

<p class="instructions"><%=t(:'.help') %></p>
<div class="dd facet_fields" id="nested-fields" data-behavior="nestable" data-max-depth="1">
  <ol class="dd-list">
    <%= f.fields_for :facet_fields do |idxf| %>
      <% @blacklight_configuration.blacklight_config.facet_fields.select { |k, v| blacklight_configuration_context.evaluate_if_unless_configuration(v.original) }.each do |key, config| %>
        <% metadata = @field_metadata.field(key) %>
        <% next unless metadata[:document_count] > 0 || config.custom_field %>
        <%= idxf.fields_for key, config do |facet| %>
          <%= render layout: 'spotlight/shared/dd3_item', locals: { id: key, field: facet, dd3_content_classes: "facet-config-#{key.parameterize} page" , enabled_method: :show, label_method: :label, label: facet_field_label(key) } do |_, section| %>
            <% case section when :additional_content %>
              <div class="mt-2">
                <%= facet.form_group :terms, label_col: 'col-md-2 offset-md-1', label: { text: t(:'spotlight.search_configurations.facets.sort_by.label') } do %>
                  <%= facet.radio_button :sort, 'count', label: t(:'spotlight.search_configurations.facets.sort_by.count'), checked: (config.sort.to_s == 'count' || config.sort.nil?) %>
                  <%= facet.radio_button :sort, 'index', label: t(:'spotlight.search_configurations.facets.sort_by.index'), checked: (config.sort.to_s == 'index') %>
                <% end %>
              </div>
            <% when :additional_options  %>
              <div class="facet-metadata mr-3 me-3">
                <%= render partial: 'facet_metadata', locals: { blacklight_config: @blacklight_configuration.blacklight_config, field_config: config, metadata: metadata } %>
              </div>
            <% else %>
            <% end %>
          <% end %>
        <% end %>
      <% end  %>
    <% end %>
  </ol>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
blacklight-spotlight-4.6.1 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.6.0 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.5.0 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.4.0 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.3.6 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.3.5 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.3.4 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.3.3 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.3.2 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.3.1 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.3.0 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.2.0 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.1.2 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.1.1 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.1.0 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.0.3 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.0.2 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.0.1 app/views/spotlight/search_configurations/_facets.html.erb
blacklight-spotlight-4.0.0 app/views/spotlight/search_configurations/_facets.html.erb