From ab5d942a9c7f16bc1f3005da01a38ed8cd364798 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 29 Sep 2022 19:26:22 -0700 Subject: [PATCH] LP#1980867 follow-up: default to showing the traditional catalog, add release notes Signed-off-by: Jane Sandberg --- Open-ILS/src/eg2/src/app/staff/nav.component.ts | 2 +- Open-ILS/web/js/ui/default/staff/services/navbar.js | 4 ++-- .../Administration/turn_off_traditional_staff_catalog.adoc | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 docs/RELEASE_NOTES_NEXT/Administration/turn_off_traditional_staff_catalog.adoc diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.ts b/Open-ILS/src/eg2/src/app/staff/nav.component.ts index 682c0bded2..8c421e87e5 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.ts @@ -24,7 +24,7 @@ export class StaffNavComponent implements OnInit, OnDestroy { currentLocale: any; // When active, show a link to the traditional staff catalog - showTraditionalCatalog: boolean; + showTraditionalCatalog = true; curbsideEnabled: boolean; @ViewChild('navOpChange', {static: false}) opChange: OpChangeComponent; diff --git a/Open-ILS/web/js/ui/default/staff/services/navbar.js b/Open-ILS/web/js/ui/default/staff/services/navbar.js index 54f9e71b15..e6d506c45b 100644 --- a/Open-ILS/web/js/ui/default/staff/services/navbar.js +++ b/Open-ILS/web/js/ui/default/staff/services/navbar.js @@ -129,8 +129,8 @@ angular.module('egCoreMod') $scope.showRecentPatron = val > 0; $scope.showRecentPatrons = val > 1; - $scope.showTraditionalCatalog = - s['ui.staff.traditional_catalog.enabled']; + val = s['ui.staff.traditional_catalog.enabled']; + $scope.showTraditionalCatalog = (val !== false); $scope.enableCurbside = s['circ.curbside']; }).then(function() { diff --git a/docs/RELEASE_NOTES_NEXT/Administration/turn_off_traditional_staff_catalog.adoc b/docs/RELEASE_NOTES_NEXT/Administration/turn_off_traditional_staff_catalog.adoc new file mode 100644 index 0000000000..d9691d41c4 --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/Administration/turn_off_traditional_staff_catalog.adoc @@ -0,0 +1,10 @@ +== Optionally remove traditional catalog from menu == + +Libraries that have fully migrated to the Angular staff catalog +may optionally hide the "Staff Catalog (Traditional)" menu +options. To do so, in the Library Settings Editor, set the +"ui.staff.traditional_catalog.enabled" setting to False. + +After changing the setting, you will need to log out and log +back in to see the changes to the menu. + -- 2.11.0