New upstream version 1.4+dfsg
jodogne-guest
3 years ago
0 | 0 | repo: d5f45924411123cfd02d035fd50b8e37536eadef |
1 | node: 4bfe89488bc1eec56b6b3eb8716b68e4ed3663dd | |
2 | branch: OrthancDicomWeb-1.3 | |
1 | node: b751b1383e075319ab286e1388aebc032f34d0b2 | |
2 | branch: OrthancDicomWeb-1.4 | |
3 | 3 | latesttag: null |
4 | latesttagdistance: 437 | |
5 | changessincelatesttag: 466 | |
4 | latesttagdistance: 443 | |
5 | changessincelatesttag: 472 |
20 | 20 | |
21 | 21 | project(OrthancDicomWeb) |
22 | 22 | |
23 | set(ORTHANC_DICOM_WEB_VERSION "1.3") | |
23 | set(ORTHANC_DICOM_WEB_VERSION "1.4") | |
24 | 24 | |
25 | 25 | if (ORTHANC_DICOM_WEB_VERSION STREQUAL "mainline") |
26 | 26 | set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline") |
27 | 27 | set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") |
28 | 28 | else() |
29 | set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.8.0") | |
29 | set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.8.1") | |
30 | 30 | set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") |
31 | 31 | endif() |
32 | 32 |
0 | 0 | Pending changes in the mainline |
1 | 1 | =============================== |
2 | ||
3 | ||
4 | Version 1.4 (2020-12-18) | |
5 | ======================== | |
6 | ||
7 | * "Extrapolate" mode doesn't fail if no consensus is found in WADO-RS Retrieve Metadata. | |
8 | This is necessary for proper behavior of the Stone Web viewer on very small series. | |
9 | * Fix issue #190 (STOW-RS fails is multipart boundary is surrounded by quotes in headers) | |
2 | 10 | |
3 | 11 | |
4 | 12 | Version 1.3 (2020-10-19) |
23 | 23 | #include "../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" |
24 | 24 | #include "DicomWebServers.h" |
25 | 25 | |
26 | #include <ChunkedBuffer.h> | |
26 | 27 | #include <Compatibility.h> |
27 | 28 | #include <HttpServer/MultipartStreamReader.h> |
28 | #include <ChunkedBuffer.h> | |
29 | #include <Logging.h> | |
29 | 30 | #include <Toolbox.h> |
30 | 31 | |
31 | 32 | #include <json/reader.h> |
25 | 25 | #include "WadoRs.h" |
26 | 26 | #include "WadoUri.h" |
27 | 27 | |
28 | #include <Logging.h> | |
28 | 29 | #include <SystemToolbox.h> |
29 | 30 | #include <Toolbox.h> |
30 | 31 |
26 | 26 | |
27 | 27 | #include <DicomFormat/DicomMap.h> |
28 | 28 | #include <DicomFormat/DicomTag.h> |
29 | #include <Logging.h> | |
29 | 30 | #include <Toolbox.h> |
30 | 31 | |
31 | 32 | #include <list> |
58 | 58 | "The STOW-RS plugin currently only supports \"application/dicom\" subtype"); |
59 | 59 | } |
60 | 60 | |
61 | // Hotfix for bug #190, until the Orthanc Framework is fixed | |
62 | // https://bugs.orthanc-server.com/show_bug.cgi?id=190 | |
63 | if (!boundary.empty() && | |
64 | boundary.size() >= 2 && | |
65 | boundary[0] == '"' && | |
66 | boundary[boundary.size() - 1] == '"') | |
67 | { | |
68 | boundary = boundary.substr(1, boundary.size() - 2); | |
69 | } | |
70 | ||
61 | 71 | parser_.reset(new Orthanc::MultipartStreamReader(boundary)); |
62 | 72 | parser_->SetHandler(*this); |
63 | 73 | } |
24 | 24 | |
25 | 25 | #include <Compatibility.h> |
26 | 26 | #include <ChunkedBuffer.h> |
27 | #include <Logging.h> | |
27 | 28 | #include <Toolbox.h> |
28 | 29 | |
29 | 30 | #include <memory> |
393 | 394 | ++current; |
394 | 395 | } |
395 | 396 | |
397 | target.SetValue(tag, maxValue, false); | |
398 | ||
396 | 399 | // Take the ceiling of the number of available instances |
397 | 400 | const size_t threshold = instances_.size() / 2 + 1; |
398 | if (maxCount >= threshold) | |
399 | { | |
400 | target.SetValue(tag, maxValue, false); | |
401 | if (maxCount < threshold) | |
402 | { | |
403 | LOG(WARNING) << "No consensus on the value of a tag during WADO-RS Retrieve " | |
404 | << "Metadata in Extrapolate mode: " << tag.Format(); | |
401 | 405 | } |
402 | 406 | } |
403 | 407 | } |
24 | 24 | #include <Images/Image.h> |
25 | 25 | #include <Images/ImageProcessing.h> |
26 | 26 | #include <Images/ImageTraits.h> |
27 | #include <Logging.h> | |
27 | 28 | #include <Toolbox.h> |
28 | 29 | |
29 | 30 | #include <boost/algorithm/string/predicate.hpp> |
117 | 117 | set(ORTHANC_FRAMEWORK_MD5 "19fcb7c21876af86546baa048a22c6c0") |
118 | 118 | elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.8.0") |
119 | 119 | set(ORTHANC_FRAMEWORK_MD5 "f8ec7554ef5d23ea4ce474b1e8214de9") |
120 | elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.8.1") | |
121 | set(ORTHANC_FRAMEWORK_MD5 "db094f96399cbe8b9bbdbce34884c220") | |
120 | 122 | |
121 | 123 | # Below this point are development snapshots that were used to |
122 | 124 | # release some plugin, before an official release of the Orthanc |
128 | 130 | elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "ae0e3fd609df") |
129 | 131 | # DICOMweb 1.1 (framework pre-1.6.0) |
130 | 132 | set(ORTHANC_FRAMEWORK_MD5 "7e09e9b530a2f527854f0b782d7e0645") |
133 | elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "82652c5fc04f") | |
134 | # Stone Web viewer 1.0 (framework pre-1.8.1) | |
135 | set(ORTHANC_FRAMEWORK_MD5 "d77331d68917e66a3f4f9b807bbdab7f") | |
136 | elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "4a3ba4bf4ba7") | |
137 | # PostgreSQL 3.3 (framework pre-1.8.2) | |
138 | set(ORTHANC_FRAMEWORK_MD5 "2d82bddf06f9cfe82095495cb3b8abde") | |
131 | 139 | endif() |
132 | 140 | endif() |
133 | 141 | endif() |
523 | 531 | include_directories(${DCMTK_INCLUDE_DIRS}) |
524 | 532 | link_libraries(${DCMTK_LIBRARIES}) |
525 | 533 | endif() |
534 | ||
535 | # Optional component - OpenSSL | |
536 | if (ENABLE_SSL) | |
537 | include(FindOpenSSL) | |
538 | if (NOT ${OPENSSL_FOUND}) | |
539 | message(FATAL_ERROR "Unable to find OpenSSL") | |
540 | endif() | |
541 | include_directories(${OPENSSL_INCLUDE_DIR}) | |
542 | link_libraries(${OPENSSL_LIBRARIES}) | |
543 | endif() | |
526 | 544 | endif() |
527 | 545 | |
528 | 546 | # Look for Orthanc framework shared library |