Bug 12339 - catalogue/search.pl biblio availability counts items not on hold as on hold
Summary: catalogue/search.pl biblio availability counts items not on hold as on hold
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-01 13:56 UTC by Olli-Antti Kivilahti
Modified: 2020-11-30 21:44 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Patch for this bug (1.39 KB, patch)
2014-06-01 14:12 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Olli-Antti Kivilahti 2014-06-01 13:56:58 UTC
To replicate the issue:

Make a search in catalogue/search.pl.
Find a Record with lots of holds. (and less than 20 items, otherwise counts are not accurate)
Items which should be available,
 are counted as unavailable in the 'availability'-portion in the Record result details of catalogue/search.pl
  if the biblio has holds in the Reserved-status.

This is easily fixed by not making a biblio-level holds lookup when determining individual Item's availability.
Comment 1 Olli-Antti Kivilahti 2014-06-01 14:12:27 UTC
Created attachment 28585 [details] [review]
Patch for this bug
Comment 2 Katrin Fischer 2020-04-13 02:04:22 UTC
This part of the code has already been changed since:

Patch:
                    $reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber} );

master:

                    $reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber}, undef );

Can also not replicate the problem, marking RESOLVED FIXED.