From ad10ddb1e690af8ae3a3049748972bb9873f7c50 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 6 Dec 2018 16:42:49 -0800 Subject: [PATCH] LP1805856: Open records in new tabs Catalogers have given the feedback that it's very helpful to have certain records open in a new tab after they perform certain tasks. This commit opens the relevant records in a new tab in the following circumstances: 1) Cataloging > Z39.50 > Import > Go to record (previously opened in the existing tab) 2) Cataloging > Z39.50 > Overlay > Overlay (previously did not open the overlaid record at all) 3) Cataloging > Record Buckets > Merge (previously opened the lead record in the existing tab) Signed-off-by: Jane Sandberg Signed-off-by: Jason Boyer Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js | 3 +-- Open-ILS/web/js/ui/default/staff/cat/z3950/app.js | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js index 4637f00431..59a2facaa3 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js @@ -699,8 +699,7 @@ function($scope, $q , $routeParams, bucketSvc, egCore, $window, args.lead_id, args.records.map(function(val) { return val.id; }) ).then(function() { - $window.location.href = - egCore.env.basePath + 'cat/catalog/record/' + args.lead_id; + $window.location.open(egCore.env.basePath + 'cat/catalog/record/' + args.lead_id); }); }); }); diff --git a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js index 2e67eea345..b524797630 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js @@ -251,9 +251,7 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi egCore.strings.GO_TO_RECORD, egCore.strings.GO_BACK ).result.then(function() { - // NOTE: $location.path('/cat/catalog/record/' + result.id()) did not work - // for some reason - $window.location.href = egCore.env.basePath + 'cat/catalog/record/' + result.id(); + $window.open(egCore.env.basePath + 'cat/catalog/record/' + result.id()); }); } } @@ -452,6 +450,7 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi $scope.local_overlay_target = 0; egCore.hatch.removeLocalItem('eg.cat.marked_overlay_record'); console.debug('overlay complete, target removed'); + $window.open(egCore.env.basePath + 'cat/catalog/record/' + overlay_target); } ); }); -- 2.43.2