From: Jeff Davis Date: Fri, 21 Jan 2022 22:17:25 +0000 (-0800) Subject: LP#1956619: use Angular holdings editor when accessing from item status and item... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fjeffdavis%2Flp1956619-use-ang-holdings-editor;p=working%2FEvergreen.git LP#1956619: use Angular holdings editor when accessing from item status and item buckets Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js index 5ef5c286a6..943237ccbb 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js @@ -593,7 +593,8 @@ function($scope, $q , $routeParams , $timeout , $window , $uibModal , bucketSvc } ).then(function(key) { if (key) { - var url = egCore.env.basePath + 'cat/volcopy/' + key; + var tab = (hide_vols === true) ? 'attrs' : 'holdings'; + var url = '/eg2/staff/cat/volcopy/' + tab + '/session/ ' + key; $timeout(function() { $window.open(url, '_blank') }); } else { alert('Could not create anonymous cache key!'); 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 56d82bfec4..ee41fd09c5 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 @@ -749,7 +749,8 @@ function(egCore , egOrg , egCirc , $uibModal , $q , $timeout , $window , ngToast } ).then(function(key) { if (key) { - var url = egCore.env.basePath + 'cat/volcopy/' + key; + var tab = (hide_vols === true) ? 'attrs' : 'holdings'; + var url = '/eg2/staff/cat/volcopy/' + tab + '/session/ ' + key; $timeout(function() { $window.open(url, '_blank') }); } else { alert('Could not create anonymous cache key!'); @@ -781,7 +782,8 @@ function(egCore , egOrg , egCirc , $uibModal , $q , $timeout , $window , ngToast hide_copies : hide_copies }).then(function(key) { if (key) { - var url = egCore.env.basePath + 'cat/volcopy/' + key; + var tab = (hide_vols === true) ? 'attrs' : 'holdings'; + var url = '/eg2/staff/cat/volcopy/' + tab + '/session/ ' + key; $timeout(function() { $window.open(url, '_blank') }); } else { alert('Could not create anonymous cache key!');