]> 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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 16 Aug 2021 20:57:56 +0000 (22:57 +0200)
commit499c6e63f9cc058656317928207fbc4070c79182
tree6a330e3bc4b2cd11f3f675e403b04f7ea7159161
parent5116982636aa63a2ec095ccb975e2a6119e8137a
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>
(cherry picked from commit f570bae9f1a97c2b8ba1d4ec04f0f9e17a5b7599)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
reserve/request.pl