Items repeated in tpac display, others not visible

Bug #1155769 reported by Michele Morgan
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
2.4
Won't Fix
Undecided
Unassigned
2.5
Fix Released
Medium
Unassigned

Bug Description

Evergreen 2.2.3, 2.3.3 using TPAC

In cases where there are multiple items attached to the same call number on a bib record, the catalog display can show some attached items twice and others not at all. This can be reproduced in the following catalogs:

http://catalog.noblenet.org
http://bark.cwmars.org
http://catalog.mvlc.org
http://acorn.biblio.org

The display bug happens when multiple copies, attached to the same call number record, display on multiple pages. A sample record is:

http://catalog.noblenet.org/eg/opac/record/3205462

in which nine items belonging to Beverly Main library are displayed across 2 pages. The total number of items displayed is correct across the pages, but two items from the first page are repeated on the second, so details on two items are not displayed at all.

The attached Word document includes screenshots that illustrate the problem.

It was fairly easy to find examples of this. Just look for bestsellers where libraries have multiple copies and page through until you see a single call number's copies span pages.

Tags: pullrequest
Revision history for this message
Michele Morgan (mmorgan) wrote :
Revision history for this message
Ben Shum (bshum) wrote :

I wonder if the ordering of items showing is changing due to activity, like checking in/out the copies which would alter the status and perhaps push up or down results until one navigated back or forth. So far I haven't been able to replicate this misbehavior in my catalog.

Marking bug status as incomplete pending more investigation.

Changed in evergreen:
status: New → Incomplete
Revision history for this message
Michele Morgan (mmorgan) wrote :

The repeated items do seem to change from day to day - probably due to activity - but seem fairly consistent within a session. Attached is a document with screenshots highlighting duplicate items in the following record:

http://acorn.biblio.org/eg/opac/record/2897144

Kathy Lussier (klussier)
Changed in evergreen:
status: Incomplete → Confirmed
Kyle Tomita (tomitakyle)
Changed in evergreen:
assignee: nobody → Kyle Tomita (tomitakyle)
Revision history for this message
Kyle Tomita (tomitakyle) wrote :
tags: added: pullrequest
Changed in evergreen:
assignee: Kyle Tomita (tomitakyle) → nobody
Kathy Lussier (klussier)
Changed in evergreen:
milestone: none → 2.6.0-beta1
Revision history for this message
Ben Shum (bshum) wrote :

I still haven't been able to clearly replicate this problem consistently on my systems, but I assume that's the nature of a random ordering process.

One note on the change here, going strictly by barcode instead of copy_number might not be the best thing for folks who actually make regular use of the copy_number field. While I know we do not (so it won't affect us), someone may be using them and expecting that copy 1 go before copy 2, etc.

I mentioned this in IRC and kmlussier wondered if we were to order by copy_number, and then barcode. My only question to test is what would happen in a case where you have a mix of items that have the same org unit, call number sortkey, but some had copy_number applied and others were NULL. Would it put the NULLs ahead of the ones with copy_number or after them?

More testing required to understand and work through this.

Thanks for getting the ball rolling again Kyle!

Revision history for this message
Ben Shum (bshum) wrote :

Verified that adding "barcode" as an additional order by field helps to eliminate the random ordering issue that caused some items to "disappear" from view.

Kyle, if you can confirm my results and submit a revised branch, I'll be happy to sign off on it to get it into master.

Revision history for this message
Kyle Tomita (tomitakyle) wrote :
Revision history for this message
Ben Shum (bshum) wrote :

Thanks Kyle! Picked your commit to master and then backported to rel_2_5. When I tried to backport it to rel_2_4, it didn't pick cleanly and there seem to be differences in how sort worked previously in 2.4. Specifically, that the label_sortkey wasn't being employed and also that copy_number wasn't being used either.

Going to leave that 2.4 stuff alone for now. Maybe can look at it more closely later.

Changed in evergreen:
status: Confirmed → Fix Committed
importance: Undecided → Medium
Kathy Lussier (klussier)
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.