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=1487eaeb196129480f1ba23090008533e25aa4d4;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 e34cc1a1de..f803d2501a 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!');