Bug 28057: Use the biblioitem's biblionumber for checking availability
authorNick Clemens <nick@bywatersolutions.com>
Wed, 14 Apr 2021 18:19:40 +0000 (18:19 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Aug 2021 07:14:02 +0000 (09:14 +0200)
commitf4238e9ab1257064c80d8f01b76c542ce8885165
tree647bc73311e7093f5fab5382efff45f2d796e05f
parent9fd9885fb501af1e4ad957e36a6882c1b81be9a9
Bug 28057: Use the biblioitem's biblionumber for checking availability

The loop here gets items from the record, plus analytic items. Because of this
we need to check more than 1 record - we decide to do this via biblioitems.

We need to preserve that, but when checking ItemsAnyAvailableAndNotRestricted we
cannot assume that the biblionumber and biblioitemnumber are the same (they should be
but this may not be the best of all possible worlds)

I simply switch the call here

To test:
1 - Apply patch
2 - Test placing holds on single bibs and multiple bibs
3 - Confirm it works as expected

Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
reserve/request.pl