label="[% l('Copies') %]"></eg-grid-action>
<eg-grid-action handler="selectedHoldingsVolCopyAdd" group="[% l('Add') %]"
label="[% l('Volumes and Copies') %]"></eg-grid-action>
+ <eg-grid-action handler="selectedHoldingsCopyAlertsAdd" group="[% l('Add') %]" disabled="vols_not_shown"
+ 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 Copies') %]"></eg-grid-action>
<eg-grid-action handler="replaceBarcodes" group="[% l('Edit') %]"
label="[% l('Replace Barcodes') %]"></eg-grid-action>
+ <eg-grid-action handler="selectedHoldingsCopyAlertsManage" group="[% l('Edit') %]"
+ label="[% l('Acknowledge Copy Alerts') %]"></eg-grid-action>
<eg-grid-action handler="selectedHoldingsEmptyVolCopyDelete" group="[% l('Delete') %]" disabled="vols_not_shown"
label="[% l('Empty Volumes') %]"></eg-grid-action>
});
}
+ $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;