$scope.gridDataProvider = provider;
function fetchHolds(offset, count) {
- //var ids = patronSvc.hold_ids.slice(offset, offset + count); // we're going to just fetch all the holds up front
+ // TODO: LP#1697954 Fetch all holds on grid render to support
+ // client-side sorting. Migrate to server-side sorting to avoid
+ // the need for fetching all items.
+
+ // we're going to just fetch all the holds up front
+ //var ids = patronSvc.hold_ids.slice(offset, offset + count);
return egHolds.fetch_holds(patronSvc.hold_ids).then(null, null,
function(hold_data) {
patronSvc.holds.push(hold_data);
// fields on the bre to select. More may be needed.
// note that fleshed fields are explicitly selected.
select : { bre : ['id'] },
+ // TODO: LP#1697954 Fetch all circs on grid render
+ // to support client-side sorting. Migrate to server-side
+ // sorting to avoid the need for fetching all items.
//limit : count,
//offset : offset,
// we need an order-by to support paging
return egCore.pcrud.search('ancc', {id : id_list},
{ flesh : 1,
flesh_fields : {ancc : ['item_type','staff']},
+ // TODO: LP#1697954 Fetch all circs on grid render
+ // to support client-side sorting. Migrate to server-side
+ // sorting to avoid the need for fetching all items.
//limit : count,
//offset : offset,
// we need an order-by to support paging