SRU/Z39.50 results show deleted copies
Bug #1267252 reported by
Jeff Davis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.4 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In SRU & Z39.50 search results, copies which are deleted, but would otherwise be OPAC-visible, are included in holdings data. The cause of the bug is a simple Perl thinko. I have a fix which I'll push to the working repo momentarily.
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix is in the user/jeffdavis/ lp1267252- sru-deleted- holdings branch of the working repo:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=commitdif f;h=3b83603
When a copy is deleted, the value of $cp->deleted is a string ('t'). The '==' operator doesn't do string comparison; instead, the test ($cp->deleted == 0) evaluates to 1, and the copy is treated as if it were NOT deleted. (I hope I've got that straight. Anyway the fix itself is simple enough.)
This bugfix should be backported.