]> git.koha-community.org Git - koha.git/commit
Bug 28286: show "Place hold" button if item is holdable
authorPetro Vashchuk <stalkernoid@gmail.com>
Wed, 5 May 2021 13:30:26 +0000 (16:30 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 13:46:55 +0000 (15:46 +0200)
commit17fbf29d0e369ba0df7c38eca69f7a0a5d159b44
treeece85e98710bea763ebe8628f22cf31faba33f00
parent6754e92c1cab51cf4052cc9278e28ae842e904e7
Bug 28286: show "Place hold" button if item is holdable

This patch adds "filter_by_for_hold" method in "Items.pm" and
uses it in "cat-toolbar.inc" instead of "filter_by_for_load".

Also this patch removes "filter_by_for_loan" method.

To reproduce the bug:
1) go to /cgi-bin/koha/catalogue/detail.pl?biblionumber=XXX that has
item with notforloan value set as "Ordered" (-1)
2) see that button "Place hold" is not present
3) apply the patch
4) refresh the page and ensure that "Place hold" button appears even if
item is "Ordered"

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Items.pm
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc
t/db_dependent/Koha/Items.t