Staff copy counts do not include peer bib copies

Bug #1587620 reported by Dan Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Undecided
Unassigned

Bug Description

EG 2.10

The asset.staff_ou_record_copy_count() function does not account for peer bib copies, but the corresponding public version, asset.opac_ou_record_copy_count() does. The "opac" version simply uses asset.opac_visible_copies, but the staff version is trying to include invisible copies, so it does not take advantage of that table and the surrounding logic.

To test, create a record with no physical copies, but with a peer bib copy, then run:

select * from asset.record_copy_count(1,123,'f');

vs.

select * from asset.record_copy_count(1,123,'t');

where '1' is your main org_unit, '123' is your record ID, and 't'/'f' is the 'is_staff' flag. The public view will return copy info, but the staff will not.

a. bellenir (abellenir)
Changed in evergreen:
status: New → Confirmed
Revision history for this message
a. bellenir (abellenir) wrote :

in concerto dataset, eg/opac/record/24 says there are 32 copies (includes the peer bib) if the user is not authenticated, but only 31 (excludes the peer bib) if the user is logged in.

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.