From: Mike Rylander Date: Sun, 29 Apr 2018 22:56:38 +0000 (-0400) Subject: LP#1737812: Simplify holdings tranfser options X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=77ed2fef1f9ff9abdf5db5a0ae40265969922f75;p=evergreen%2Fpines.git 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 --- 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 8d61d96000..6b762fae3c 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); }