LP#1775466 remove some test cruft
authorBill Erickson <berickxx@gmail.com>
Tue, 15 May 2018 19:45:30 +0000 (15:45 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 6 Jun 2018 20:59:33 +0000 (16:59 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js

index 626052d..ef3944f 100644 (file)
@@ -34,27 +34,8 @@ angular.module('egCheckinApp', ['ngRoute', 'ui.bootstrap',
  * Manages checkin
  */
 .controller('CheckinCtrl',
-       ['$scope','$q','$window','$location', '$timeout','egCore',
-        'checkinSvc','egGridDataProvider','egCirc','egItem','eg2Net',
-        'eg2Store','ng2Title',
-function($scope , $q , $window , $location , $timeout , egCore , 
-         checkinSvc , egGridDataProvider , egCirc, itemSvc , eg2Net , 
-         eg2Store , ng2Title)  {
-
-    // TODO: TESTING
-    eg2Net.request('open-ils.actor', 'opensrf.system.echo', 'Hello, Ang2')
-    .subscribe(function(res) {console.log('eg2Net returned ' + res)});
-
-    ng2Title.setTitle('Checkin'); // TODO: TESTING
-
-    var testDialog = angular.element(document.querySelector('testHello'));
-    //var testDialog = angular.element();
-    //console.log(testDialog);
-    //console.log(testDialog.controller());
-    console.log(testDialog.controller());
-    console.log(testDialog.controller('eg2HelloWorld'));
-    //testDialog.controller('eg2ConfirmDialog').open();
-    //testDialog.controller('egConfirmDialog').open();
+       ['$scope','$q','$window','$location', '$timeout','egCore','checkinSvc','egGridDataProvider','egCirc', 'egItem',
+function($scope , $q , $window , $location , $timeout , egCore , checkinSvc , egGridDataProvider , egCirc, itemSvc)  {
 
     $scope.focusMe = true;
     $scope.checkins = checkinSvc.checkins;
@@ -68,7 +49,7 @@ function($scope , $q , $window , $location , $timeout , egCore ,
     $scope.grid_persist_key = $scope.is_capture ? 
         'circ.checkin.capture' : 'circ.checkin.checkin';
 
-    eg2Store.getItem('circ.checkin.strict_barcode')
+    egCore.hatch.getItem('circ.checkin.strict_barcode')
         .then(function(sb){ $scope.strict_barcode = sb });
 
     egCore.org.settings([
@@ -108,7 +89,7 @@ function($scope , $q , $window , $location , $timeout , egCore ,
 
     // set modifiers from stored preferences
     angular.forEach(modifiers, function(mod) {
-        eg2Store.getItem('eg.circ.checkin.' + mod)
+        egCore.hatch.getItem('eg.circ.checkin.' + mod)
         .then(function(val) { if (val) $scope.modifiers[mod] = true });
     });
 
@@ -117,10 +98,10 @@ function($scope , $q , $window , $location , $timeout , egCore ,
     $scope.toggle_mod = function(mod) {
         if ($scope.modifiers[mod]) {
             $scope.modifiers[mod] = false;
-            eg2Store.removeItem('eg.circ.checkin.' + mod);
+            egCore.hatch.removeItem('eg.circ.checkin.' + mod);
         } else {
             $scope.modifiers[mod] = true;
-            eg2Store.setItem('eg.circ.checkin.' + mod, true);
+            egCore.hatch.setItem('eg.circ.checkin.' + mod, true);
         }
     }
 
@@ -173,7 +154,7 @@ function($scope , $q , $window , $location , $timeout , egCore ,
             }
         }
 
-        eg2Store.setItem('circ.checkin.strict_barcode', $scope.strict_barcode);
+        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,