From 46000195a3f3a6a1b3f01e68151dd4373ba8bdcd Mon Sep 17 00:00:00 2001 From: pines Date: Fri, 27 Oct 2006 13:39:34 +0000 Subject: [PATCH] strict barcode toggle git-svn-id: svn://svn.open-ils.org/ILS/trunk@6525 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/checkin.js | 2 ++ Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul | 1 + Open-ILS/xul/staff_client/server/circ/checkout.js | 2 ++ Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul | 1 + Open-ILS/xul/staff_client/server/circ/copy_status.js | 2 ++ Open-ILS/xul/staff_client/server/circ/copy_status_overlay.xul | 1 + Open-ILS/xul/staff_client/server/circ/in_house_use.js | 2 ++ Open-ILS/xul/staff_client/server/circ/in_house_use.xul | 1 + 8 files changed, 12 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/checkin.js b/Open-ILS/xul/staff_client/server/circ/checkin.js index 3482f0341f..1c07a9407e 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin.js +++ b/Open-ILS/xul/staff_client/server/circ/checkin.js @@ -280,6 +280,8 @@ circ.checkin.prototype = { 'test_barcode' : function(bc) { var obj = this; + var x = document.getElementById('strict_barcode'); + if (x && x.checked != true) return true; var good = util.barcode.check(bc); if (good) { return true; diff --git a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul index ea6eb91b57..65c0212b27 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul @@ -106,6 +106,7 @@ command="cmd_checkin_export" accesskey=""/> + diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index b022a44b1b..3aa1b7937f 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -448,6 +448,8 @@ circ.checkout.prototype = { 'test_barcode' : function(bc) { var obj = this; + var x = document.getElementById('strict_barcode'); + if (x && x.checked != true) return true; var good = util.barcode.check(bc); if (good) { return true; diff --git a/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul b/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul index 46406b26ca..aa2e79d5f4 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul @@ -63,6 +63,7 @@ accesskey=""/>