ohif-viewer/extensions/default/src
Luis Miguel Santos 53694da216
[Ready] fix 5288 removal of accept header options in retrieve metadata (#5293)
* chore: Minor adjustment to generateAcceptHeader function signature to reflect expected return type.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* fix: Added switch to skip the Accept header generation when requesting metadata. WADO metadata request is more likely to return JSON and some VNAs do not like the extra options in the Accept header. Also, passing an empty array is not sufficient because somewhere we still include a comma that breaks the Accept header. It's better to omit it for the metadata request only.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Added new HeadersInterface interface type docstrings.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Refactored getAuthorizationHeader() function signature so it is typed checked. Of course, I upgraded the module to a TypeScript module.
Moved the request header interfaces into its own TypeScript module (RequestHeaders.ts) in the core types.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Refactored the user logic to include a TypeScript interface. As a result, upgraded the source file to TypeScript.
Removed the User interface from RequestHeaders module and moved them to the user module.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Updated function signatures, user import, and confirmed unit tests are passing.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Minor stylistic adjustment to getAuthorizationHeader.test.ts

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore: Added missing comments.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* chore adjusted generateWadoHeader parameter's name and added comment about the expected default header.

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>

* Just tweaking the interface a bit to be more consistent.

* fix authorization header signature change

---------

Signed-off-by: Luis M. Santos <luis.santos2@nih.gov>
Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
Co-authored-by: Alireza <ar.sedghi@gmail.com>
2025-10-16 20:01:34 -04:00
..
Actions fix(ui): Enhance UI Components and Update CornerstoneJS Dependencies and resizable panels (#4938) 2025-04-09 16:49:55 -04:00
Components fix(multimonitor): Study browser more menu fixes (#5208) 2025-07-18 12:08:18 -04:00
CustomizableContextMenu chore: recovery 2 (#5014) merge to 3.11 (#5175) 2025-07-03 14:08:46 -04:00
customizations fix(studyBrowserCustomization): fix thumbnail menu item actions in study browser (#5283) 2025-10-02 17:05:45 -04:00
DataSourceConfigurationAPI feat(typings): Enhance typing support with withAppTypes and custom services throughout OHIF (#4090) 2024-05-08 12:12:49 -04:00
DicomJSONDataSource fix: Guard series.instances in DicomJSONDataSource to prevent TypeError (OHI-2114) (#5312) 2025-08-08 10:28:42 -04:00
DicomLocalDataSource fix(multiframe): handling proxies properly (#4693) 2025-01-15 22:29:06 -05:00
DicomTagBrowser docs(components): Adds new components to ui-next documentation (#4974) 2025-04-22 09:15:40 -04:00
DicomWebDataSource [Ready] fix 5288 removal of accept header options in retrieve metadata (#5293) 2025-10-16 20:01:34 -04:00
DicomWebProxyDataSource fix(DicomWebProxyDataSource): bug fix to save Segmentation files back to Kheops (#5028) 2025-05-09 08:19:20 -04:00
hangingprotocols fix(hp): Display set should allow remembered updates (#4707) 2025-01-20 09:06:28 -05:00
hooks feat(actions): simplify action corner api through the toolbarService (#5033) 2025-05-15 12:08:12 -04:00
MergeDataSource fix(UnitTest): run was failing due to JS tests importing TS modules (#5145) 2025-06-18 14:15:50 -04:00
Panels fix: study browser mode for multiple studies (#5457) 2025-10-03 12:28:05 -04:00
SOPClassHandlers fix(viewport): Reset viewport state and fix CINE looping, thumbnail resolution, and dynamic tool settings (#4037) 2024-04-16 11:04:48 -04:00
stores fix(segmentation): Changes to fix problems with non hydrated/loaded segmentations to be viewable when switching hanging protocols (e.g. MPR) (#5139) 2025-06-27 07:11:46 -04:00
Toolbar fix(i18n): Add and update i18n Translation for Toolbar Tool Names (#5392) 2025-09-25 10:22:02 -04:00
types fix(Browser history): fixed NPE when navigating a study via browser history and history navigation is now available via the navigateHistory command (#3337) 2023-04-27 10:46:23 -04:00
utils feat: add support to scoord3d (#5016) 2025-07-31 00:21:26 -04:00
ViewerLayout fix(panels): Allow for setting the initial and minimum expanded widths of each side panel. (#5207) 2025-07-14 11:50:27 -04:00
commandsModule.ts fix(studyBrowserCustomization): fix thumbnail menu item actions in study browser (#5283) 2025-10-02 17:05:45 -04:00
findViewportsByPosition.ts OHIF with Cornerstone3D 2.0 (#4347) 2024-11-06 07:15:27 -05:00
getCustomizationModule.tsx fix: image slices are displayed in reverse order, if we switch from common layout to 2D MPR (#5022) 2025-07-17 08:11:26 -04:00
getDataSourcesModule.js fix: Documentation and default enabled for bulkdata load (#4607) 2024-12-17 13:49:42 -05:00
getDisplaySetMessages.ts feat(4D): Add 4D dynamic volume rendering and new pre-clinical 4d pt/ct mode (#3664) 2024-04-09 23:57:34 -04:00
getDisplaySetsFromUnsupportedSeries.js feat: Improve unsupported displayset messages (#4979) 2025-04-22 09:11:28 -04:00
getHangingProtocolModule.js fix: bugs after multimonitor (#4680) 2025-01-13 18:32:54 -05:00
getLayoutTemplateModule.js chore(prettier): full repo linting and code reformatting once and for all (#3627) 2023-09-01 16:19:39 -04:00
getPanelModule.tsx OHIF with Cornerstone3D 2.0 (#4347) 2024-11-06 07:15:27 -05:00
getPTImageIdInstanceMetadata.ts fix(stack-invalidation): Resolve stack invalidation if metadata invalidated (#4147) 2024-05-21 11:21:41 -04:00
getSopClassHandlerModule.js fix: Add seriesInstanceUID fallback for callByRetrieveAETitle (#5332) 2025-08-25 09:06:52 -04:00
getToolbarModule.tsx feat(actions): simplify action corner api through the toolbarService (#5033) 2025-05-15 12:08:12 -04:00
getViewportModule.tsx feat: add support to scoord3d (#5016) 2025-07-31 00:21:26 -04:00
id.js feat(cli): Ohif cli for modes and extensions modification (#2696) 2022-04-06 13:28:42 -04:00
index.ts chore: recovery 2 (#5014) merge to 3.11 (#5175) 2025-07-03 14:08:46 -04:00
init.ts fix(viewportgrid): don't subscribe to duplicate event listeners (#5218) 2025-07-16 14:40:47 -04:00