LP#1781641: make staff-applied patron blocks overridable on web client checkout/renew
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 29 Aug 2018 18:51:24 +0000 (11:51 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 5 Sep 2018 16:12:37 +0000 (12:12 -0400)
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 <jdavis@sitka.bclibraries.ca>
Signed-off-by: Joan Kranich <jkranich@cwmars.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/circ/services/circ.js

index c832c60..25e4fc1 100644 (file)
@@ -62,7 +62,14 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,  egAddCopyAl
         'COPY_NOT_AVAILABLE',
         'COPY_IS_REFERENCE',
         'COPY_ALERT_MESSAGE',
         '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, 
     ]
 
     // 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',
         '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 
     ];
 
     // these checkin events do not produce alerts when