debugging and don't FIXME overridable events that are not overrided
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Aug 2006 18:29:43 +0000 (18:29 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Aug 2006 18:29:43 +0000 (18:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5519 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/util.js

index fa7f61e..0ebfa73 100644 (file)
@@ -792,6 +792,8 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate,auto_print) {
                        }
                );
 
+               error.sdump('D_DEBUG','check = ' + error.pretty_print( js2JSON( check ) ) );
+
                check.message = check.textcode;
 
                if (check.payload && check.payload.copy) check.copy = check.payload.copy;
@@ -936,6 +938,16 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate,auto_print) {
                        error.standard_network_error_alert('Check In Failed.  If you wish to use the offline interface, in the top menubar select Circulation -> Offline Interface');
                } else {
 
+                       switch (check.ilsevent) {
+                               case 1203 /* COPY_BAD_STATUS */ : 
+                               case 7009 /* CIRC_CLAIMS_RETURNED */ :
+                               case 7010 /* COPY_ALERT_MESSAGE */ : 
+                               case 7011 /* COPY_STATUS_LOST */ : 
+                               case 7012 /* COPY_STATUS_MISSING */ : 
+                                       return null; /* handled */
+                               break;
+                       }
+
                        throw(check);
 
                }