Comment 3 for bug 1665115

Revision history for this message
Jason Etheridge (phasefx) wrote :

Cesar, I think what we need here is for Long Overdue items to always be included in the sidebar Items Out tally, regardless of the Long Overdue setting referenced. So, basically, keep the stats.checkouts.total_out += Number(stats.checkouts.long_overdue); but lose the if (!egCore.env.aous['ui.circ.items_out.longoverdue'])

For reference, the XUL client does this for its running total in the summary sidebar:

robj.out
+ robj.overdue
+ (do_not_tally_claims_returned ? 0 : robj.claims_returned)
+ robj.long_overdue
+ (do_tally_lost ? robj.lost : 0)

Though it's using open-ils.actor.user.checked_out.count.authoritative more directly instead of open-ils.actor.user.opac.vital_stats.authoritative (which also calls the same method).