LP1816475: Fix book action in Holdings View
authorJane Sandberg <sandbej@linnbenton.edu>
Mon, 8 Apr 2019 21:55:07 +0000 (14:55 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 17 Apr 2019 20:41:53 +0000 (13:41 -0700)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index ccaa14f..54cc566 100644 (file)
@@ -878,8 +878,8 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         });
     }
 
-    $scope.book_copies_now = function(barcode) {
-        location.href = "/eg2/staff/booking/create_reservation/for_resource/" + barcode;
+    $scope.book_copies_now = function(items) {
+        location.href = "/eg2/staff/booking/create_reservation/for_resource/" + items[0]['barcode'];
     }
 
     $scope.requestItems = function() {