Mercurial > hg > orthanc-ohif
comparison Sources/OrthancExplorer.js @ 36:5f8d66f7fa06
Enabled support for segmentation and microscopy modes
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 15 Mar 2024 17:52:06 +0100 |
parents | 36049c04ee27 |
children |
comparison
equal
deleted
inserted
replaced
35:d16e40e084dc | 36:5f8d66f7fa06 |
---|---|
88 } else { | 88 } else { |
89 window.open('../ohif/tmtv?url=../studies/' + studyId + '/ohif-dicom-json'); | 89 window.open('../ohif/tmtv?url=../studies/' + studyId + '/ohif-dicom-json'); |
90 } | 90 } |
91 }); | 91 }); |
92 | 92 |
93 AddOhifViewer(viewers, 'Segmentation', function() { | |
94 if (${USE_DICOM_WEB}) { | |
95 window.open('../ohif/segmentation?StudyInstanceUIDs=' + studyInstanceUid); | |
96 } else { | |
97 window.open('../ohif/segmentation?url=../studies/' + studyId + '/ohif-dicom-json'); | |
98 } | |
99 }); | |
100 | |
101 AddOhifViewer(viewers, 'Microscopy', function() { | |
102 if (${USE_DICOM_WEB}) { | |
103 window.open('../ohif/microscopy?StudyInstanceUIDs=' + studyInstanceUid); | |
104 } else { | |
105 window.open('../ohif/microscopy?url=../studies/' + studyId + '/ohif-dicom-json'); | |
106 } | |
107 }); | |
108 | |
93 // Launch the dialog | 109 // Launch the dialog |
94 $('#dialog').simpledialog2({ | 110 $('#dialog').simpledialog2({ |
95 mode: 'blank', | 111 mode: 'blank', |
96 animate: false, | 112 animate: false, |
97 headerText: 'Choose OHIF viewer', | 113 headerText: 'Choose OHIF viewer', |