Sha256: 2d005128f545aac781ec3a379e650ab4c068f3999178300d337fa3d7b460e501

Contents?: true

Size: 792 Bytes

Versions: 9

Compression:

Stored size: 792 Bytes

Contents

<%-
# Custom facet_limit partial that displays inclusive 'or' advanced facet
# limits at the top, then lets you drill down into ordinary facets. 
#
# pass in :solr_field local. 
#
# Assumes an @advanced_query exists, and probably has #filters for this
# solr_field. 
-%>

<h3><%= facet_field_labels[solr_field] -%></h3>

<div class="advanced_facet_limit">
  <div class="inclusive_or">
    <h4>Any of:</h4>
    <ul>
    <% @advanced_query.filters[solr_field].each do |value| %>
        <li><span class="selected"><%= h(value) %></span> <%= link_to "[remove]", remove_advanced_facet_param(solr_field, value), :class=>"remove" %></li>
    <% end %>
    </ul>
  </div>
  
<%= render(:partial => "catalog/facet_limit", :locals => {:solr_field => solr_field, :display_heading => false}) %>

</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blacklight_advanced_search-1.1.2 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.1.1 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.1.0 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.0.0 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.0.0pre5 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.0.0pre4 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.0.0pre3 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.0.0pre2 app/views/blacklight_advanced_search/_facet_limit.html.erb
blacklight_advanced_search-1.0.0pre1 app/views/blacklight_advanced_search/_facet_limit.html.erb