label="[% l('Items') %]"></eg-grid-action>
<eg-grid-action handler="selectedHoldingsVolCopyAdd" group="[% l('Add') %]"
label="[% l('Volumes and Items') %]"></eg-grid-action>
+ <eg-grid-action handler="selectedHoldingsCopyAlertsAdd" group="[% l('Add') %]"
+ label="[% l('Copy Alerts') %]"></eg-grid-action>
<eg-grid-action handler="selectedHoldingsVolEdit" group="[% l('Edit') %]"
label="[% l('Volumes') %]"></eg-grid-action>
label="[% l('Volumes and Items') %]"></eg-grid-action>
<eg-grid-action handler="replaceBarcodes" group="[% l('Edit') %]"
label="[% l('Replace Barcodes') %]"></eg-grid-action>
+ <eg-grid-action handler="selectedHoldingsCopyAlertsEdit" group="[% l('Edit') %]"
+ label="[% l('Manage Copy Alerts') %]"></eg-grid-action>
<eg-grid-action handler="changeItemOwningLib" group="[% l('Transfer') %]"
label="[% l('Items to Previously Marked Library') %]"></eg-grid-action>
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';