changeset 61:5dc3f3dcc092

back to mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 May 2024 15:35:07 +0200
parents a5096a7ab7f1 (current diff) c322c949bd8e (diff)
children b798387b085c
files CMakeLists.txt
diffstat 4 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/CITATION.cff	Tue May 21 16:02:49 2024 +0200
+++ b/CITATION.cff	Wed May 22 15:35:07 2024 +0200
@@ -20,5 +20,5 @@
 doi: "10.1145/3632047.3632051"
 license: "GPL-3.0-or-later"
 repository-code: "https://orthanc.uclouvain.be/hg/orthanc-stl/"
-version: "1.0"
-date-released: 2024-04-06
+version: "1.1"
+date-released: 2024-05-22
--- a/NEWS	Tue May 21 16:02:49 2024 +0200
+++ b/NEWS	Wed May 22 15:35:07 2024 +0200
@@ -1,6 +1,10 @@
 Pending changes in the mainline
 ===============================
 
+
+Version 1.1 (2024-05-22)
+========================
+
 => Minimum SDK version: 1.2.0 <=
 
 * Support for DICOM-ization of adaptive 3D models in the Nexus format:
--- a/Sources/OrthancExplorer.js	Tue May 21 16:02:49 2024 +0200
+++ b/Sources/OrthancExplorer.js	Wed May 22 15:35:07 2024 +0200
@@ -496,7 +496,8 @@
     $.ajax({
       url: '/instances/' + instanceId + '/content/0008,9123',
       success: function(creatorVersionUid) {
-        if (creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE}') {
+        if (creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE}' ||
+            creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_1_1}') {
           var b = $('<a>')
               .attr('id', id)
               .attr('data-role', 'button')
--- a/Sources/Plugin.cpp	Tue May 21 16:02:49 2024 +0200
+++ b/Sources/Plugin.cpp	Wed May 22 15:35:07 2024 +0200
@@ -70,6 +70,7 @@
  *
  **/
 static const char* const ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE = "1.2.826.0.1.3680043.8.498.90514926286349109728701975613711986292";
+static const char* const ORTHANC_STL_CREATOR_VERSION_UID_1_1 = "1.2.826.0.1.3680043.8.498.13468660186379895313063577332103681503";
 
 static const char* const GetCreatorVersionUid(const std::string& version)
 {
@@ -77,6 +78,10 @@
   {
     return ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE;
   }
+  else if (version == "1.1")
+  {
+    return ORTHANC_STL_CREATOR_VERSION_UID_1_1;
+  }
   else
   {
     throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
@@ -86,6 +91,7 @@
 static void FillOrthancExplorerCreatorVersionUid(std::map<std::string, std::string>& dictionary)
 {
   dictionary["ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE"] = ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE;
+  dictionary["ORTHANC_STL_CREATOR_VERSION_UID_1_1"] = ORTHANC_STL_CREATOR_VERSION_UID_1_1;
 }
 
 #endif