From: Jason Etheridge Date: Tue, 11 Apr 2017 18:32:38 +0000 (-0400) Subject: webstaff: add Print Labels to Holdings View X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9cbf6861f75cee92105fdbaf2816e0fe866daca8;p=working%2FEvergreen.git webstaff: add Print Labels to Holdings View Signed-off-by: Jason Etheridge --- 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 c7247c7cfb..555ce6c741 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -57,6 +57,8 @@ label="[% l('Triggered Events') %]"> + 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 531dd74c82..c02c7831d3 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 @@ -1414,6 +1414,23 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e ); } + $scope.selectedHoldingsPrintLabels = function() { + egCore.net.request( + 'open-ils.actor', + 'open-ils.actor.anon_cache.set_value', + null, 'print-labels-these-copies', { + copies : gatherSelectedHoldingsIds() + } + ).then(function(key) { + if (key) { + var url = egCore.env.basePath + 'cat/printlabels/' + key; + $timeout(function() { $window.open(url, '_blank') }); + } else { + alert('Could not create anonymous cache key!'); + } + }); + } + $scope.selectedHoldingsDamaged = function () { egCirc.mark_damaged(gatherSelectedHoldingsIds()).then(function() { holdingsSvcInst.fetchAgain().then(function() {