Sha256: d6356129d14cb153d8657cc489c0ead912d32875500e3c5d6e3f929a09f39130

Contents?: true

Size: 988 Bytes

Versions: 7

Compression:

Stored size: 988 Bytes

Contents

<% if !subfacet ||= false %>
  <ul class="dropdown-menu pivot-facet list-unstyled">
<% end %>

  <% display_facet.items.each do |item| -%>
    <li>
      <span class="facet-values">
        <% # This prevents model Collection from being shown as a second filter along with the collection type. %>
        <% item.fq= {} if subfacet %>

        <% # The unless prevents Collection from being included in the select list for the Collection Type filter. %>
        <%= render_facet_item(item.field, item) unless subfacet != true && item.value == "Collection" %>
      </span>

      <% unless item.items.blank? %>
        <%= render partial: 'facet_pivot', locals: { subfacet: true,
                                                     display_facet: item,
                                                     field_name: field_name,
                                                     solr_field: field_name } %>
      <% end %>
    </li>
  <% end %>

<% if !subfacet %>
  </ul>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-2.2.0 app/views/hyrax/my/_facet_pivot.html.erb
hyrax-2.1.0 app/views/hyrax/my/_facet_pivot.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/my/_facet_pivot.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/my/_facet_pivot.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/my/_facet_pivot.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/my/_facet_pivot.html.erb
hyrax-2.1.0.beta2 app/views/hyrax/my/_facet_pivot.html.erb