Web Client: Items Out does not include Long Overdue items

Bug #1665115 reported by Michele Morgan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
2.12
Fix Released
Medium
Unassigned

Bug Description

Evergreen 2.11
Evergreen Master

With the ou setting ui.circ.items_out.longoverdue set to "5", (i.e. include Long Overdue in Items Out)

The web client items out count in Patron Summary and Items Out tab does not include the Long Overdue items, though they do display properly according to the option.

It looks like this was addressed in bug 1526159, but the count is inaccurate in current master.

To reproduce:

- Set the library setting "Items Out Long-Overdue display setting" to 5
- Mark a checked out item Long Overdue by entering the item's barcode in Test mode for the stock Mark Long Overdue action trigger.
- Retrieve the patron in the web client.

The patron's long overdue item will display in items out, but will not be included in the count

Screenshot attached.

Revision history for this message
Michele Morgan (mmorgan) wrote :
Kathy Lussier (klussier)
Changed in evergreen:
status: New → Confirmed
Cesar V (cesardv)
Changed in evergreen:
assignee: nobody → Cesar V (cesardv)
Revision history for this message
Cesar V (cesardv) wrote :
tags: added: needstest
tags: added: pullrequest
Changed in evergreen:
assignee: Cesar V (cesardv) → nobody
Changed in evergreen:
assignee: nobody → Jason Etheridge (phasefx)
tags: added: needsrepatch
removed: pullrequest
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).

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

hrmm, but see LP1440148

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

Okay, so the XUL client definitely includes long overdue in all total checkout tallies, whether the long overdue xact is showing up in an Items Out list or not (based on a library setting). But in the OPAC, My Account, long overdue was removed from patron-visible tallies (and I guess is not listed in checked out lists). The web staff client is using this same API for its data.

IMO, at least to staff, long overdue items should be presented as being "out", but I'm not sure. I'm also not sure why it was removed from the patron view. In my contrived test data, in My Account, I see my long overdue item as accruing fines, but it's not listed as being checked out. It's just showing up in the fines section.

What do folks think?

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

I guess when an item normally becomes long overdue, it stops accruing fines. I can understand how it might be deemed to no longer be circulating... :( Still not a fan. What do we want to see here?

Revision history for this message
Kathy Lussier (klussier) wrote :

Hi Jason,

I agree with you that the ui.circ.items_out.longoverdue is unrelated to the Items Out tally. For Lost and Claims Returned, we have distinct settings to determine whether they should be included in the lump sum tallies. We don't have a similar setting for long overdue, possibly because sites using Long Overdue checkouts have been happy with the current behavior?

I would go with adding long overdue to the Items Out tally in all circumstances. If people do want a setting, then I think it should be a new lump sum tally setting to make it consistent with how we handle Lost and Claims Returned. But that would be a new feature, not a bug fix.

I also think Long Overdue should display in the patron account too, but I suppose that's a separate issue that should be addressed through bug 1463907.

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

Thanks Kathy!

Revision history for this message
Michele Morgan (mmorgan) wrote :

I second everything Kathy said.

Revision history for this message
Cesar V (cesardv) wrote :

Jason, I've (force) updated the original branch I pushed. Can you check it out?

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

Cesar, looks to good me, thanks! Pushed signed commit to collab/phasefx/webstaff-bugs

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=commitdiff;h=305b4396c5252769897fce3494769fc63cb6a2f0

Changed in evergreen:
milestone: none → 3.0-alpha
status: Confirmed → In Progress
tags: added: pullrequest
removed: needsrepatch needstest
Kathy Lussier (klussier)
Changed in evergreen:
status: In Progress → Triaged
assignee: Jason Etheridge (phasefx) → nobody
assignee: nobody → Kathy Lussier (klussier)
Revision history for this message
Kathy Lussier (klussier) wrote :

Works for me. Thank you Cesar and Jason! Merged to master and release 2.12

Changed in evergreen:
assignee: Kathy Lussier (klussier) → nobody
status: Triaged → Fix Committed
importance: Undecided → Medium
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.