webstaff: add view/place orders action to holdings grid
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 7 Feb 2017 17:56:43 +0000 (12:56 -0500)
committerKathy Lussier <klussier@masslnc.org>
Sat, 18 Feb 2017 18:31:31 +0000 (13:31 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index bd618ac..4a5181e 100644 (file)
@@ -37,6 +37,8 @@
       label="[% l('Add Items to Bucket') %]"></eg-grid-action>
     <eg-grid-action handler="requestItems"
       label="[% l('Request Items') %]"></eg-grid-action>
+    <eg-grid-action handler="view_place_orders"
+      label="[% l('View/Place Orders') %]"></eg-grid-action>
     <eg-grid-action handler="attach_to_peer_bib"
       label="[% l('Link as Conjoined to Previously Marked Bib Record') %]"></eg-grid-action>
     <eg-grid-action handler="markLibAsVolTarget"
index 0a1c01c..3ab19cc 100644 (file)
@@ -703,6 +703,12 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         });
     }
 
+    $scope.view_place_orders = function() {
+        if (!$scope.record_id) return;
+        var url = egCore.env.basePath + 'acq/legacy/lineitem/related/' + $scope.record_id + '?target=bib';
+        $timeout(function() { $window.open(url, '_blank') });
+    }
+
     $scope.replaceBarcodes = function() {
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;