[open-ils-commits] r14511 - trunk/Open-ILS/xul/staff_client/server/circ (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 21 01:58:51 EDT 2009
Author: phasefx
Date: 2009-10-21 01:58:47 -0400 (Wed, 21 Oct 2009)
New Revision: 14511
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/util.js
Log:
handle non-existent copies in renewal interface
Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js 2009-10-21 05:50:22 UTC (rev 14510)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js 2009-10-21 05:58:47 UTC (rev 14511)
@@ -2875,6 +2875,7 @@
function renew_callback(req) {
try {
+ JSAN.use('util.error'); var error = new util.error();
var renew = req.getResultObject();
if (typeof renew.ilsevent != 'undefined') renew = [ renew ];
for (var j = 0; j < renew.length; j++) {
@@ -2890,6 +2891,22 @@
case 1233 /* ITEM_RENTAL_FEE_REQUIRED */ : break;
case 1234 /* ITEM_DEPOSIT_PAID */ : break;
case 1500 /* ACTION_CIRCULATION_NOT_FOUND */ : break;
+ case 1502 /* ASSET_COPY_NOT_FOUND */ :
+ var mis_scan_msg = document.getElementById('circStrings').getFormattedString('staff.circ.copy_status.status.copy_not_found', [params.barcode]);
+ error.yns_alert(
+ mis_scan_msg,
+ document.getElementById('circStrings').getString('staff.circ.alert'),
+ null,
+ document.getElementById('circStrings').getString('staff.circ.utils.msg.ok'),
+ null,
+ document.getElementById('circStrings').getString('staff.circ.confirm.msg')
+ );
+ if (document.getElementById('no_change_label')) {
+ var m = document.getElementById('no_change_label').getAttribute('value');
+ document.getElementById('no_change_label').setAttribute('value',m + mis_scan_msg + ' ');
+ document.getElementById('no_change_label').setAttribute('hidden','false');
+ }
+ break;
case 7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */ : break;
case 7003 /* COPY_CIRC_NOT_ALLOWED */ : break;
case 7004 /* COPY_NOT_AVAILABLE */ : break;
More information about the open-ils-commits
mailing list