From: Jeff Davis Date: Wed, 29 Aug 2018 18:51:24 +0000 (-0700) Subject: LP#1781641: make staff-applied patron blocks overridable on web client checkout/renew X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=55f5d3cd9e7bffbad8856b7328280b23eae0a0b8;p=working%2FEvergreen.git 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 --- 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