From 34f4329f95ae113e201b09802f2701ab5be2b70c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 19 Sep 2018 11:55:38 -0400 Subject: [PATCH] CAT-172 Additional AngJS patron edit fixes Avoid setting a hold_notify prefence, since KCLS does not have that user setting type present in the database. Minor formatting/layout repairs. Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 | 17 +++++++---------- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 7 ++++++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index f6fbe8d353..1389e40abe 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -179,15 +179,6 @@ within the "form" by name for validation. - - -
- [% draw_field_label('au', 'prefix') %] [% draw_form_input('au', 'prefix'); %] -
- [% draw_example_text('au', 'prefix') %] -
-
-
+
+
+
@@ -227,6 +221,7 @@ within the "form" by name for validation.
[% draw_example_text('au', 'first_given_name') %]
+
@@ -500,7 +495,7 @@ within the "form" by name for validation. -
+
@@ -741,6 +736,7 @@ within the "form" by name for validation.
+
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index 35fbfde460..108b086054 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -556,7 +556,7 @@ angular.module('egCoreMod') var static_types = [ 'circ.holds_behind_desk', 'circ.collections.exempt', - 'opac.hold_notify', + 'opac.hold_notify', // KCLS does not use this, harmless here. 'opac.default_phone', 'opac.default_pickup_location', 'opac.default_sms_carrier', @@ -1730,6 +1730,11 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore , // Translate hold notify preferences from the form/scope back into a // single user setting value for opac.hold_notify. function compress_hold_notify() { + // KCLS does not use opac.hold_notify nor is the setting + // present in the database. This code is not friendly + // to that scenario. Exit early; + return; + var hold_notify_methods = []; if ($scope.hold_notify_type.phone) { hold_notify_methods.push('phone'); -- 2.11.0