<eg-grid-field path="target_copy.call_number.suffix.label" label="[% l('CN Suffix') %]" hidden></eg-grid-field>
<eg-grid-field path="target_copy.call_number.record.*" hidden></eg-grid-field>
<eg-grid-field path="target_copy.call_number.record.wide_display_entry.*" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Total Notices') %]" path='action_trigger_event_count'></eg-grid-field>
+ <eg-grid-field label="[% l('Last Notice') %]" path='action_trigger_latest_event_date' dateformat="short" datatype="timestamp"></eg-grid-field>
</eg-grid>
</div>
})
}
- patronSvc.items_out.push(circ); // toss it into the cache
-
- // We fetch all circs for client-side sorting, but only
- // notify the caller for the page of requested circs.
- if (rendered++ >= offset && rendered <= count)
- deferred.notify(circ);
+ // call open-ils to get overdue notice count and Last notice date
+
+ egCore.net.request(
+ 'open-ils.actor',
+ 'open-ils.actor.user.itemsout.notices',
+ egCore.auth.token(), circ.id(), $scope.patron_id)
+ .then(function(notice){
+ if (notice.numNotices){
+ circ.action_trigger_event_count = notice.numNotices;
+ circ.action_trigger_latest_event_date = notice.lastDt;
+ }
+ patronSvc.items_out.push(circ);
+ });
+
+ if (rendered++ >= offset && rendered <= count){ deferred.notify(circ) };
});
return deferred.promise;