Mercurial > hg > orthanc-stone
annotate StoneWebViewer/Plugin/OrthancExplorer.js @ 1522:fa30f275cd80
Removed requirement for a non-empty RTDOSE
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 31 Jul 2020 17:06:11 +0200 |
parents | 22d1bd085c19 |
children | 61023b0d39c8 |
rev | line source |
---|---|
1495
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 $('#study').live('pagebeforecreate', function() { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 var b = $('<a>') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 .attr('data-role', 'button') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 .attr('href', '#') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 .attr('data-icon', 'search') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 .attr('data-theme', 'e') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 .text('Stone Web Viewer'); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 b.insertBefore($('#study-delete').parent().parent()); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 b.click(function() { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 if ($.mobile.pageData) { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 $.ajax({ |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 url: '../studies/' + $.mobile.pageData.uuid, |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 dataType: 'json', |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 cache: false, |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 success: function(study) { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 var studyInstanceUid = study.MainDicomTags.StudyInstanceUID; |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 window.open('../stone-webviewer/index.html?study=' + studyInstanceUid); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 } |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 }); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 } |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 }); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 }); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 $('#series').live('pagebeforecreate', function() { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 var b = $('<a>') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 .attr('data-role', 'button') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 .attr('href', '#') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 .attr('data-icon', 'search') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 .attr('data-theme', 'e') |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 .text('Stone Web Viewer'); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 b.insertBefore($('#series-delete').parent().parent()); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 b.click(function() { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 if ($.mobile.pageData) { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 $.ajax({ |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 url: '../series/' + $.mobile.pageData.uuid, |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 dataType: 'json', |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 cache: false, |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 success: function(series) { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 $.ajax({ |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 url: '../studies/' + series.ParentStudy, |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 dataType: 'json', |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 cache: false, |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 success: function(study) { |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 var studyInstanceUid = study.MainDicomTags.StudyInstanceUID; |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 var seriesInstanceUid = series.MainDicomTags.SeriesInstanceUID; |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 window.open('../stone-webviewer/index.html?study=' + studyInstanceUid + |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 '&series=' + seriesInstanceUid); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 } |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 }); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 } |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 }); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 } |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 }); |
fb74ed5d8c22
initial commit of the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 }); |
1519
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
58 |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
59 $('#series').live('pagebeforecreate', function() { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
60 var b = $('<a>') |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
61 .attr('data-role', 'button') |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
62 .attr('href', '#') |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
63 .attr('data-icon', 'search') |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
64 .attr('data-theme', 'e') |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
65 .text('Stone MPR RT Viewer');`` |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
66 |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
67 b.insertBefore($('#series-delete').parent().parent()); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
68 b.click(function() { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
69 if ($.mobile.pageData) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
70 $.ajax({ |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
71 url: '../series/' + $.mobile.pageData.uuid, |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
72 dataType: 'json', |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
73 cache: false, |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
74 success: function(series) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
75 |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
76 // we consider that the imaging series to display is the |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
77 // current one. |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
78 // we will look for RTDOSE and RTSTRUCT instances in the |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
79 // sibling series from the same study. The first one of |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
80 // each modality will be grabbed. |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
81 let ctSeries = $.mobile.pageData.uuid; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
82 |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
83 $.ajax({ |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
84 url: '../studies/' + series.ParentStudy, |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
85 dataType: 'json', |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
86 cache: false, |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
87 success: function(study) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
88 // Loop on the study series and find the first RTSTRUCT and RTDOSE instances, |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
89 // if any. |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
90 let rtStructInstance = null; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
91 let rtDoseInstance = null; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
92 let rtPetInstance = null; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
93 let seriesRequests = [] |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
94 |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
95 study.Series.forEach( function(studySeriesUuid) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
96 let request = $.ajax({ |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
97 url: '../series/' + studySeriesUuid, |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
98 dataType: 'json', |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
99 cache: false, |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
100 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
101 seriesRequests.push(request); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
102 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
103 |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
104 $.when.apply($,seriesRequests).then(function() { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
105 [].forEach.call(arguments, function(response) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
106 siblingSeries = response[0] |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
107 if (siblingSeries.MainDicomTags.Modality == "RTDOSE") { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
108 // we have found an RTDOSE series. Let's grab the first instance |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
109 if (siblingSeries.Instances.length > 0) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
110 if(rtDoseInstance == null) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
111 rtDoseInstance = siblingSeries.Instances[0]; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
112 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
113 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
114 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
115 if (siblingSeries.MainDicomTags.Modality == "PT") { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
116 // we have found an RTDOSE series. Let's grab the first instance |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
117 if (siblingSeries.Instances.length > 0) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
118 if(rtPetInstance == null) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
119 rtPetInstance = siblingSeries.Instances[0]; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
120 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
121 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
122 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
123 if (siblingSeries.MainDicomTags.Modality == "RTSTRUCT") { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
124 // we have found an RTDOSE series. Let's grab the first instance |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
125 if (siblingSeries.Instances.length > 0) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
126 if(rtStructInstance == null) { |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
127 rtStructInstance = siblingSeries.Instances[0]; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
128 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
129 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
130 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
131 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
132 let mprViewerUrl = '../stone-rtviewer/index.html?ctseries=' + ctSeries + |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
133 '&rtdose=' + rtDoseInstance + |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
134 '&rtstruct=' + rtStructInstance; |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
135 //console.log("About to open: " + mprViewerUrl); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
136 window.open(mprViewerUrl); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
137 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
138 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
139 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
140 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
141 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
142 } |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
143 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
144 }); |
22d1bd085c19
split STONE_BINARIES into two different vars for both
Benjamin Golinvaux <bgo@osimis.io>
parents:
1495
diff
changeset
|
145 |