From 82d6029cbfd0614f211ca464ed75be3e03b20048 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 5 Aug 2016 14:16:03 -0400 Subject: [PATCH] add add/acknowledge copy alert actions to holdings view menu Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 | 4 ++++ Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 11 +++++++++++ 2 files changed, 15 insertions(+) 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..138fb83d97 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -71,6 +71,8 @@ label="[% l('Copies') %]"> + @@ -80,6 +82,8 @@ label="[% l('Volumes and Copies') %]"> + 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 1f1ac58691..c6d90ece64 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 @@ -1431,6 +1431,17 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e }); } + $scope.selectedHoldingsCopyAlertsAdd = function() { + egCirc.add_copy_alerts(gatherSelectedHoldingsIds()).then(function() { + // no need to refresh grid + }); + } + $scope.selectedHoldingsCopyAlertsManage = function() { + egCirc.manage_copy_alerts(gatherSelectedHoldingsIds()).then(function() { + // no need to refresh grid + }); + } + $scope.attach_to_peer_bib = function() { var copy_list = gatherSelectedHoldingsIds(); if (copy_list.length == 0) return; -- 2.11.0