diff Sources/OrthancExplorer.js @ 53:83b1abee3ece nexus

improved handling of CreatorVersionUID
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 18 May 2024 11:35:54 +0200
parents 9b2a2fcc9878
children 9ed0cb5d6082
line wrap: on
line diff
--- a/Sources/OrthancExplorer.js	Sat May 18 11:24:04 2024 +0200
+++ b/Sources/OrthancExplorer.js	Sat May 18 11:35:54 2024 +0200
@@ -26,8 +26,6 @@
 const STL_PLUGIN_SOP_CLASS_UID_RT_STRUCT = '1.2.840.10008.5.1.4.1.1.481.3';
 const STL_PLUGIN_SOP_CLASS_UID_RAW = '1.2.840.10008.5.1.4.1.1.66';
 
-const STL_PLUGIN_NEXUS_CREATOR_VERSION_UID = '1.2.826.0.1.3680043.8.498.90514926286349109728701975613711986292';
-
 
 function AddStlViewer(target, name, callback) {
   var li = $('<li>', {
@@ -399,7 +397,7 @@
     $.ajax({
       url: '/instances/' + instanceId + '/content/0008,9123',
       success: function(creatorVersionUid) {
-        if (creatorVersionUid == STL_PLUGIN_NEXUS_CREATOR_VERSION_UID) {
+        if (creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE}') {
           var b = $('<a>')
               .attr('id', id)
               .attr('data-role', 'button')