add limit and sorting to transit list fetch
authorGalen Charlton <gmc@esilibrary.com>
Tue, 25 Oct 2016 18:17:54 +0000 (14:17 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 22 Nov 2016 19:10:04 +0000 (14:10 -0500)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/circ/transits/list.js

index 6a876b4..e11a77a 100644 (file)
@@ -246,7 +246,10 @@ function($scope , $q , $routeParams , $window , egCore , egTransits , egGridData
                     'ahr' : ['usr'],
                     'au' : ['card']
                 },
-                'select' : { 'bre' : ['id'] }
+                'select' : { 'bre' : ['id'] },
+                order_by : { atc : 'source_send_time' },
+                limit  : count,
+                offset : offset,
             }
         ).then(
             deferred.resolve, null,