better indication of causes for renewal failures
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Oct 2007 05:50:52 +0000 (05:50 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Oct 2007 05:50:52 +0000 (05:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7910 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 4ecfb09..6e8da28 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);
                         }
                                        } 
                                );