lp1735828 Copy Bucket multi show status
authorMike Risher <mrisher@catalyte.io>
Tue, 21 Jan 2020 22:39:05 +0000 (22:39 +0000)
committerMike Risher <mrisher@catalyte.io>
Tue, 21 Jan 2020 22:39:05 +0000 (22:39 +0000)
Revise the web client so that when one is in the copy bucket one can
select multiple entries and do "show status" on all of them.

Signed-off-by: Mike Risher <mrisher@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2
modified:   Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js

Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2
Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js

index 5eb522c..7b5106b 100644 (file)
@@ -18,6 +18,8 @@
     handler="requestItems"></eg-grid-action>
   <eg-grid-action label="[% l('Edit Selected Items') %]" group="[% l('Items') %]"
     handler="spawnHoldingsEdit"></eg-grid-action>
+  <eg-grid-action handler="showItems" group="[% l('Show') %]"
+    label="[% l('Show Selected Items') %]"></eg-grid-action>
   <eg-grid-action handler="print_labels" group="[% l('Show') %]"
     label="[% l('Print Labels') %]"></eg-grid-action>
   <eg-grid-action label="[% l('Transfer Selected Items to Marked Call Number') %]" group="[% l('Items') %]"
index bebb642..815f71c 100644 (file)
@@ -593,6 +593,15 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
         });
     }
 
+    $scope.showItems = function() {
+        var cp_list = []
+        angular.forEach($scope.gridControls.selectedItems(), function (i) {
+            cp_list.push(i.id);
+        })
+        var url = egCore.env.basePath + '/cat/item/search/' + cp_list.join();
+        $timeout(function() { $window.open(url, '_blank') });
+    }
+
     $scope.print_labels = function() {
         var cp_list = []
         angular.forEach($scope.gridControls.selectedItems(), function (i) {