more events
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Aug 2006 19:46:44 +0000 (19:46 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Aug 2006 19:46:44 +0000 (19:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5593 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkout.js
Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/patron/items.js

index af72c07..60653c7 100644 (file)
@@ -386,6 +386,7 @@ circ.checkout.prototype = {
                                        'title' : 'Override Checkout Failure?',
                                        'overridable_events' : [ 
                                                1212 /* PATRON_EXCEEDS_OVERDUE_COUNT */,
+                                               1213 /* PATRON_BARRED */,
                                                1215 /* CIRC_EXCEEDS_COPY_RANGE */,
                                                7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */,
                                                7003 /* COPY_CIRC_NOT_ALLOWED */,
@@ -485,6 +486,9 @@ circ.checkout.prototype = {
                                                case 1212 /* PATRON_EXCEEDS_OVERDUE_COUNT */ :
                                                        found_handled = true;
                                                break;
+                                               case 1213 /* PATRON_BARRED */ :
+                                                       found_handled = true;
+                                               break;
                                                case 1215 /* CIRC_EXCEEDS_COPY_RANGE */ :
                                                        found_handled = true;
                                                break;
index 571ef17..1992da3 100644 (file)
@@ -775,10 +775,12 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate,auto_print) {
                                'title' : 'Override Checkin Failure?',
                                'overridable_events' : [ 
                                        1203 /* COPY_BAD_STATUS */, 
+                                       1213 /* PATRON_BARRED */,
                                        7009 /* CIRC_CLAIMS_RETURNED */,
                                        7010 /* COPY_ALERT_MESSAGE */, 
                                        7011 /* COPY_STATUS_LOST */, 
                                        7012 /* COPY_STATUS_MISSING */, 
+                                       7013 /* PATRON_EXCEEDS_FINES */,
                                ],
                                'text' : {
                                        '1203' : function(r) {
@@ -946,10 +948,12 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate,auto_print) {
 
                        switch (check.ilsevent) {
                                case 1203 /* COPY_BAD_STATUS */ : 
+                               case 1213 /* PATRON_BARRED */ :
                                case 7009 /* CIRC_CLAIMS_RETURNED */ :
                                case 7010 /* COPY_ALERT_MESSAGE */ : 
                                case 7011 /* COPY_STATUS_LOST */ : 
                                case 7012 /* COPY_STATUS_MISSING */ : 
+                               case 7013 /* PATRON_EXCEEDS_FINES */ :
                                        return null; /* handled */
                                break;
                        }
index 4f7d4f2..053def9 100644 (file)
@@ -248,6 +248,7 @@ patron.items.prototype = {
                                                        'title' : 'Override Renew Failure?',
                                                        'overridable_events' : [ 
                                                                1212 /* PATRON_EXCEEDS_OVERDUE_COUNT */,
+                                                               1213 /* PATRON_BARRED */,
                                                                7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */,
                                                                7003 /* COPY_CIRC_NOT_ALLOWED */,
                                                                7004 /* COPY_NOT_AVAILABLE */,
@@ -275,6 +276,7 @@ patron.items.prototype = {
                                                        case 0 /* SUCCESS */ : break;
                                                        case 5000 /* PERM_FAILURE */: break;
                                                        case 1212 /* PATRON_EXCEEDS_OVERDUE_COUNT */ : break;
+                                                       case 1213 /* PATRON_BARRED */ : break;
                                                        case 7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */ : break;
                                                        case 7003 /* COPY_CIRC_NOT_ALLOWED */ : break;
                                                        case 7004 /* COPY_NOT_AVAILABLE */ : break;