[open-ils-commits] r7910 - branches/rel_1_2/Open-ILS/xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Oct 22 02:04:17 EDT 2007


Author: phasefx
Date: 2007-10-22 01:50:52 -0400 (Mon, 22 Oct 2007)
New Revision: 7910

Modified:
   branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/items.js
Log:
better indication of causes for renewal failures

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/items.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/items.js	2007-10-22 05:49:53 UTC (rev 7909)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/items.js	2007-10-22 05:50:52 UTC (rev 7910)
@@ -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