comparison ViewerPlugin/OrthancExplorer.js @ 270:0040ce361d4c iiif

serving openseadragon
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Jul 2023 17:16:32 +0200
parents dab414e5b520
children 801790c81f20
comparison
equal deleted inserted replaced
269:30fb01ce97a3 270:0040ce361d4c
22 22
23 $('#series').live('pagebeforeshow', function() { 23 $('#series').live('pagebeforeshow', function() {
24 var seriesId = $.mobile.pageData.uuid; 24 var seriesId = $.mobile.pageData.uuid;
25 25
26 $('#mirador-button').remove(); 26 $('#mirador-button').remove();
27 $('#openseadragon-button').remove();
27 $('#wsi-button').remove(); 28 $('#wsi-button').remove();
28 29
29 $('#series-iiif-button').remove(); 30 $('#series-iiif-button').remove();
30 $('#series-access').listview("refresh"); 31 $('#series-access').listview("refresh");
31 32
52 if ($.mobile.pageData) { 53 if ($.mobile.pageData) {
53 window.open('../wsi/app/viewer.html?series=' + seriesId); 54 window.open('../wsi/app/viewer.html?series=' + seriesId);
54 } 55 }
55 }); 56 });
56 57
58 if (${SERVE_OPEN_SEADRAGON}) {
59 var b = $('<a>')
60 .attr('id', 'openseadragon-button')
61 .attr('data-role', 'button')
62 .attr('href', '#')
63 .attr('data-icon', 'search')
64 .attr('data-theme', 'e')
65 .text('Test IIIF in OpenSeadragon')
66 .button();
67
68 b.insertAfter($('#series-info'));
69 b.click(function() {
70 if ($.mobile.pageData) {
71 window.open('../wsi/app/openseadragon.html?image=../iiif/tiles/' + seriesId + '/info.json');
72 }
73 });
74 }
57 } 75 }
58 76
59 if (${SERVE_IIIF}) { 77 if (${SERVE_IIIF}) {
60 var b = $('<a>') 78 var b = $('<a>')
61 .attr('data-role', 'button') 79 .attr('data-role', 'button')
84 .attr('id', 'mirador-button') 102 .attr('id', 'mirador-button')
85 .attr('data-role', 'button') 103 .attr('data-role', 'button')
86 .attr('href', '#') 104 .attr('href', '#')
87 .attr('data-icon', 'search') 105 .attr('data-icon', 'search')
88 .attr('data-theme', 'e') 106 .attr('data-theme', 'e')
89 .text('Open IIIF in Mirador') 107 .text('Test IIIF in Mirador')
90 .button(); 108 .button();
91 109
92 b.insertAfter($('#series-info')); 110 b.insertAfter($('#series-info'));
93 b.click(function() { 111 b.click(function() {
94 if ($.mobile.pageData) { 112 if ($.mobile.pageData) {