Sha256: 148bd7e54cd4d008ee54c7d8fef4edf48ae6ba0bdb093cc1259b008ae9e14ba2

Contents?: true

Size: 1.39 KB

Versions: 7

Compression:

Stored size: 1.39 KB

Contents

<%#
Copyright © 2012 The Pennsylvania State University

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%>

  <% paginator =
      Blacklight::Solr::FacetPaginator.new(display_facet.items,
        :limit => facet_limit_for(solr_field))
      %>
<ul class="slide-list">
  <% paginator.items.each do |item| -%>
    <li>
    <% if facet_in_params?( solr_field, item.value ) %>
        <%= render_selected_facet_value(solr_field, item).split("(").join('(<small>').split(")").join("</small>)").html_safe %>
      <% else %>
        <%= render_facet_value(solr_field, item).split("(").join('(<small>').split(")").join("</small>)").html_safe %>
    <% end -%>
    </li>
  <% end %>

  <% if(paginator.has_next?)  %>
    <li class="more_facets_link"><%= link_to 'more ' + facet_field.label.pluralize + '»', url_for(params.merge(:id => solr_field, :action=>"facet", :path_only=>true)), :class => "more_facets_link" %></li>
  <% end %>
</ul> <!-- /slide-list -->

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
curate-0.3.2 app/views/dashboard/_facet_limit.html.erb
curate-0.3.1 app/views/dashboard/_facet_limit.html.erb
curate-0.2.0 app/views/dashboard/_facet_limit.html.erb
curate-0.1.3 app/views/dashboard/_facet_limit.html.erb
curate-0.1.2 app/views/dashboard/_facet_limit.html.erb
curate-0.1.1 app/views/dashboard/_facet_limit.html.erb
curate-0.1.0 app/views/dashboard/_facet_limit.html.erb