diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index 25ecdfb6..c2e2760e 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -303,6 +303,12 @@ function setUpDicom(element) { const imageIds = element.dataset.url.split(","); console.log("Dicom - load imageId: ", imageIds); + for (let index = 0; index < imageIds.length; index++) { + if (imageIds[index].endsWith("dcm") { + imageIds[index] = "wadouri" + imageIds[index]; + } + + } cornerstone.enable(element); cornerstone.loadAndCacheImage(imageIds[0]).then(function (image) { diff --git a/longs/templates/longs/question_detail.html b/longs/templates/longs/question_detail.html index e35ef38e..9b069af9 100755 --- a/longs/templates/longs/question_detail.html +++ b/longs/templates/longs/question_detail.html @@ -8,7 +8,7 @@ Edit Clone Delete - Add Note + Add Note {% if request.user.is_superuser %} Admin Edit {% endif %} diff --git a/static/js/anatomy.js b/static/js/anatomy.js index 25ecdfb6..c2e2760e 100644 --- a/static/js/anatomy.js +++ b/static/js/anatomy.js @@ -303,6 +303,12 @@ function setUpDicom(element) { const imageIds = element.dataset.url.split(","); console.log("Dicom - load imageId: ", imageIds); + for (let index = 0; index < imageIds.length; index++) { + if (imageIds[index].endsWith("dcm") { + imageIds[index] = "wadouri" + imageIds[index]; + } + + } cornerstone.enable(element); cornerstone.loadAndCacheImage(imageIds[0]).then(function (image) {