From b3f2ad7946d198a879dd9c5bfbfb5b118b1f80f6 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Fri, 28 Jun 2019 13:50:14 -0500 Subject: [PATCH] Update show_sidebar Show sidebar map with iiif_manifest viewer #239 --- app/views/catalog/_show_sidebar.html.erb | 2 +- test/system/show_page_test.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/catalog/_show_sidebar.html.erb b/app/views/catalog/_show_sidebar.html.erb index 3a383adfc..e9dcc4f44 100644 --- a/app/views/catalog/_show_sidebar.html.erb +++ b/app/views/catalog/_show_sidebar.html.erb @@ -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 %> diff --git a/test/system/show_page_test.rb b/test/system/show_page_test.rb index e1bfeae66..5eebc2fa6 100644 --- a/test/system/show_page_test.rb +++ b/test/system/show_page_test.rb @@ -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