staff piece for hold capture delay
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 25 Oct 2008 14:12:04 +0000 (14:12 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 25 Oct 2008 14:12:04 +0000 (14:12 +0000)
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
Open-ILS/xul/staff_client/server/locale/en-US/circ.properties

index ebf71ca..64f26a5 100644 (file)
@@ -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 {
index 744ff9b..fcdd2be 100644 (file)
@@ -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.