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