From 559f70889dfa2ca0f345cc244cb288afd8f82515 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 28 Oct 2008 22:32:17 +0000 Subject: [PATCH] handle ITEM_RENTAL_FEE_REQUIRED event if encountered during renewal git-svn-id: svn://svn.open-ils.org/ILS/trunk@10948 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 5 +++++ Open-ILS/xul/staff_client/server/locale/en-US/circ.properties | 1 + 2 files changed, 6 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index e8b78b9507..dd98935583 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2311,6 +2311,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 1233 /* ITEM_RENTAL_FEE_REQUIRED */ : break; case 1500 /* ACTION_CIRCULATION_NOT_FOUND */ : break; case 7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */ : break; case 7003 /* COPY_CIRC_NOT_ALLOWED */ : break; @@ -2345,6 +2346,7 @@ circ.util.renew_via_barcode = function ( barcode, patron_id, async ) { 1212 /* PATRON_EXCEEDS_OVERDUE_COUNT */, 1213 /* PATRON_BARRED */, 1215 /* CIRC_EXCEEDS_COPY_RANGE */, + 1233 /* ITEM_RENTAL_FEE_REQUIRED */, 7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */, 7003 /* COPY_CIRC_NOT_ALLOWED */, 7004 /* COPY_NOT_AVAILABLE */, @@ -2359,6 +2361,9 @@ circ.util.renew_via_barcode = function ( barcode, patron_id, async ) { '1212' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, '1213' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, '1215' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, + '1233' : function(r) { + return document.getElementById('circStrings').getString('staff.circ.renew.override.item_rental_fee_required.warning.barcode', [barcode]); + }, '7002' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, '7003' : function(r) { return document.getElementById('circStrings').getFormattedString('staff.circ.renew.barcode', [barcode]); }, '7004' : function(r) { diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index ea1839827e..928336a47c 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -320,6 +320,7 @@ staff.circ.checkin.renew_failed.override=Override Renew Failure? staff.circ.renew.barcode=Barcode: %1$s staff.circ.renew.barcode.status=Barcode: %1$s Status: %2$s staff.circ.renew.barcode.msg=Barcode: %1$s Message: %2$s +staff.circ.circ.override.item_rental_fee_required.warning.barcode=For item with barcode %1$s, a billing for an Item Rental Fee will be added to the patron's account if this action is overrided. staff.circ.holds.activate.prompt=Are you sure you would like to activate hold %1$s? staff.circ.holds.activate.prompt.plural=Are you sure you would like to activate holds %1$s? staff.circ.holds.suspend.prompt=Are you sure you would like to suspend hold %1$s? -- 2.11.0