From 3cf1463445a94d3c06840040475cdc5208635e83 Mon Sep 17 00:00:00 2001 From: Josh Stompro Date: Tue, 5 Nov 2019 15:31:21 -0600 Subject: [PATCH] LP#1851434 - Allow COPY_NOT_AVAILABLE.override during renewal Also addresses LP#1827901 - Allow PATRON_EXCEEDS_LONGOVERDUE_COUNT override during checkout and renew. Test Plan: 1. Check out an item to a patron. 2. Mark item lost by patron to change status to lost. 3. In web client, log in as user with COPY_NOT_AVAILABLE.override 4. Try to renew item for patron, see that it isn't allowed. After fix: 1. Try to renew item for patron, see that the override is now allowed. Also try checkouts and renews for patrons that have the PATRON_EXCEEDS_LONGOVERDUE_COUNT block. Signed-off-by: Josh Stompro Signed-off-by: Michele Morgan Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 4a3ce9c54f..0067d1cbd8 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 @@ -54,6 +54,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl 'PATRON_EXCEEDS_OVERDUE_COUNT', 'PATRON_EXCEEDS_CHECKOUT_COUNT', 'PATRON_EXCEEDS_FINES', + 'PATRON_EXCEEDS_LONGOVERDUE_COUNT', 'PATRON_BARRED', 'CIRC_EXCEEDS_COPY_RANGE', 'ITEM_DEPOSIT_REQUIRED', @@ -80,7 +81,8 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl 'PATRON_BARRED', 'PATRON_EXCEEDS_LOST_COUNT', 'PATRON_EXCEEDS_CHECKOUT_COUNT', - 'PATRON_EXCEEDS_FINES' + 'PATRON_EXCEEDS_FINES', + 'PATRON_EXCEEDS_LONGOVERDUE_COUNT' ] @@ -90,11 +92,13 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl 'PATRON_EXCEEDS_LOST_COUNT', 'PATRON_EXCEEDS_CHECKOUT_COUNT', 'PATRON_EXCEEDS_FINES', + 'PATRON_EXCEEDS_LONGOVERDUE_COUNT', 'CIRC_EXCEEDS_COPY_RANGE', 'ITEM_DEPOSIT_REQUIRED', 'ITEM_RENTAL_FEE_REQUIRED', 'ITEM_DEPOSIT_PAID', 'COPY_CIRC_NOT_ALLOWED', + 'COPY_NOT_AVAILABLE', 'COPY_IS_REFERENCE', 'COPY_ALERT_MESSAGE', 'COPY_NEEDED_FOR_HOLD', -- 2.11.0