From e2c10c4895f44ded8312b025c7f25e1ad46ad2d6 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Sun, 29 Apr 2018 18:56:38 -0400 Subject: [PATCH] LP#1737812: Simplify holdings tranfser options Instead of providing direct actions for transfer of library, or record, or both, have just one volume transfer option that Does the Right Thing (tm). Signed-off-by: Mike Rylander Signed-off-by: Jason Stephenson Signed-off-by: Dan Wells --- .../src/templates/staff/cat/catalog/t_holdings.tt2 | 11 ++++++++++- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 10 ++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) 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 b89a93a31d..a6f269d209 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -49,8 +49,10 @@ label="[% l('Request Items') %]"> + @@ -95,14 +97,21 @@ + + + label="[% l('Volumes to Previously Marked Destination') %]"> + + + 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 6bc7c89543..4e207eaf4f 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 @@ -445,6 +445,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e ngToast.create(egCore.strings.MARK_VOL_TARGET); $scope.current_voltransfer_target = $scope.record_id; egCore.hatch.setLocalItem('eg.cat.marked_volume_transfer_record',$scope.record_id); + egCore.hatch.removeLocalItem('eg.cat.volume_transfer_target'); }; $scope.markOverlay = function () { @@ -1333,6 +1334,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e } $scope.markLibAsVolTarget = function() { + var recId = $scope.record_id; return $uibModal.open({ templateUrl: './cat/catalog/t_choose_vol_target_lib', animation: true, @@ -1348,6 +1350,10 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e 'eg.cat.volume_transfer_target', org.id() ); + egCore.hatch.setLocalItem( + 'eg.cat.marked_volume_transfer_record', + recId + ); $uibModalInstance.close(); } $scope.cancel = function($event) { @@ -1362,6 +1368,10 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e 'eg.cat.volume_transfer_target', $scope.holdingsGridControls.selectedItems()[0].owner_id ); + egCore.hatch.setLocalItem( + 'eg.cat.marked_volume_transfer_record', + $scope.record_id + ); ngToast.create(egCore.strings.MARK_VOL_TARGET); } -- 2.43.2