.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<a href="{% url 'longs:long_update' pk=question.pk %}" title="Edit the Long">Edit</a>
|
||||
<a href="{% url 'longs:long_clone' pk=question.pk %}" title="Clone the Long (duplicate everything but the images)">Clone</a>
|
||||
<a href="{% url 'longs:long_delete' pk=question.pk %}" title="Delete the Rapid">Delete</a>
|
||||
<a href="#" onclick="return window.create_popup_window({'% url 'feedback_create' question_type='long' pk=question.pk %}')"> Add Note</a>
|
||||
<a href="#" onclick="return window.create_popup_window('{% url 'feedback_create' question_type='long' pk=question.pk %}')"> Add Note</a>
|
||||
{% if request.user.is_superuser %}
|
||||
<a href="{% url 'admin:longs_long_change' question.id %}" title="Edit the Long using the admin interface">Admin Edit</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user