From 995dc199811f843e53fab1b7abc876d1917920a7 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 2 Sep 2016 17:51:03 -0400 Subject: [PATCH] add copy alert actions to item status page in list view Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 4 ++++ Open-ILS/web/js/ui/default/staff/cat/item/app.js | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) 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 9755360308..56dcc218c1 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -43,6 +43,8 @@ label="[% l('Items') %]"> + @@ -52,6 +54,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 e416c597a1..51678c4169 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 @@ -801,6 +801,26 @@ function($scope , $q , $routeParams , $location , $timeout , $window , egCore , $scope.selectedHoldingsVolCopyAdd = function () { spawnHoldingsAdd(true,false) } $scope.selectedHoldingsCopyAdd = function () { spawnHoldingsAdd(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'; -- 2.11.0