From 55f5d3cd9e7bffbad8856b7328280b23eae0a0b8 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Wed, 29 Aug 2018 11:51:24 -0700 Subject: [PATCH] LP#1781641: make staff-applied patron blocks overridable on web client checkout/renew To test ------- [1] Apply a blocking penalty such as STAFF_CHR to a patron record. [2] Attempt to check out an item; note that there is no option to force the action. [3] Apply the patch and repeat #2. This time, the staff user should be given an option to force the action. [4] Verify that forcing the checkout respects whether or not the operator has (e.g.) the STAFF_CHR.override permission. Signed-off-by: Jeff Davis Signed-off-by: Joan Kranich Signed-off-by: Galen Charlton --- .../js/ui/default/staff/circ/services/circ.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index c832c6051e..25e4fc1ce4 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -62,7 +62,14 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl 'COPY_NOT_AVAILABLE', 'COPY_IS_REFERENCE', 'COPY_ALERT_MESSAGE', - 'ITEM_ON_HOLDS_SHELF' + 'ITEM_ON_HOLDS_SHELF', + 'STAFF_C', + 'STAFF_CH', + 'STAFF_CHR', + 'STAFF_CR', + 'STAFF_H', + 'STAFF_HR', + 'STAFF_R' ] // after the first override of any of these events, @@ -91,7 +98,14 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl 'COPY_ALERT_MESSAGE', 'COPY_NEEDED_FOR_HOLD', 'MAX_RENEWALS_REACHED', - 'CIRC_CLAIMS_RETURNED' + 'CIRC_CLAIMS_RETURNED', + 'STAFF_C', + 'STAFF_CH', + 'STAFF_CHR', + 'STAFF_CR', + 'STAFF_H', + 'STAFF_HR', + 'STAFF_R' ]; // these checkin events do not produce alerts when -- 2.43.2