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=c99cb684fa40b3e668741913fc208e1f5923db74;p=Evergreen.git LP#1956619: use Angular holdings editor when accessing from item status and item buckets Signed-off-by: Jeff Davis Signed-off-by: Bill Erickson Signed-off-by: Michele Morgan --- 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 d7712c160d..7904ed6484 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 @@ -607,7 +607,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 df7a6c95a2..7dfafd14e9 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 @@ -751,7 +751,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!'); @@ -783,7 +784,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!');