From b0e1e2c9630496d911257428fc9592066610fe5a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 29 Sep 2015 21:45:51 +0000 Subject: [PATCH] webstaff: record buckets: implement show selected in catalog action This replaces the show all in catalog action. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 b/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 index c1b2085090..421333b927 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 @@ -10,8 +10,8 @@ [% INCLUDE 'staff/cat/bucket/record/t_grid_menu.tt2' %] - + 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 f07bea70fb..3ac7a5c33c 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 @@ -607,14 +607,13 @@ function($scope, $q , $routeParams, bucketSvc, egCore, $window, }); } - $scope.showAllRecords = function() { - // TODO: maybe show selected would be better? + $scope.showRecords = function(records) { // TODO: probably want to set a limit on the number of // new tabs one could choose to open at once - angular.forEach(bucketSvc.currentBucket.items(), function(rec) { + angular.forEach(records, function(rec) { var url = egCore.env.basePath + 'cat/catalog/record/' + - rec.target_biblio_record_entry(); + rec.id; $timeout(function() { $window.open(url, '_blank') }); }); } -- 2.11.0