LP#1402797 Make Strict Barcode checkbox sticky upon actual use
authorMike Rylander <mrylander@gmail.com>
Sun, 1 Feb 2015 20:55:39 +0000 (15:55 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:07 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
Open-ILS/web/js/ui/default/staff/circ/renew/app.js

index dd3fe8f..d0407c6 100644 (file)
@@ -49,6 +49,9 @@ function($scope , $q , $window , $location , egCore , checkinSvc , egGridDataPro
     $scope.grid_persist_key = $scope.is_capture ? 
         'circ.checkin.capture' : 'circ.checkin.checkin';
 
+    egCore.hatch.getItem('circ.checkin.strict_barcode')
+        .then(function(sb){ $scope.strict_barcode = sb });
+
     egCore.org.settings([
         'ui.circ.suppress_checkin_popups' // add other settings as needed
     ]).then(function(set) {
@@ -143,6 +146,7 @@ function($scope , $q , $window , $location , egCore , checkinSvc , egGridDataPro
             }
         }
 
+        egCore.hatch.setItem('circ.checkin.strict_barcode', $scope.strict_barcode);
         var options = {
             check_barcode : $scope.strict_barcode,
             no_precat_alert : $scope.modifiers.no_precat_alert,
index 1dff72b..9806d8f 100644 (file)
@@ -36,6 +36,9 @@ function($scope , $q , $modal , $routeParams , egCore , egUser , patronSvc ,
 
     $scope.using_hatch = egCore.hatch.usingHatch();
 
+    egCore.hatch.getItem('circ.checkout.strict_barcode')
+        .then(function(sb){ $scope.strict_barcode = sb });
+
     // avoid multiple, in-flight attempts on the same barcode
     var pending_barcodes = {};
 
@@ -110,6 +113,7 @@ function($scope , $q , $modal , $routeParams , egCore , egUser , patronSvc ,
         $scope.checkouts.unshift(row_item);
         $scope.gridDataProvider.refresh();
 
+        egCore.hatch.setItem('circ.checkout.strict_barcode', $scope.strict_barcode);
         var options = {check_barcode : $scope.strict_barcode};
 
         egCirc.checkout(params, options).then(
index c64c66c..85ed294 100644 (file)
@@ -32,6 +32,8 @@ angular.module('egRenewApp',
        ['$scope','$window','$location','egCore','egGridDataProvider','egCirc',
 function($scope , $window , $location , egCore , egGridDataProvider , egCirc) {
 
+    egCore.hatch.getItem('circ.renew.strict_barcode')
+        .then(function(sb){ $scope.strict_barcode = sb });
     $scope.focusBarcode = true;
     $scope.renewals = [];
 
@@ -90,6 +92,7 @@ function($scope , $window , $location , egCore , egGridDataProvider , egCirc) {
         $scope.renewals.unshift(row_item);
         $scope.gridDataProvider.refresh();
 
+        egCore.hatch.setItem('circ.renew.strict_barcode', $scope.strict_barcode);
         var options = {check_barcode : $scope.strict_barcode};
 
         egCirc.renew(params, options).then(