2019-12-07 06:23:43 +01:00
|
|
|
# Viewer: Configuration
|
|
|
|
|
|
2019-12-20 18:15:40 +01:00
|
|
|
We maintain a number of common viewer application configurations at
|
2021-06-15 17:15:29 +02:00
|
|
|
[`<root>/platform/viewer/public/configs`][config-dir].
|
|
|
|
|
|
|
|
|
|
You can take a look at how to use different configs in the [Environment Variables](../configuring/index.md#environment-variables)
|
2019-12-16 15:15:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
window.config = {
|
|
|
|
|
routerBasename: '/',
|
2020-04-23 04:01:34 +02:00
|
|
|
/**
|
|
|
|
|
* "White Labeling" is used to change the branding, look, and feel of the OHIF
|
|
|
|
|
* Viewer. These settings, and the color variables that are used by our components,
|
|
|
|
|
* are the easiest way to rebrand the application.
|
|
|
|
|
*
|
|
|
|
|
* More extensive changes are made possible through swapping out the UI library,
|
|
|
|
|
* Viewer project, or extensions.
|
|
|
|
|
*/
|
2020-04-22 22:16:53 +02:00
|
|
|
whiteLabeling: {
|
2021-06-15 17:15:29 +02:00
|
|
|
/** ... **/
|
2020-04-22 22:16:53 +02:00
|
|
|
},
|
2021-06-15 17:15:29 +02:00
|
|
|
httpErrorHandler: {
|
|
|
|
|
/** coming soon **/
|
2020-04-23 04:01:34 +02:00
|
|
|
},
|
2019-12-16 15:15:10 +01:00
|
|
|
extensions: [],
|
|
|
|
|
showStudyList: true,
|
|
|
|
|
filterQueryParam: false,
|
2021-06-15 17:15:29 +02:00
|
|
|
dataSources: [
|
|
|
|
|
{
|
|
|
|
|
friendlyName: 'dcmjs DICOMWeb Server',
|
|
|
|
|
namespace: 'org.ohif.default.dataSourcesModule.dicomweb',
|
|
|
|
|
sourceName: 'dicomweb',
|
|
|
|
|
configuration: {
|
2019-12-16 15:15:10 +01:00
|
|
|
name: 'DCM4CHEE',
|
|
|
|
|
wadoUriRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado',
|
|
|
|
|
qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
|
|
|
|
|
wadoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
|
|
|
|
|
qidoSupportsIncludeField: true,
|
2021-06-15 17:15:29 +02:00
|
|
|
supportsReject: true,
|
2019-12-16 15:15:10 +01:00
|
|
|
imageRendering: 'wadors',
|
|
|
|
|
thumbnailRendering: 'wadors',
|
|
|
|
|
enableStudyLazyLoad: true,
|
2021-06-15 17:15:29 +02:00
|
|
|
supportsFuzzyMatching: true,
|
|
|
|
|
supportsWildcard: true,
|
2019-12-16 15:15:10 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
LINKS
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
|
[config-dir]: https://github.com/OHIF/Viewers/tree/master/platform/viewer/public/config
|
|
|
|
|
<!-- prettier-ignore-end -->
|