lp1735828 Copy Bucket multi show status
authorMike Risher <mrisher@catalyte.io>
Thu, 20 Feb 2020 23:07:30 +0000 (23:07 +0000)
committerJane Sandberg <sandbej@linnbenton.edu>
Sat, 11 Jul 2020 12:38:58 +0000 (05:38 -0700)
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>
Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/staff/cat/bucket/copy/t_view.tt2
Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js

index adc1f50..98bf38b 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('Open in Item Status') %]"></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..e7aeccd 100644 (file)
@@ -615,6 +615,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.requestItems = function() {
         var copy_list = $scope.gridControls.selectedItems().map(
             function (i) {