From de47a334ee66adfd189c7b057557e2f0d879f06d Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 14 Feb 2006 00:51:55 +0000 Subject: [PATCH] circulation not found git-svn-id: svn://svn.open-ils.org/ILS/trunk@3063 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 777cbf60d6..b8346dee6e 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -298,6 +298,23 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate) { } } else { check.route_to = data.hash.aou[ check.copy.circ_lib() ].shortname(); + var rv = error.yns_alert( + 'There is no circulation for this item, however, its circulating library is ' + check.route_to + + '.\nTransit this item?', + 'Alert', + "Transit", + "Don't Transit", + null, + "Check here to confirm this message" + ); + switch(rv) { + case 0: /* transit */ + alert('FIXME -- make transit call here'); + break; + case 1: /* don't transit */ + check.route_to += ' ?'; + break; + } } } -- 2.43.2