Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebApplication/app.js @ 1920:05f0327d26c8
added logs in app.js
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Mar 2022 16:57:41 +0100 |
parents | 7053b8a0aaec |
children | 31fd7aba48ca |
comparison
equal
deleted
inserted
replaced
1919:ed4831e08961 | 1920:05f0327d26c8 |
---|---|
184 | 184 |
185 var studyInstanceUid = newVal.series.tags[STUDY_INSTANCE_UID]; | 185 var studyInstanceUid = newVal.series.tags[STUDY_INSTANCE_UID]; |
186 var seriesInstanceUid = newVal.series.tags[SERIES_INSTANCE_UID]; | 186 var seriesInstanceUid = newVal.series.tags[SERIES_INSTANCE_UID]; |
187 stone.SpeedUpFetchSeriesMetadata(studyInstanceUid, seriesInstanceUid); | 187 stone.SpeedUpFetchSeriesMetadata(studyInstanceUid, seriesInstanceUid); |
188 | 188 |
189 if ((newVal.series.type == stone.ThumbnailType.IMAGE || | 189 if (newVal.series.type == stone.ThumbnailType.IMAGE || |
190 newVal.series.type == stone.ThumbnailType.NO_PREVIEW) && | 190 newVal.series.type == stone.ThumbnailType.NO_PREVIEW) { |
191 newVal.series.complete) { | 191 if (newVal.series.complete) { |
192 this.status = 'ready'; | 192 this.status = 'ready'; |
193 | 193 |
194 var that = this; | 194 var that = this; |
195 Vue.nextTick(function() { | 195 Vue.nextTick(function() { |
196 if (newVal.virtualSeriesId !== undefined && | 196 if (newVal.virtualSeriesId !== undefined && |
197 newVal.virtualSeriesId.length > 0) { | 197 newVal.virtualSeriesId.length > 0) { |
198 stone.LoadVirtualSeriesInViewport(that.canvasId, newVal.virtualSeriesId); | 198 stone.LoadVirtualSeriesInViewport(that.canvasId, newVal.virtualSeriesId); |
199 } | 199 } |
200 else { | 200 else { |
201 stone.LoadSeriesInViewport(that.canvasId, seriesInstanceUid); | 201 stone.LoadSeriesInViewport(that.canvasId, seriesInstanceUid); |
202 } | 202 } |
203 }); | 203 }); |
204 } else { | |
205 console.warn('Series is incomplete: ' + seriesInstanceUid); | |
206 } | |
204 } | 207 } |
205 else if (newVal.series.type == stone.ThumbnailType.PDF) { | 208 else if (newVal.series.type == stone.ThumbnailType.PDF) { |
206 if (newVal.series.complete) { | 209 if (newVal.series.complete) { |
207 /** | 210 /** |
208 * Series is complete <=> One already knows about the | 211 * Series is complete <=> One already knows about the |
247 } | 250 } |
248 else { | 251 else { |
249 console.warn('Videos are not supported by the Stone Web viewer alone yet, the Orthanc REST API is needed'); | 252 console.warn('Videos are not supported by the Stone Web viewer alone yet, the Orthanc REST API is needed'); |
250 } | 253 } |
251 } | 254 } |
255 else { | |
256 console.error('Unable to handle this series: ' + seriesInstanceUid); | |
257 } | |
252 } | 258 } |
253 }, | 259 }, |
254 mounted: function() { | 260 mounted: function() { |
255 var that = this; | 261 var that = this; |
256 | 262 |