Re IDC #2762: fix thumbnail series type for unsupported SOPClassUID (#2770)

This commit is contained in:
Davide Punzo authored and GitHub committed 2022-04-06 17:10:00 +02:00
1 parent 64385485b6
commit cedeb756c0
8 files changed
+227 -11

No files matched your search

@@ -79,7 +79,7 @@ const mapDispatchToProps = (dispatch, ownProps) => {
});
}
if (displaySet.isModalitySupported === false) {
if (displaySet.isSOPClassUIDSupported === false) {
const error = new Error('Modality not supported');
const message = 'Modality not supported';
LoggerService.error({ error, message });
@@ -563,8 +563,8 @@ const _checkForSeriesInconsistencesWarnings = async function(displaySet) {
);
}
if (displaySet.isModalitySupported === false) {
inconsistencyWarnings.push('The datasets modality is not supported.');
if (displaySet.isSOPClassUIDSupported === false) {
inconsistencyWarnings.push('The datasets is not supported.');
}
displaySet.inconsistencyWarnings = inconsistencyWarnings;
} else {
@@ -668,6 +668,8 @@ const _mapStudiesToThumbnails = function(studies, activeDisplaySetInstanceUID) {
} else if (displaySet.images && displaySet.images.length) {
const imageIndex = Math.floor(displaySet.images.length / 2);
imageId = displaySet.images[imageIndex].getImageId();
} else if (displaySet.isSOPClassUIDSupported === false) {
altImageText = displaySet.SOPClassUIDNaturalized;
} else {
altImageText = displaySet.Modality ? displaySet.Modality : 'UN';
}
@@ -190,7 +190,7 @@ class ViewerMain extends Component {
}
}
if (displaySet.isModalitySupported === false) {
if (displaySet.isSOPClassUIDSupported === false) {
const error = new Error('Modality not supported');
const message = 'Modality not supported';
LoggerService.error({ error, message });