label="[% l('Item Holds') %]"></eg-grid-action>
<eg-grid-action handler="showBibHolds" group="[% l('Show') %]"
label="[% l('Record Holds') %]"></eg-grid-action>
+ <eg-grid-action handler="print_labels" group="[% l('Show') %]"
+ label="[% l('Print Labels') %]"></eg-grid-action>
<eg-grid-action handler="selectedHoldingsDamaged" group="[% l('Mark') %]"
label="[% l('Item as Damaged') %]"></eg-grid-action>
});
}
+ $scope.print_labels = function() {
+ egCore.net.request(
+ 'open-ils.actor',
+ 'open-ils.actor.anon_cache.set_value',
+ null, 'print-labels-these-copies', {
+ copies : gatherSelectedHoldingsIds()
+ }
+ ).then(function(key) {
+ if (key) {
+ var url = egCore.env.basePath + 'cat/printlabels/' + key;
+ $timeout(function() { $window.open(url, '_blank') });
+ } else {
+ alert('Could not create anonymous cache key!');
+ }
+ });
+ }
+
var spawnHoldingsEdit = function (hide_vols,hide_copies){
angular.forEach(gatherSelectedRecordIds(), function (r) {
egCore.net.request(