From: Mike Rylander Date: Fri, 14 Aug 2015 21:14:12 +0000 (-0400) Subject: webstaff: Teach Holdings View how to open the Vol/Copy editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4173de9db0e3f4c808892e1aea09cdc8bf4ad607;p=evergreen%2Fmasslnc.git webstaff: Teach Holdings View how to open the Vol/Copy editor Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- 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 1d9dfd8c9b..4220630a04 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -45,6 +45,8 @@ label="[% l('Item as Damaged') %]"> + 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 8658bf68db..604a95530d 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 @@ -312,6 +312,21 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e return cp_id_list; } + $scope.selectedHoldingsVolCopyEdit = function (){ + egCore.net.request( + 'open-ils.actor', + 'open-ils.actor.anon_cache.set_value', + null, 'edit-these-copies', {record_id: $scope.record_id, copies: gatherSelectedHoldingsIds() } + ).then(function(key) { + if (key) { + var url = egCore.env.basePath + 'cat/volcopy/' + key; + $timeout(function() { $window.open(url, '_blank') }); + } else { + alert('Could not create anonymous cache key!'); + } + }); + } + $scope.selectedHoldingsItemStatus = function (){ var url = egCore.env.basePath + 'cat/item/search/' + gatherSelectedHoldingsIds().join(',') $timeout(function() { $window.open(url, '_blank') });