From: Jane Sandberg Date: Mon, 8 Apr 2019 21:55:07 +0000 (-0700) Subject: LP1816475: Fix book action in Holdings View X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9adcb7fe64177d195a3763a278dbf830347bd0d9;p=working%2FEvergreen.git LP1816475: Fix book action in Holdings View Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index ccaa14f8fe..54cc56695b 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -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() {