Signed-off-by: a. bellenir <ab@grpl.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
<eg-grid-action handler="add_copies_to_bucket"
label="[% l('Add Items to Bucket') %]"></eg-grid-action>
+ <eg-grid-action handler="show_in_catalog"
+ label="[% l('Show in Catalog') %]"></eg-grid-action>
<eg-grid-action handler="make_copies_bookable"
label="[% l('Make Items Bookable') %]"></eg-grid-action>
<eg-grid-action handler="book_copies_now"
});
}
+ $scope.show_in_catalog = function(){
+ itemSvc.show_in_catalog(copyGrid.selectedItems());
+ }
+
if (copyId.length > 0) {
itemSvc.fetch(null,copyId).then(
function() {
});
}
+ service.show_in_catalog = function(copy_list){
+ angular.forEach(copy_list, function(copy){
+ window.open('/eg/opac/record/'+copy['call_number.record.id'], '_blank')
+ });
+ }
+
return service;
}])
.filter('string_pick', function() { return function(i){ return arguments[i] || ''; }; })