changeset 70:4dbc92d52306

new default config file
author Alain Mazy <am@orthanc.team>
date Thu, 17 Apr 2025 16:22:23 +0200 (6 weeks ago)
parents 74603a3f3ec5
children 24deb8d5a0d4
files Resources/CreateOHIFDist/build.sh Sources/app-config-system.js TODO
diffstat 3 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CreateOHIFDist/build.sh	Tue Apr 15 16:56:11 2025 +0200
+++ b/Resources/CreateOHIFDist/build.sh	Thu Apr 17 16:22:23 2025 +0200
@@ -38,7 +38,9 @@
 
 # patch files where the PUBLIC_URL was not taken into account
 # Note that, for the microscopy, this is currently not working: https://github.com/OHIF/Viewers/issues/4906
-sed -i 's|/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|./dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|g' /tmp/$1/platform/app/dist/app.bundle.*.js
-sed -i 's|/assets/android-chrome-|./assets/android-chrome-|g' /tmp/$1/platform/app/dist/manifest.json
+sed -i 's|\'/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|\'./dicom-microscopy-viewer/dicomMicroscopyViewer.min.js|g' /tmp/$1/platform/app/dist/app.bundle.*.js
+sed -i 's|"/dicom-microscopy-viewer|"./dicom-microscopy-viewer|g' /tmp/$1/platform/app/dist/dicom-microscopy-viewer/dicomMicroscopyViewer.min.js
+sed -i 's|"/dicom-microscopy-viewer|"./dicom-microscopy-viewer|g' /tmp/$1/platform/app/dist/dicom-microscopy-viewer/index.worker.min.worker.js
+sed -i 's|"/assets/android-chrome-|"./assets/android-chrome-|g' /tmp/$1/platform/app/dist/manifest.json
 
 cp -r /tmp/$1/platform/app/dist/* /target
--- a/Sources/app-config-system.js	Tue Apr 15 16:56:11 2025 +0200
+++ b/Sources/app-config-system.js	Thu Apr 17 16:22:23 2025 +0200
@@ -27,11 +27,16 @@
         supportsFuzzyMatching: false,
         supportsWildcard: true,
         staticWado: true,
-        singlepart: 'bulkdata',
+        singlepart: 'bulkdata,video',
         acceptHeader: [ 'multipart/related; type=application/octet-stream; transfer-syntax=*'],
-        bulkDataURI: {  // to remove once 3.9.2+ is released (https://github.com/OHIF/Viewers/issues/4256)
-          enabled: true
+        // whether the data source should use retrieveBulkData to grab metadata,
+        // and in case of relative path, what would it be relative to, options
+        // are in the series level or study level (some servers like series some study)
+        bulkDataURI: {
+          enabled: true,
+          relativeResolution: 'studies',
         }
+        
       }
     }
   ];
--- a/TODO	Tue Apr 15 16:56:11 2025 +0200
+++ b/TODO	Thu Apr 17 16:22:23 2025 +0200
@@ -1,1 +0,0 @@
-- PDF: apply these fixes in default config https://github.com/OHIF/Viewers/issues/4256 + https://github.com/orthanc-server/orthanc-setup-samples/commit/5af834d3d6e755e55d8d937547ace6fa39925626 once the commit has been merged and released
\ No newline at end of file