Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebApplication/app.js @ 1691:4a49de03a419
porting the "pickableStudyIds" feature of Osimis Web viewer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Nov 2020 17:54:04 +0100 |
parents | f2e8b3ac1dcd |
children | e787b52d025f |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js Wed Nov 25 17:07:47 2020 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Wed Nov 25 17:54:04 2020 +0100 @@ -729,11 +729,17 @@ if (study === undefined) { alert('No study was provided in the URL!'); } else { - if (series === undefined) { + var studies = study.split(','); + if (studies.length > 1) { + for (var i = 0; i < studies.length; i++) { + console.warn('Loading study: ' + studies[i]); + stone.FetchStudy(studies[i]); + } + } else if (series === undefined) { console.warn('Loading study: ' + study); stone.FetchStudy(study); } else { - console.warn('Loading series: ' + series + ' from study ' + study); + console.warn('Loading series: ' + series + ' from study: ' + study); stone.FetchSeries(study, series); app.leftMode = 'full'; }