]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Aug 2021 14:56:55 +0000 (10:56 -0400)
commit8258ebe2fbf41ce3c80db08bd0b37b789af01ce0
tree2837075d16d4ae4d4c2a1b49f662ac44eda1ce37
parent7091aeab8d30c0ea5169e677c3685842bf215e92
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>
reserve/request.pl