Bug 13640: Do not display unreserveable items on the Holds to pull screen
commitcc186b22aac8786101805e8d92205843a5836c2a
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 13 May 2019 14:57:52 +0000 (13 09:57 -0500)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 19 Jul 2019 17:51:14 +0000 (19 17:51 +0000)
treea282462d39e5d8b2a149ba3ee69a9b33f52ac4da
parent17dd2ac12495e7dc7d75a79ea7355fb3cd63963d
Bug 13640: Do not display unreserveable items on the Holds to pull screen

We should only display the items that meet the hold policies

Test plan:
It would be good to have a huge list of holds displayed on the "Holds to
pull" and confirm that the display is now correct.

One of the possible test plan has been let in a comment on the bug
report:
Bib Record A has 2 items:

Item Record X (can be placed on hold)
Item Record Y (cannot be placed on hold)

If you place a bib-level hold on Bib Record A, both Item Record X and
Item Record Y show up as available items in the Holds To Pull List.

With this patch applied you must not see Y

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 82130e73860a96025f4cfbeb7dd0bc4d091d6e33)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
circ/pendingreserves.pl