Skip to content

Commit

Permalink
Update show_sidebar
Browse files Browse the repository at this point in the history
Show sidebar map with iiif_manifest viewer
#239
  • Loading branch information
ewlarson committed Jun 28, 2019
1 parent e5ab6c8 commit b3f2ad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/catalog/_show_sidebar.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if ['map', 'iiif', 'download'].any?{ |vp| @document.viewer_protocol == vp } %>
<% if ['map', 'iiif', 'iiif_manifest', 'download'].any?{ |vp| @document.viewer_protocol == vp } %>
<%= render :partial => 'show_static_map_bbox' %>
<% end %>
Expand Down
5 changes: 5 additions & 0 deletions test/system/show_page_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ def test_mirador_show_page

assert page.has_selector?("#map")
assert page.has_selector?("[data-protocol='IiifManifest']")

# Sidebar Map
within(".page-sidebar")do
assert page.has_selector?("#static-map")
end
end

end

0 comments on commit b3f2ad7

Please sign in to comment.