From b19a728dbc515dde495174a5c4fb306c42af0291 Mon Sep 17 00:00:00 2001 From: "a. bellenir" Date: Mon, 4 Jun 2018 19:41:55 -0400 Subject: [PATCH] LP#1773434 missing option to "Show in Catalog" Signed-off-by: a. bellenir Signed-off-by: Garry Collum Signed-off-by: Chris Sharp --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 2 ++ Open-ILS/web/js/ui/default/staff/cat/item/app.js | 4 ++++ Open-ILS/web/js/ui/default/staff/circ/services/item.js | 6 ++++++ 3 files changed, 12 insertions(+) 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] || ''; }; }) -- 2.43.2