Skip to content

Commit

Permalink
renames + 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
amazy committed Oct 10, 2024
1 parent fdcc0aa commit e6132e2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Plugin/DefaultConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"EnableSettings": true, // Enables the settings menu/interface
"EnableLinkToLegacyUi": true, // Enables a link to the legacy Orthanc UI
"EnableChangePassword": true, // Enables the 'change password' button in the side bar. Only applicable if Keycloak is enabled
"EnableQuickViewerButton": true, // Enables a button in the study list to directly open a viewer
"EnableQuickReportButton": true, // Enables a button in the study list to directly open a PDF report if available in the study
"EnableViewerQuickButton": true, // Enables a button in the study list to directly open a viewer
"EnableReportQuickButton": true, // Enables a button in the study list to directly open a PDF report if available in the study

"EnableEditLabels": true, // Enables labels management (create/delete/assign/unassign)
"AvailableLabels": [], // If not empty, this list prevents the creation of new labels and only allows add/remove of the listed labels.
Expand Down
4 changes: 2 additions & 2 deletions Plugin/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,8 @@ void GetOE2Configuration(OrthancPluginRestOutput* output,
LOG(INFO) << "Overriding \"Enable...\" in UiOptions with the permissions from the auth-service for this user-profile";

UpdateUiOptions(uiOptions["EnableStudyList"], permissions, "all|view");
UpdateUiOptions(uiOptions["EnableQuickViewerButton"], permissions, "all|view");
UpdateUiOptions(uiOptions["EnableQuickReportButton"], permissions, "all|view");
UpdateUiOptions(uiOptions["EnableViewerQuickButton"], permissions, "all|view");
UpdateUiOptions(uiOptions["EnableReportQuickButton"], permissions, "all|view");
UpdateUiOptions(uiOptions["EnableUpload"], permissions, "all|upload");
UpdateUiOptions(uiOptions["EnableAddSeries"], permissions, "all|upload");
UpdateUiOptions(uiOptions["EnableDicomModalities"], permissions, "all|q-r-remote-modalities");
Expand Down
8 changes: 4 additions & 4 deletions WebApplication/src/components/StudyItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ export default {
}
},
hasPdfReportIconPlaceholder() {
return this.studiesSourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableQuickReportButton && !this.hasPdfReportIcon;
return this.studiesSourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableReportQuickButton && !this.hasPdfReportIcon;
},
hasPdfReportIcon() {
return this.study.RequestedTags.SOPClassesInStudy && this.study.RequestedTags.SOPClassesInStudy.indexOf("1.2.840.10008.5.1.4.1.1.104.1") != -1 && this.uiOptions.EnableQuickReportButton;
return this.study.RequestedTags.SOPClassesInStudy && this.study.RequestedTags.SOPClassesInStudy.indexOf("1.2.840.10008.5.1.4.1.1.104.1") != -1 && this.uiOptions.EnableReportQuickButton;
},
hasPrimaryViewerIconPlaceholder() {
return this.studiesSourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableQuickViewerButton && !this.hasPrimaryViewerIcon;
return this.studiesSourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableViewerQuickButton && !this.hasPrimaryViewerIcon;
},
hasPrimaryViewerIcon() {
return this.studiesSourceType == SourceType.LOCAL_ORTHANC && this.primaryViewerUrl && this.uiOptions.EnableQuickViewerButton;
return this.studiesSourceType == SourceType.LOCAL_ORTHANC && this.primaryViewerUrl && this.uiOptions.EnableViewerQuickButton;
},
primaryViewerUrl() {
return resourceHelpers.getPrimaryViewerUrl("study", this.study.ID, this.study.MainDicomTags.StudyInstanceUID);
Expand Down
4 changes: 2 additions & 2 deletions WebApplication/src/components/StudyList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ export default {
return this.uiOptions.DateFormat;
},
hasPrimaryViewerIcon() {
return this.sourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableQuickViewerButton;
return this.sourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableViewerQuickButton;
},
hasPdfReportIcon() {
return this.sourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableQuickReportButton;
return this.sourceType == SourceType.LOCAL_ORTHANC && this.uiOptions.EnableReportQuickButton;
}
},
watch: {
Expand Down
2 changes: 1 addition & 1 deletion WebApplication/src/store/modules/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const mutations = {
if (uiOptions.StudyListColumns.indexOf('seriesCount') != -1 || uiOptions.StudyListColumns.indexOf('seriesAndInstancesCount') != -1) {
state.requestedTagsForStudyList.push('NumberOfStudyRelatedSeries')
}
if (uiOptions.EnableQuickReportButton) {
if (uiOptions.EnableReportQuickButton) {
state.requestedTagsForStudyList.push('SOPClassesInStudy'); // to detect PDF files
}
},
Expand Down
16 changes: 8 additions & 8 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pending changes
===============
1.6.3 (2024-10-10)
==================

Changes:
- new configuration "EnableQuickViewerButton" to enable/disable a button
- new configuration "EnableViewerQuickButton" to enable/disable a button
to open a viewer directly from the study list (default value: true).
- new configuration "EnableQuickReportButton" to enable/disable a button
to open a PDF report directly from the study list if available in the study.
(default value: false). Note that, with Orthanc version up to 1.12.4, this
option may slow down the display of the study list.

- new configuration "EnableReportQuickButton" to enable/disable a button
to open a PDF report directly from the study list if a PDF report isavailable
in the study. (default value: false).
Note that, with Orthanc version up to 1.12.4, this option may slow down the
display of the study list but this will be solved in the next Orthanc version.

Fixes:
- When modifying studies, dates selected from the DatePicker were not always taken into account.
Expand Down

0 comments on commit e6132e2

Please sign in to comment.