Mercurial > hg > orthanc-stl
changeset 91:35311e0043cf
fix broken dicomization of Nexus files
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Fri, 08 May 2026 14:16:02 +0200 |
| parents | 1e5f8c61fe93 |
| children | ca8f39ac1135 |
| files | NEWS Sources/OrthancExplorer.js Sources/Plugin.cpp |
| diffstat | 3 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Fri May 08 13:59:17 2026 +0200 +++ b/NEWS Fri May 08 14:16:02 2026 +0200 @@ -2,6 +2,12 @@ =============================== +Version 1.4 (2026-05-08) +======================== + +* Fix DICOM-ization of Nexus files, which was broken in release 1.3 + + Version 1.3 (2025-10-10) ========================
--- a/Sources/OrthancExplorer.js Fri May 08 13:59:17 2026 +0200 +++ b/Sources/OrthancExplorer.js Fri May 08 14:16:02 2026 +0200 @@ -498,7 +498,8 @@ success: function(creatorVersionUid) { if (creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_MAINLINE}' || creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_1_1}' || - creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_1_2}') { + creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_1_2}' || + creatorVersionUid == '${ORTHANC_STL_CREATOR_VERSION_UID_1_4}') { var b = $('<a>') .attr('id', id) .attr('data-role', 'button')
--- a/Sources/Plugin.cpp Fri May 08 13:59:17 2026 +0200 +++ b/Sources/Plugin.cpp Fri May 08 14:16:02 2026 +0200 @@ -77,6 +77,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 ORTHANC_STL_CREATOR_VERSION_UID_1_2 = "1.2.826.0.1.3680043.8.498.69380801008493335183088431949117714013"; +static const char* const ORTHANC_STL_CREATOR_VERSION_UID_1_4 = "1.2.826.0.1.3680043.8.498.94832241734526878947034468485882549546"; static const char* const GetCreatorVersionUid(const std::string& version) { @@ -92,9 +93,14 @@ { return ORTHANC_STL_CREATOR_VERSION_UID_1_2; } + else if (version == "1.4") + { + return ORTHANC_STL_CREATOR_VERSION_UID_1_4; + } else { - throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); + throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, + "Broken support for Nexus in release " + std::string(version) + " of the STL plugin"); } } @@ -103,6 +109,7 @@ 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; dictionary["ORTHANC_STL_CREATOR_VERSION_UID_1_2"] = ORTHANC_STL_CREATOR_VERSION_UID_1_2; + dictionary["ORTHANC_STL_CREATOR_VERSION_UID_1_4"] = ORTHANC_STL_CREATOR_VERSION_UID_1_4; } #endif
