From c22e13f7d75ff406cefc221771babf367d9a2b3e Mon Sep 17 00:00:00 2001 From: phasefx Date: Sat, 25 Oct 2008 14:12:04 +0000 Subject: [PATCH] staff piece for hold capture delay git-svn-id: svn://svn.open-ils.org/ILS/trunk@10912 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 17 +++++++++++++++++ .../staff_client/server/locale/en-US/circ.properties | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index ebf71ca96c..64f26a5bfd 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2243,6 +2243,23 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che document.getElementById('no_change_label').setAttribute('hidden','false'); } + } else /* HOLD_CAPTURE_DELAYED */ if (check.ilsevent == 7019) { + + var rv = 0; + msg += document.getElementById('circStrings').getString('staff.circ.utils.hold_capture_delayed.description'); + rv = error.yns_alert_formatted( + msg, + document.getElementById('circStrings').getString('staff.circ.utils.hold_capture_delayed.titlebar'), + document.getElementById('circStrings').getString('staff.circ.utils.hold_capture_delayed.prompt_for_nocapture'), + document.getElementById('circStrings').getString('staff.circ.utils.hold_capture_delayed.prompt_for_capture'), + null, + document.getElementById('circStrings').getString('staff.circ.confirm.msg'), + '/xul/server/skin/media/images/stop_sign.png' + ); + params.capture = rv == 0 ? 'nocapture' : 'capture'; + + return circ.util.checkin_via_barcode(session,params,backdate,auto_print,false); + } else /* NETWORK TIMEOUT */ if (check.ilsevent == -1) { error.standard_network_error_alert(document.getElementById('circStrings').getString('staff.circ.checkin.suggest_offline')); } else { 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 744ff9bad4..fcdd2beee7 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 @@ -294,6 +294,10 @@ staff.circ.utils.payload.hold.slip_date=Slip Date: %1$s staff.circ.utils.hold_slip=Hold Slip staff.circ.utils.hold_slip.print.yes=Print staff.circ.utils.hold_slip.print.no=Do Not Print +staff.circ.utils.hold_capture_delayed.description=This item could fulfill a hold request but capture has been delayed by policy. +staff.circ.utils.hold_capture_delayed.titlebar=Hold Capture Delayed +staff.circ.utils.hold_capture_delayed.prompt_for_nocapture=Do Not Capture +staff.circ.utils.hold_capture_delayed.prompt_for_capture=Capture staff.circ.utils.capture=%1$s has been captured for a hold. staff.circ.utils.needs_cataloging=%1$s needs to be cataloged. staff.circ.utils.copy_status.error=FIXME -- this case "%1$s" is unhandled. -- 2.11.0