<eg-grid
id-field="id"
- features="-sort,-multisort"
+ features="clientsort"
items-provider="gridDataProvider"
persist-key="circ.patron.holds"
dateformat="{{$root.egDateAndTimeFormat}}">
</a>
</eg-grid-field>
- <eg-grid-field label="[% l('Patron Barcode') %]" hidden>{{item.patron_barcode}}</eg-grid-field>
- <eg-grid-field label="[% l('Patron alias') %]" hidden>{{item.patron_alias}}</eg-grid-field>
+ <eg-grid-field label="[% l('Patron Barcode') %]" path="patron_barcode" hidden>{{item.patron_barcode}}</eg-grid-field>
+ <eg-grid-field label="[% l('Patron alias') %]" path="patron_alias" hidden>{{item.patron_alias}}</eg-grid-field>
<eg-grid-field label="[% l('Request Date') %]" path='hold.request_time' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Capture Date') %]" path='hold.capture_time' datatype="timestamp"></eg-grid-field>
<eg-grid-field label="[% l('Available Date') %]" path='hold.shelf_time' datatype="timestamp"></eg-grid-field>
$scope.gridDataProvider = provider;
function fetchHolds(offset, count) {
- var ids = patronSvc.hold_ids.slice(offset, offset + count);
- return egHolds.fetch_holds(ids).then(null, null,
+ //var ids = patronSvc.hold_ids.slice(offset, offset + count); // we're going to just fetch all the holds up front
+ return egHolds.fetch_holds(patronSvc.hold_ids).then(null, null,
function(hold_data) {
patronSvc.holds.push(hold_data);
return hold_data;