webstaff: tweaks to transit list
authorGalen Charlton <gmc@esilibrary.com>
Mon, 17 Oct 2016 22:20:04 +0000 (18:20 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 22 Nov 2016 19:10:03 +0000 (14:10 -0500)
- filter out transits that have been received, thus matching
  previous XUL functionality
- remove the Receive Date/Time column, as it is superfluous
- display the time component of the Send Date/Time

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/circ/transits/t_list.tt2
Open-ILS/web/js/ui/default/staff/circ/transits/list.js

index 34b19c4..d6726bb 100644 (file)
@@ -48,8 +48,7 @@
   <eg-grid-field path='target_copy.call_number.record.simple_record.author' hidden></eg-grid-field>
   <eg-grid-field path='source.shortname' label="[% l('Source Library') %]"></eg-grid-field>
   <eg-grid-field path='dest.shortname' label="[% l('Destination Library') %]"></eg-grid-field>
-  <eg-grid-field path='source_send_time'></eg-grid-field>
-  <eg-grid-field path='dest_recv_time'></eg-grid-field>
+  <eg-grid-field path='source_send_time' dateformat='short''></eg-grid-field>
   <eg-grid-field path='hold_transit_copy.hold.hold_type'></eg-grid-field>
   <eg-grid-field path='hold_transit_copy.hold.request_time' hidden></eg-grid-field>
   <eg-grid-field path='hold_transit_copy.hold.capture_time' hidden></eg-grid-field>
index 9dd066d..fd19018 100644 (file)
@@ -104,7 +104,8 @@ function($scope , $q , $routeParams , $window , egCore , egTransits , egGridData
         var recv_index = 0;
 
         var filter = {
-            'source_send_time' : { 'between' : date_range() }
+            'source_send_time' : { 'between' : date_range() },
+            'dest_recv_time'   : null
         };
         if ($scope.transit_direction == 'to') { filter['dest'] = $scope.context_org.id(); }
         if ($scope.transit_direction == 'from') { filter['source'] = $scope.context_org.id(); }