From a422ba63344b93b7d657662a013282aa6c67f14a Mon Sep 17 00:00:00 2001 From: bwbohl Date: Wed, 3 Jul 2024 15:14:13 +0200 Subject: [PATCH] View TextFacsimileSplitView: add openseadragon as alternative viewer --- app/view/window/text/TextFacsimileSplitView.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/view/window/text/TextFacsimileSplitView.js b/app/view/window/text/TextFacsimileSplitView.js index d0605307c..3f7dc558d 100644 --- a/app/view/window/text/TextFacsimileSplitView.js +++ b/app/view/window/text/TextFacsimileSplitView.js @@ -45,8 +45,11 @@ Ext.define('EdiromOnline.view.window.text.TextFacsimileSplitView', { if(me.image_server === 'leaflet'){ me.imageViewer = Ext.create('EdiromOnline.view.window.image.LeafletFacsimile'); - } - else{ + }else if(image_server === "openseadragon") { + me.imageViewer = Ext.create( + "EdiromOnline.view.window.image.OpenSeaDragonViewer", + ); + }else{ me.imageViewer = Ext.create('EdiromOnline.view.window.image.ImageViewer'); } @@ -87,7 +90,7 @@ Ext.define('EdiromOnline.view.window.text.TextFacsimileSplitView', { var me = this; - if(me.image_server === 'digilib'){ + if(me.image_server === 'digilib' || me.image_server === 'openseadragon'){ me.zoomSlider = Ext.create('Ext.slider.Single', { width: 140, value: 100,