unAPI should consider copy visibility when returning copies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.7 |
Fix Released
|
Medium
|
Unassigned | ||
2.8 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
EG 2.3+
The search results screen in TPAC uses unAPI to fetch the copies for the brief copy display. This fetch does not consider whether the copy is visible, so if a record has a large number of invisible copies (e.g. 'opac_visible' is false on the copy itself), it is possible that no copies get displayed on the results page. (The details page uses a different query (at this point, anyway) and is unaffected.)
We are currently ranking the volumes and copy statuses according to their level of availability, but we do not consider the availability of the copy directly. There are multiple ways to deal with this. I am working on a branch as a starting point for discussion and finding the best solution, but feel free to jump in if you feel you already know the best way, or if I am off in my analysis.
Changed in evergreen: | |
status: | New → Triaged |
Changed in evergreen: | |
milestone: | 2.4.0-beta → 2.4.0-rc |
Changed in evergreen: | |
assignee: | nobody → Dan Wells (dbw2) |
milestone: | 2.4.0-rc → none |
Changed in evergreen: | |
milestone: | none → 2.6.0-beta1 |
Changed in evergreen: | |
milestone: | 2.6.0-beta1 → 2.6.0-rc1 |
no longer affects: | evergreen/2.3 |
Changed in evergreen: | |
milestone: | 2.6.0-rc1 → none |
no longer affects: | evergreen/2.4 |
no longer affects: | evergreen/2.5 |
no longer affects: | evergreen/2.6 |
Changed in evergreen: | |
assignee: | nobody → Josh Stompro (u-launchpad-stompro-org) |
Changed in evergreen: | |
milestone: | 2.next → 2.9-alpha |
Changed in evergreen: | |
milestone: | 2.9-alpha → 2.9-beta |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Fix for this bug can be seen here:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ dbwells/ lp1112723_ unapi_rank_ cp_visibility_ check
working/ user/dbwells/ lp1112723_ unapi_rank_ cp_visibility_ check
Also, attaching a picture showing the before and after, for clarity: