From: Galen Charlton Date: Fri, 2 Sep 2016 21:51:03 +0000 (-0400) Subject: add copy alert actions to item status page in list view X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9aab1bbc5d0f3ded4943f3cae9fd86ef76d2b3c6;p=working%2FEvergreen.git add copy alert actions to item status page in list view Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index eb584c95e5..f39878e816 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -46,6 +46,8 @@ label="[% l('Items') %]"> + @@ -55,6 +57,8 @@ label="[% l('Volumes and Items') %]"> + diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index c954a8e5af..fbc3617d18 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -443,6 +443,26 @@ function($scope , $q , $routeParams , $location , $timeout , $window , egCore , itemSvc.spawnHoldingsAdd(copyGrid.selectedItems(),false,true); } + $scope.selectedHoldingsCopyAlertsAdd = function(items) { + var copy_ids = []; + angular.forEach(items, function(item) { + if (item.id) copy_ids.push(item.id); + }); + egCirc.add_copy_alerts(copy_ids).then(function() { + // update grid items? + }); + } + + $scope.selectedHoldingsCopyAlertsEdit = function(items) { + var copy_ids = []; + angular.forEach(items, function(item) { + if (item.id) copy_ids.push(item.id); + }); + egCirc.manage_copy_alerts(copy_ids).then(function() { + // update grid items? + }); + } + $scope.showBibHolds = function () { angular.forEach(gatherSelectedRecordIds(), function (r) { var url = egCore.env.basePath + 'cat/catalog/record/' + r + '/holds';