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.
Created attachment 28585 [details] [review] Patch for this bug
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.