Mercurial > hg > orthanc-wsi
diff 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 |
line wrap: on
line diff
--- a/ViewerPlugin/OrthancExplorer.js Wed Jul 12 11:24:56 2023 +0200 +++ b/ViewerPlugin/OrthancExplorer.js Wed Jul 12 12:35:04 2023 +0200 @@ -74,7 +74,7 @@ } } - if (${SERVE_IIIF}) { + if (${ENABLE_IIIF}) { var b = $('<a>') .attr('data-role', 'button') .attr('href', '#') @@ -90,7 +90,7 @@ b.click(function(e) { if ($.mobile.pageData) { e.preventDefault(); - var url = new URL('${IIIF_PUBLIC_URL}' + seriesId + '/manifest.json', window.location.href); + var url = new URL('../wsi/iiif/series/' + seriesId + '/manifest.json', window.location.href); navigator.clipboard.writeText(url.href); $(e.target).closest('li').buttonMarkup({ icon: 'check' }); } @@ -110,7 +110,7 @@ b.insertAfter($('#series-info')); b.click(function() { if ($.mobile.pageData) { - window.open('../wsi/app/mirador.html?iiif-content=../iiif/' + seriesId + '/manifest.json'); + window.open('../wsi/app/mirador.html?iiif-content=../iiif/series/' + seriesId + '/manifest.json'); } }); }