From: a. bellenir Date: Mon, 4 Jun 2018 23:41:55 +0000 (-0400) Subject: LP#1773434 missing option to "Show in Catalog" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b19a728dbc515dde495174a5c4fb306c42af0291;p=evergreen%2Fequinox.git LP#1773434 missing option to "Show in Catalog" Signed-off-by: a. bellenir Signed-off-by: Garry Collum Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index 1d250f807c..361c997eb8 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -10,6 +10,8 @@ + 0) { itemSvc.fetch(null,copyId).then( function() { diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/item.js b/Open-ILS/web/js/ui/default/staff/circ/services/item.js index 6fab179372..9ac1215510 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/item.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/item.js @@ -976,6 +976,12 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog }); } + 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] || ''; }; })