comparison ViewerPlugin/OrthancExplorer.js @ 275:801790c81f20 iiif

configuration options of IIIF
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jul 2023 12:35:04 +0200
parents 0040ce361d4c
children 7020852a8fa9
comparison
equal deleted inserted replaced
274:2805246064aa 275:801790c81f20
72 } 72 }
73 }); 73 });
74 } 74 }
75 } 75 }
76 76
77 if (${SERVE_IIIF}) { 77 if (${ENABLE_IIIF}) {
78 var b = $('<a>') 78 var b = $('<a>')
79 .attr('data-role', 'button') 79 .attr('data-role', 'button')
80 .attr('href', '#') 80 .attr('href', '#')
81 .text('Copy link to IIIF manifest'); 81 .text('Copy link to IIIF manifest');
82 82
88 $('#series-access').append(li).listview("refresh"); 88 $('#series-access').append(li).listview("refresh");
89 89
90 b.click(function(e) { 90 b.click(function(e) {
91 if ($.mobile.pageData) { 91 if ($.mobile.pageData) {
92 e.preventDefault(); 92 e.preventDefault();
93 var url = new URL('${IIIF_PUBLIC_URL}' + seriesId + '/manifest.json', window.location.href); 93 var url = new URL('../wsi/iiif/series/' + seriesId + '/manifest.json', window.location.href);
94 navigator.clipboard.writeText(url.href); 94 navigator.clipboard.writeText(url.href);
95 $(e.target).closest('li').buttonMarkup({ icon: 'check' }); 95 $(e.target).closest('li').buttonMarkup({ icon: 'check' });
96 } 96 }
97 }); 97 });
98 } 98 }
108 .button(); 108 .button();
109 109
110 b.insertAfter($('#series-info')); 110 b.insertAfter($('#series-info'));
111 b.click(function() { 111 b.click(function() {
112 if ($.mobile.pageData) { 112 if ($.mobile.pageData) {
113 window.open('../wsi/app/mirador.html?iiif-content=../iiif/' + seriesId + '/manifest.json'); 113 window.open('../wsi/app/mirador.html?iiif-content=../iiif/series/' + seriesId + '/manifest.json');
114 } 114 }
115 }); 115 });
116 } 116 }
117 }); 117 });
118 }); 118 });