From 5435c0ec37d218ffeb59a5bc84b31d9a2f644af5 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 31 Mar 2016 16:47:02 -0400 Subject: [PATCH] LP#1570091: webstaff: fix transfer Volumes to Previously Marked Library Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 index 28bb55e753..bde7ca2961 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -83,7 +83,7 @@ - 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 098cabf5a9..a635b9ca78 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 @@ -1090,7 +1090,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e }); } - $scope.transferVolumes = function (new_record){ + function transferVolumes(new_record){ var xfer_target = egCore.hatch.getLocalItem('eg.cat.volume_transfer_target'); if (xfer_target) { @@ -1116,10 +1116,14 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e } + $scope.transferVolumesToLibrary = function() { + transferVolumes(); + } + $scope.transferVolumesToRecordAndLibrary = function() { var target_record = egCore.hatch.getLocalItem('eg.cat.marked_volume_transfer_record'); if (!target_record) return; - $scope.transferVolumes(target_record); + transferVolumes(target_record); } // this "transfers" selected copies to a new owning library, -- 2.43.2