[open-ils-commits] r7874 - in trunk/Open-ILS/xul/staff_client/server: circ patron

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Oct 9 14:24:23 EDT 2007


Author: phasefx
Date: 2007-10-09 14:12:34 -0400 (Tue, 09 Oct 2007)
New Revision: 7874

Modified:
   trunk/Open-ILS/xul/staff_client/server/circ/util.js
   trunk/Open-ILS/xul/staff_client/server/patron/items.js
Log:
tweaked renew in staff interface.  Alerts on non-renewals, and handles ACTION_CIRCULATION_NOT_FOUND

Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js	2007-10-08 20:48:46 UTC (rev 7873)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js	2007-10-09 18:12:34 UTC (rev 7874)
@@ -1328,6 +1328,7 @@
 						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;

Modified: trunk/Open-ILS/xul/staff_client/server/patron/items.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/items.js	2007-10-08 20:48:46 UTC (rev 7873)
+++ trunk/Open-ILS/xul/staff_client/server/patron/items.js	2007-10-09 18:12:34 UTC (rev 7874)
@@ -306,7 +306,9 @@
                                 // 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 @@
                             }
                             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);
                         }
 					} 
 				);



More information about the open-ils-commits mailing list