From 99c8ec630e5cf2c1723da13ad76df034e1e163ac Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 21 Oct 2019 15:12:22 -0400 Subject: [PATCH] LP#1726918 Alert doesn't display for soon-to-expire patron accounts This displays an alert on the patron summary bar if a patron account is set to expire within x number of days as defined by the 'Warn when patron account is about to expire' library setting. Signed-off-by: Terran McCanna Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 | 3 +++ Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 1 + 2 files changed, 4 insertions(+) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 index 11df48de6e..a9ad375bd0 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 @@ -33,6 +33,9 @@ {{patron().alert_message()}} +
+
[% l('Patron account will expire soon. Please renew.') %]
+
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index 4409cb1aab..08f059659b 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -327,6 +327,7 @@ function($scope, $q , $location , $filter , egCore , egNet , egUser , egAlertDi $scope.summary_stat_cats = function() { return patronSvc.summary_stat_cats } $scope.hasAlerts = function() { return patronSvc.hasAlerts } $scope.isPatronExpired = function() { return patronSvc.patronExpired } + $scope.doesPatronExpireSoon = function() { return patronSvc.patronExpiresSoon } $scope.print_address = function(addr) { egCore.print.print({ -- 2.11.0