From 961264549feb4d9fb1cda571f465147c1eae715b Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sat, 15 Feb 2014 12:56:58 -0500 Subject: [PATCH] LP#638509: Handle COPY_STATUS_LOST and COPY_STATUS_LONG_OVERDUE in renewal. Modify Open-ILS/xul/staff_client/server/circ/util.js so that the above events are available for override. Signed-off-by: Jason Stephenson Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/circ/util.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index aa497d4f81..96eee5b084 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -3693,7 +3693,9 @@ circ.util.renew_via_barcode = function ( params, async ) { case 7008 /* MAX_RENEWALS_REACHED */ : break; case 7009 /* CIRC_CLAIMS_RETURNED */ : break; case 7010 /* COPY_ALERT_MESSAGE */ : break; + case 7011 /* COPY_STATUS_LOST */ : break; case 7013 /* PATRON_EXCEEDS_FINES */ : break; + case 7025 /* COPY_STATUS_LONG_OVERDUE */ : break; case 11106 /* TOTAL_HOLD_COPY_RATIO_EXCEEDED */ : break; case 11107 /* AVAIL_HOLD_COPY_RATIO_EXCEEDED */ : break; default: @@ -3774,7 +3776,9 @@ circ.util.renew_via_barcode = function ( params, async ) { 7008 /* MAX_RENEWALS_REACHED */, 7009 /* CIRC_CLAIMS_RETURNED */, 7010 /* COPY_ALERT_MESSAGE */, + 7011 /* COPY_STATUS_LOST */, 7013 /* PATRON_EXCEEDS_FINES */, + 7025 /* COPY_STATUS_LONG_OVERDUE */, 11106 /* TOTAL_HOLD_COPY_RATIO_EXCEEDED */, 11107 /* AVAIL_HOLD_COPY_RATIO_EXCEEDED */ ], @@ -3804,7 +3808,13 @@ circ.util.renew_via_barcode = function ( params, async ) { '7010' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode.msg', [params.barcode, r.payload]); }, - '7013' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [params.barcode]); } + '7011' : function(r) { + return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode.status', [params.barcode, typeof r.payload.status() == 'object' ? r.payload.status().name() : obj.data.hash.ccs[ r.payload.status() ].name()]); + }, + '7013' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [params.barcode]); }, + '7025' : function(r) { + return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode.status', [params.barcode, typeof r.payload.status() == 'object' ? r.payload.status().name() : obj.data.hash.ccs[ r.payload.status() ].name()]); + } } } ); -- 2.11.0