});
}
+ service.print_spine_labels = function(copies){
+
+ // delete me:
+ console.warn("Print Spine Labels is not implemented yet! See LP 1704873");
+ $timeout(function() { $window.open(egCore.env.basePath, '_blank') });
+
+ // TODO : LP# 1704873 needs to be in master
+ // for the below to work. Commented out until then
+
+ /*
+ egCore.net.request(
+ 'open-ils.actor',
+ 'open-ils.actor.anon_cache.set_value',
+ null, 'print-labels-these-copies', {
+ copies : service.gatherSelectedHoldingsIds(copies)
+ }
+ ).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!');
+ }
+ });
+ */
+ }
+
return service;
}])