From 5d77dc9426e669a824a31658f348689c05675411 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 7 Jun 2021 12:49:54 -0400 Subject: [PATCH] LP1904036 Separate Circulation (Experimental) Menu Move all new experimental Angular Circulation interfaces into a single menu entry which can be enabled via a new org setting: ui.staff.angular_circ.enabled Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/nav.component.html | 66 ++++++++++++++---- Open-ILS/src/eg2/src/app/staff/nav.component.ts | 14 ++++ Open-ILS/src/eg2/src/app/staff/resolver.service.ts | 1 + .../eg2/src/app/staff/share/circ/circ.service.ts | 2 +- .../sql/Pg/upgrade/XXXX.data.angular-patron.sql | 18 ++++- Open-ILS/src/templates/staff/navbar.tt2 | 81 +++++++++++++++++----- .../web/js/ui/default/staff/services/navbar.js | 3 + 7 files changed, 149 insertions(+), 36 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index 6ab79944d1..11e9f07307 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -23,10 +23,6 @@ Search for Patrons - - - Search for Patrons (Experimental) - Search for Items by Barcode @@ -59,12 +55,6 @@ Check In - - - Check In (Experimental) - @@ -85,10 +75,6 @@ Renew Items - - - Renew Items (Experimental) - @@ -101,7 +87,7 @@ Retrieve Last Patron - + Retrieve Recent Patrons @@ -168,6 +154,56 @@ + + + -$TEMPLATE$ WHERE name = 'transit_slip'; +$TEMPLATE$ WHERE name = 'hold_transit_slip'; INSERT INTO config.print_template (name, label, owner, active, locale, content_type, template) @@ -641,6 +641,22 @@ UPDATE config.print_template SET template = $TEMPLATE$ $TEMPLATE$ WHERE name = 'renew'; +INSERT into config.org_unit_setting_type (name, grp, label, description, datatype) +VALUES ( + 'ui.staff.angular_circ.enabled', 'gui', + oils_i18n_gettext( + 'ui.staff.angular_circ.enabled', + 'Enable Angular Circulation Menu', + 'coust', 'label' + ), + oils_i18n_gettext( + 'ui.staff.angular_circ.enabled', + 'Enable the Circulation menu for the experimental Angular Circulation UIs', + 'coust', 'description' + ), + 'bool' +); + COMMIT; diff --git a/Open-ILS/src/templates/staff/navbar.tt2 b/Open-ILS/src/templates/staff/navbar.tt2 index ccb286f361..16720226cd 100644 --- a/Open-ILS/src/templates/staff/navbar.tt2 +++ b/Open-ILS/src/templates/staff/navbar.tt2 @@ -43,12 +43,6 @@
  • - - - [% l('Search for Patrons (Experimental)') %] - -
  • -
  • @@ -99,12 +93,6 @@ [% l('Check In') %]
  • -
  • - - - [% l('Check In (Experimental)') %] - -
  • -
  • - - - [% l('Renew Items (Experimental)') %] - -
  • -
  • + + +