comparison Applications/StoneWebViewer/WebApplication/app.js @ 1843:251d7f7a6c4e

New configuration option "DownloadDicomDir" in Stone Web viewer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Jun 2021 14:30:00 +0200
parents 9568082ee013
children 023cce3d7844
comparison
equal deleted inserted replaced
1842:9568082ee013 1843:251d7f7a6c4e
399 synchronizedBrowsing: false, 399 synchronizedBrowsing: false,
400 globalConfiguration: {}, 400 globalConfiguration: {},
401 creatingArchive: false, 401 creatingArchive: false,
402 archiveJob: '', 402 archiveJob: '',
403 mouseTool: 0, 403 mouseTool: 0,
404 orthancSystem: {}, // Only available if "DicomWebRoot" configuration option is set 404 orthancSystem: {}, // Only available if "OrthancApiRoot" configuration option is set
405 stoneWebViewerVersion: '...', 405 stoneWebViewerVersion: '...',
406 emscriptenVersion: '...', 406 emscriptenVersion: '...',
407 407
408 modalWarning: false, 408 modalWarning: false,
409 modalNotDiagnostic: false, 409 modalNotDiagnostic: false,
1009 if (response.data.length != 1) { 1009 if (response.data.length != 1) {
1010 throw(''); 1010 throw('');
1011 } 1011 }
1012 else { 1012 else {
1013 var orthancId = response.data[0]['ID']; 1013 var orthancId = response.data[0]['ID'];
1014 var uri = that.globalConfiguration.OrthancApiRoot + '/studies/' + orthancId + '/archive'; 1014
1015 var uri = that.globalConfiguration.OrthancApiRoot + '/studies/' + orthancId;
1016 if (that.globalConfiguration.DownloadDicomDir === true) {
1017 uri = uri + '/media';
1018 } else {
1019 uri = uri + '/archive';
1020 }
1015 1021
1016 if (that.orthancSystem.ApiVersion >= 13) { 1022 if (that.orthancSystem.ApiVersion >= 13) {
1017 // ZIP streaming is available (this is Orthanc >= 1023 // ZIP streaming is available (this is Orthanc >=
1018 // 1.9.4): Simply give the hand to Orthanc 1024 // 1.9.4): Simply give the hand to Orthanc
1019 event.preventDefault(); 1025 event.preventDefault();