strict barcode toggle
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 27 Oct 2006 13:39:34 +0000 (13:39 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 27 Oct 2006 13:39:34 +0000 (13:39 +0000)
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
Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul
Open-ILS/xul/staff_client/server/circ/checkout.js
Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul
Open-ILS/xul/staff_client/server/circ/copy_status.js
Open-ILS/xul/staff_client/server/circ/copy_status_overlay.xul
Open-ILS/xul/staff_client/server/circ/in_house_use.js
Open-ILS/xul/staff_client/server/circ/in_house_use.xul

index 3482f03..1c07a94 100644 (file)
@@ -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;
index ea6eb91..65c0212 100644 (file)
                command="cmd_checkin_export"
                accesskey=""/>
        <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/> 
+       <checkbox id="strict_barcode" label="Strict Barcode" checked="false" persist="checked"/> 
        <checkbox id="do_not_alert_on_precat" label="Don't Alert on Pre-Cat" persist="checked"/> 
        <spacer id="pcii3s" flex="1"/>
        <checkbox id="checkin_auto" label="Auto-Print for Hold/Transit Slips" accesskey="P" persist="checked"/> 
index b022a44..3aa1b79 100644 (file)
@@ -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;
index 46406b2..aa2e79d 100644 (file)
@@ -63,6 +63,7 @@
                accesskey=""/>
        <button id="clip_button" disabled="true" command="sel_clip" label="Copy to Clipboard" />
        <button id="save_col_btn" command="save_columns" label="Save Columns" />
+       <checkbox id="strict_barcode" label="Strict Barcode" checked="false" persist="checked"/> 
        <spacer id="pcii3s" flex="1"/>
        <checkbox id="checkout_auto" persist="checked"
                label="&staff.patron_display.checkout.auto_print_label;" 
index be642f9..269eaf7 100644 (file)
@@ -340,6 +340,8 @@ circ.copy_status.prototype = {
        'test_barcode' : function(bc) {
                var obj = this;
                var good = util.barcode.check(bc);
+               var x = document.getElementById('strict_barcode');
+               if (x && x.checked != true) return true;
                if (good) {
                        return true;
                } else {
index 5a8b186..133f662 100644 (file)
                command="cmd_copy_status_export"
                accesskey=""/>
        <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/> 
+       <checkbox id="strict_barcode" label="Strict Barcode" checked="false" persist="checked"/> 
        <spacer flex="1"/>
 </hbox>
 
index 435ab23..763888b 100644 (file)
@@ -217,6 +217,8 @@ circ.in_house_use.prototype = {
        'test_barcode' : function(bc) {
                var obj = this;
                var good = util.barcode.check(bc);
+               var x = document.getElementById('strict_barcode');
+               if (x && x.checked != true) return true;
                if (good) {
                        return true;
                } else {
index 710eeee..b6907dc 100644 (file)
                        command="cmd_in_house_use_export"
                        accesskey=""/>
                <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/> 
+               <checkbox id="strict_barcode" label="Strict Barcode" checked="false" persist="checked"/> 
                <spacer id="pcii3s" flex="1"/>
                <button id="clip_button" disabled="true" command="sel_clip" label="Copy to Clipboard" />
                <button id="save_cols_btn" command="save_columns" label="Save Columns" />