]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 Aug 2021 19:52:19 +0000 (09:52 -1000)
commitf570bae9f1a97c2b8ba1d4ec04f0f9e17a5b7599
treeb70821a22cd223bcbbdd636170f48ec2bc74e68c
parentd4d13c7527fc5f94458cecfee36b13137b93ea04
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 8258ebe2fbf41ce3c80db08bd0b37b789af01ce0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
reserve/request.pl