Skip to content

Commit

Permalink
add "more" link to icon facet partial
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Jan 22, 2018
1 parent 5ba4123 commit 40d9300
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions app/views/catalog/_icon_facet.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<ul class="facet-values list-unstyled">
<% paginator = facet_paginator(facet_field, display_facet) %>
<% paginator.items.each do |item| -%>
<li>
<%= render_facet_item_with_icon(field_name, item) %>
</li>
<li>
<%= render_facet_item_with_icon(field_name, item) %>
</li>
<% end %>
<% unless paginator.last_page? || params[:action] == "facet" %>
<li class="more_facets">
<%= link_to t("more_#{field_name}_html", scope: 'blacklight.search.facets', default: :more_html, field_name: facet_field.label),
search_facet_path(id: facet_field.key),
class: 'more_facets_link' %>
</li>
<% end %>
</ul>
1 change: 1 addition & 0 deletions spec/features/split_view.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
expect(page).to have_css('a.facet_select', text: 'Columbia', visible: true)
expect(page).to have_css('a.facet_select', text: 'MIT', visible: true)
expect(page).to have_css('a.facet_select', text: 'Stanford', visible: true)
expect(page).to have_css('a.more_facets_link', text: 'more Institution »', visible: true)
end

scenario 'hover on record should produce bounding box on map' do
Expand Down

0 comments on commit 40d9300

Please sign in to comment.