From ca88dba7df64d06dff42f40261b0b28cfbb2129f Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Thu, 12 Oct 2017 17:31:37 -0400 Subject: [PATCH] LP#1719967 - Add alert message field to volcopy editor As 1676608 was deferred to 3.1, this adds a copy alert_message field, to the volcopy editor. The defaults tab "Alerts" checkbox has been replaced by "Alert Message" and this new field will be active until replaced by the changes of 3.1. Signed-off by: Cesar Velez Signed-off-by: Mike Rylander --- .../templates/staff/cat/volcopy/t_attr_edit.tt2 | 34 ++++++++++++++++++---- .../src/templates/staff/cat/volcopy/t_defaults.tt2 | 5 ++-- .../web/js/ui/default/staff/cat/volcopy/app.js | 5 +++- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 index 1d014916c0..bba9ab1138 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 @@ -98,7 +98,7 @@ [% l('Status') %]
- [% l('Statistical Categories') %] + [% l('Copy Alert') %]
@@ -138,6 +138,7 @@
[% l('Reference?') %]
+
@@ -414,13 +415,33 @@
+ +
+
+
+
+ +
+
+
+
+ +
- +
+
+ Statistical Categories +
+
+
+ +
@@ -446,6 +467,7 @@
+ diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_defaults.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_defaults.tt2 index c3cc46c948..89e4ebee9b 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_defaults.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_defaults.tt2 @@ -102,8 +102,9 @@
diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 11fa2a7b86..a0ddadea8a 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -843,7 +843,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , location : true, holdable : true, age_protect : true, - floating : true + floating : true, + alert_message : true } }; @@ -1586,6 +1587,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , createSimpleUpdateWatcher('mint_condition'); createSimpleUpdateWatcher('opac_visible'); createSimpleUpdateWatcher('ref'); + createSimpleUpdateWatcher('alert_message'); $scope.saveCompletedCopies = function (and_exit) { var cnHash = {}; @@ -2162,6 +2164,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , createSimpleUpdateWatcher('mint_condition'); createSimpleUpdateWatcher('opac_visible'); createSimpleUpdateWatcher('ref'); + createSimpleUpdateWatcher('alert_message'); $scope.suffix_list = []; itemSvc.get_suffixes(egCore.auth.user().ws_ou()).then(function(list){ -- 2.11.0