LP 1779467: Fix SyntaxError: missing ) after argument list
authorJason Stephenson <jason@sigio.com>
Mon, 5 Nov 2018 21:38:48 +0000 (16:38 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 31 Jul 2019 15:32:39 +0000 (11:32 -0400)
Missing parenthesis in Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
caused the titular error when searching the catalog.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
LP 1779467: Fix typo in circ/renew/app.js.

Had copyies for copies in one location and this prevented marking an
item as Discard/Weed from working on the renew item interface.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/circ/renew/app.js

index 8bd06ad..c853cb8 100644 (file)
@@ -1675,22 +1675,22 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_discard(copy_list.map(function(cp) {
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_discard(copy_list.map(function(cp) {
-            return {id: cp.id(), barcode: cp.barcode()};}).then(function() {
-            holdinsSvcInst.fetchAgain().then(function() {
-                $scop.holdingsGridDataProvider.refresh();
+            return {id: cp.id(), barcode: cp.barcode()};})).then(function() {
+                holdingsSvcInst.fetchAgain().then(function() {
+                    $scope.holdingsGridDataProvider.refresh();
+                });
             });
             });
-        });
     }
 
     $scope.selectedHoldingsMissing = function () {
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_missing(copy_list.map(function(cp) {
     }
 
     $scope.selectedHoldingsMissing = function () {
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_missing(copy_list.map(function(cp) {
-            return {id: cp.id(), barcode: cp.barcode()};}).then(function() {
-            holdingsSvcInst.fetchAgain().then(function() {
-                $scope.holdingsGridDataProvider.refresh();
+            return {id: cp.id(), barcode: cp.barcode()};})).then(function() {
+                holdingsSvcInst.fetchAgain().then(function() {
+                    $scope.holdingsGridDataProvider.refresh();
+                });
             });
             });
-        });
     }
 
     $scope.selectedHoldingsCopyAlertsAdd = function() {
     }
 
     $scope.selectedHoldingsCopyAlertsAdd = function() {
index e4b7858..8666557 100644 (file)
@@ -183,7 +183,7 @@ function($scope , $window , $location , egCore , egGridDataProvider , egCirc) {
     }
 
     $scope.showMarkDiscard = function(items) {
     }
 
     $scope.showMarkDiscard = function(items) {
-        var copyies = [];
+        var copies = [];
         angular.forEach(items, function(item) {
             if (item.acp) copies.push(egCore.idl.toHash(item.acp));
         });
         angular.forEach(items, function(item) {
             if (item.acp) copies.push(egCore.idl.toHash(item.acp));
         });