From 0b6f79e1ea06c58eba130a7be98eda08479f5077 Mon Sep 17 00:00:00 2001 From: Benjamin Schmidt Date: Mon, 3 May 2021 09:24:19 -0400 Subject: [PATCH 1/3] osd_iiif_viewer swaps out static viewer --- _includes/osd_iiif_image_viewer.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/osd_iiif_image_viewer.html b/_includes/osd_iiif_image_viewer.html index efa101b6e..d874e5270 100644 --- a/_includes/osd_iiif_image_viewer.html +++ b/_includes/osd_iiif_image_viewer.html @@ -5,6 +5,8 @@ $(document).ready(function () { var manifestUrl = "{{ include.manifest | absolute_url }}"; $.getJSON(manifestUrl, function(data) { + $('.item-view').style("display", "none"); + $('.item-view .osd-browser').style("display", "inline"); var tileSources = []; $.each(data.sequences[0].canvases, function(k, val) { tileSources.push(val.images[0].resource.service['@id'] + '/info.json'); @@ -16,7 +18,7 @@ tileSources: tileSources, homeFillsViewer: false, showReferenceStrip: true - }); + }) }); }); From 15fd813135fb477590d31612e476b6b4a274c47b Mon Sep 17 00:00:00 2001 From: Benjamin Schmidt Date: Mon, 3 May 2021 09:27:54 -0400 Subject: [PATCH 2/3] Always show static browser, hidden OSD on demand --- _layouts/generic_collection_item.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/_layouts/generic_collection_item.html b/_layouts/generic_collection_item.html index dea00c478..c978e0108 100644 --- a/_layouts/generic_collection_item.html +++ b/_layouts/generic_collection_item.html @@ -15,15 +15,18 @@

{{ page.label }}

{% endif %} {% if viewer %} -
+
- {% if viewer == 'openseadragon' %} - {% include osd_iiif_image_viewer.html manifest=page.manifest prevlink=prevlink nextlink=nextlink %} - {% else %} {% include simple_image_viewer.html full_image=page.full prevlink=prevlink nextlink=nextlink %} - {% endif %}
+ {% if viewer == 'openseadragon' %} + + {% unless layout.pagination == false %}{% include item_pagination.html %}{% endunless %} {% endif %} From 68d749ec19cd148e87f7863213b7129d17dd08b2 Mon Sep 17 00:00:00 2001 From: Benjamin Schmidt Date: Mon, 3 May 2021 09:29:31 -0400 Subject: [PATCH 3/3] Add missing if block --- _layouts/generic_collection_item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/generic_collection_item.html b/_layouts/generic_collection_item.html index c978e0108..fadeaf80b 100644 --- a/_layouts/generic_collection_item.html +++ b/_layouts/generic_collection_item.html @@ -26,7 +26,7 @@

{{ page.label }}

{% include osd_iiif_image_viewer.html manifest=page.manifest prevlink=prevlink nextlink=nextlink %}
- + {% endif %} {% unless layout.pagination == false %}{% include item_pagination.html %}{% endunless %} {% endif %}