From: phasefx Date: Tue, 9 Oct 2007 18:12:34 +0000 (+0000) Subject: tweaked renew in staff interface. Alerts on non-renewals, and handles ACTION_CIRCULA... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d6a5c11884c6f319db6896e8809adfd52ce5c39d;p=Evergreen.git tweaked renew in staff interface. Alerts on non-renewals, and handles ACTION_CIRCULATION_NOT_FOUND git-svn-id: svn://svn.open-ils.org/ILS/trunk@7874 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index ad9d5801c4..a785154bbb 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -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; diff --git a/Open-ILS/xul/staff_client/server/patron/items.js b/Open-ILS/xul/staff_client/server/patron/items.js index 4ecfb09570..e44521e7a0 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.js +++ b/Open-ILS/xul/staff_client/server/patron/items.js @@ -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); } } );