LP#1851434 - Allow COPY_NOT_AVAILABLE.override during renewal
authorJosh Stompro <stompro@stompro.org>
Tue, 5 Nov 2019 21:31:21 +0000 (15:31 -0600)
committerBill Erickson <berickxx@gmail.com>
Wed, 22 Jan 2020 19:24:27 +0000 (14:24 -0500)
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 <stompro@stompro.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/services/circ.js

index 4a3ce9c..0067d1c 100644 (file)
@@ -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',