From 0c20e7aea97bbc764adc95d88002ff61b87d7104 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 6 Jul 2018 15:33:05 -0400 Subject: [PATCH] LP#1773417: Use CN owning lib when adding copies This defaults the owner of new copies added to existing call numbers to the owning lib of the call number, rather than the workstation library. Signed-off-by: Mike Rylander Signed-off-by: Dan Wells --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 40b5d0d9e9..bec5f2bc94 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1306,7 +1306,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , /* data.raw data structure looks like this: * [{ * callnumber : $cn_id, // optional, to add a copy to a cn - * owner : $org, // optional, defaults to ws_ou + * owner : $org, // optional, defaults to cn.owning_lib or ws_ou * label : $cn_label, // optional, to supply a label on a new cn * barcode : $cp_barcode // optional, to supply a barcode on a new cp * fast_add : boolean // optional, to specify whether this came @@ -1325,7 +1325,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , .then(function(cn) { var cp = new itemSvc.generateNewCopy( cn, - proto.owner || egCore.auth.user().ws_ou(), + proto.owner || cn.owning_lib(), $scope.is_fast_add, ((!$scope.only_vols) ? true : false) ); @@ -1380,7 +1380,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , // requirement var cp = new itemSvc.generateNewCopy( cn, - proto.owner || egCore.auth.user().ws_ou(), + proto.owner || cn.owning_lib(), $scope.is_fast_add, true ); -- 2.11.0