Sha256: 68a81089ec056f68236e9f0e80414111a18437a3391dd8d58c26ae1add4b39df

Contents?: true

Size: 1.34 KB

Versions: 11

Compression:

Stored size: 1.34 KB

Contents

<%-  # required to pass in local :solr_field
     # optional :display_heading parameter, sometimes set to false
     #     by plugins that might re-use this inside something else. 
     display_heading = true unless local_assigns.has_key?(:display_heading)
-%>
   
   <% display_facet = @response.facets.detect {|f| f.name == solr_field} -%>
      <% if display_facet && display_facet.items.length > 0 %>
        <% if display_heading %>
          <h3><%= facet_field_labels[solr_field] -%></h3>
        <% end %>
        <ul>
          <% paginator =    
              Blacklight::Solr::FacetPaginator.new(display_facet.items,        
                :limit => facet_limit_for(solr_field))
          %>
          <% paginator.items.each do |item| -%>
            <li>
            <% if facet_in_params?( solr_field, item.value ) %>              
                <%= render_selected_facet_value(solr_field, item) %>              
              <% else %>              
                <%= render_facet_value(solr_field, item) %>              
            <% end -%>
            </li>
          <% end %>
          
          <% if(paginator.has_next?)  %>
            <li class="more_facets_link"><%= link_to('more ยป', params.merge(:id => solr_field, :action=>"facet"), :class => "more_facets_link") %></li>
          <% end %>
          
        </ul>
      <% end %>
   

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-3.1.2 app/views/catalog/_facet_limit.html.erb
blacklight-3.1.1 app/views/catalog/_facet_limit.html.erb
blacklight-3.1.0 app/views/catalog/_facet_limit.html.erb
blacklight-3.0.0 app/views/catalog/_facet_limit.html.erb
blacklight-3.0.0pre8 app/views/catalog/_facet_limit.html.erb
blacklight-3.0.0pre7 app/views/catalog/_facet_limit.html.erb
blacklight-3.0.0pre6 app/views/catalog/_facet_limit.html.erb
blacklight-3.0.0pre4 app/views/catalog/_facet_limit.html.erb
blacklight-3.0.0pre3 app/views/catalog/_facet_limit.html.erb
blacklight-3.0pre2 app/views/catalog/_facet_limit.html.erb
blacklight-3.0pre1 app/views/catalog/_facet_limit.html.erb