tweaked renew in staff interface. Alerts on non-renewals, and handles ACTION_CIRCULA...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Oct 2007 18:12:34 +0000 (18:12 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Oct 2007 18:12:34 +0000 (18:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7874 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index ad9d580..a785154 100644 (file)
@@ -1328,6 +1328,7 @@ circ.util.renew_via_barcode = function ( barcode, patron_id, async ) {
                                                case 1213 /* PATRON_BARRED */ : break;
                                                case 1215 /* CIRC_EXCEEDS_COPY_RANGE */ : break;
                                                case 1224 /* PATRON_ACCOUNT_EXPIRED */ : break;
+                                               case 1500 /* ACTION_CIRCULATION_NOT_FOUND */ : break;
                                                case 7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */ : break;
                                                case 7003 /* COPY_CIRC_NOT_ALLOWED */ : break;
                                                case 7004 /* COPY_NOT_AVAILABLE */ : break;
index 4ecfb09..e44521e 100644 (file)
@@ -306,7 +306,9 @@ patron.items.prototype = {
                                 // A renewed circ is a new circ, and has a new circ_id.
                                 obj.list_circ_map[ r[0].payload.circ.id() ] = obj.list_circ_map[ circ_id ];
                             } else {
-                                l.setAttribute('value', bc + ' not renewed.  ' + r[0].textcode + r[0].desc);
+                                var msg = bc + ' not renewed.\n' + r[0].textcode + r[0].desc
+                                l.setAttribute('value', msg);
+                                alert(msg);
                             }
                             count--;
                             if (count == 0) {
@@ -315,7 +317,7 @@ patron.items.prototype = {
                             }
                             obj.refresh(circ_id);
                         } catch(E) {
-                                               obj.error.standard_unexpected_error_alert('Error in renew_via_barcode callback\nRenew probably did not happen for barcode ' + barcode,E);
+                                              obj.error.standard_unexpected_error_alert('Error in renew_via_barcode callback\nRenew probably did not happen for barcode ' + barcode,E);
                         }
                                        } 
                                );