LP#1980867 follow-up: default to showing the traditional catalog, add release notes
authorJane Sandberg <sandbergja@gmail.com>
Fri, 30 Sep 2022 02:26:22 +0000 (19:26 -0700)
committerJane Sandberg <sandbergja@gmail.com>
Fri, 30 Sep 2022 02:26:22 +0000 (19:26 -0700)
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>

Open-ILS/src/eg2/src/app/staff/nav.component.ts
Open-ILS/web/js/ui/default/staff/services/navbar.js
docs/RELEASE_NOTES_NEXT/Administration/turn_off_traditional_staff_catalog.adoc [new file with mode: 0644]

index 682c0bd..8c421e8 100644 (file)
@@ -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;
index 54f9e71..e6d506c 100644 (file)
@@ -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 (file)
index 0000000..d9691d4
--- /dev/null
@@ -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.
+