Mercurial > hg > orthanc-ohif
annotate Sources/app-config-system.js @ 39:a63247d45917
simplification
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Mar 2024 16:05:51 +0100 |
parents | 36049c04ee27 |
children |
rev | line source |
---|---|
0 | 1 /** |
30 | 2 * SPDX-FileCopyrightText: 2023-2024 Sebastien Jodogne, UCLouvain, Belgium, |
3 * and 2018-2024 Open Health Imaging Foundation | |
0 | 4 * SPDX-License-Identifier: MIT |
5 */ | |
6 | |
2
cbc4be362700
added configuration option "RouterBasename"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
0
diff
changeset
|
7 window.config.routerBasename = '${ROUTER_BASENAME}'; |
0 | 8 |
5
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
9 if (${USE_DICOM_WEB}) { |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
10 window.config.dataSources = [ |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
11 { |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
12 friendlyName: 'Orthanc DICOMweb', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
13 namespace: '@ohif/extension-default.dataSourcesModule.dicomweb', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
14 sourceName: 'dicomweb', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
15 configuration: { |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
16 name: 'orthanc', |
0 | 17 |
5
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
18 wadoUriRoot: '../dicom-web', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
19 qidoRoot: '../dicom-web', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
20 wadoRoot: '../dicom-web', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
21 |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
22 qidoSupportsIncludeField: false, |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
23 supportsReject: false, |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
24 imageRendering: 'wadors', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
25 thumbnailRendering: 'wadors', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
26 enableStudyLazyLoad: true, |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
27 supportsFuzzyMatching: false, |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
28 supportsWildcard: true, |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
29 staticWado: true, |
20
03e71bc320c4
update OHIF to 3.7.0 + default config to avoid transcoding
Alain Mazy <am@osimis.io>
parents:
14
diff
changeset
|
30 singlepart: 'bulkdata,pdf,video', |
03e71bc320c4
update OHIF to 3.7.0 + default config to avoid transcoding
Alain Mazy <am@osimis.io>
parents:
14
diff
changeset
|
31 acceptHeader: [ 'multipart/related; type=application/octet-stream; transfer-syntax=*'] |
5
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
32 } |
0 | 33 } |
5
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
34 ]; |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
35 |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
36 window.config.defaultDataSourceName = 'dicomweb'; |
0 | 37 |
5
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
38 } else { |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
39 window.config.showStudyList = false; |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
40 window.config.dataSources = [ |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
41 { |
14 | 42 friendlyName: 'Orthanc DICOM JSON', |
5
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
43 namespace: '@ohif/extension-default.dataSourcesModule.dicomjson', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
44 sourceName: 'dicomjson', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
45 configuration: { |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
46 name: 'json', |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
47 }, |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
48 } |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
49 ]; |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
50 |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
51 window.config.defaultDataSourceName = 'dicomjson'; |
8c1fe0ca24f5
added the possibility to replace DICOMweb by DICOM JSON
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2
diff
changeset
|
52 } |