From d7aef2a6f0314f0bf81e6f6b12ceb45ef1a6585c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 12 Nov 2018 14:07:55 +0100 Subject: [PATCH] Bug 13654: Show 'Place hold' when there are too many items? Content-Type: text/plain; charset=utf-8 Currently, we do not show Place hold on opac-detail if there are too many items. The user can click View all items to refresh the detail page with all items. At that time we show Place hold (if possible). If we just show Place hold if there are too many items, clicking Place hold could perhaps generate a refusal but will probably most often save another click on View all items (which even seems to confuse some users). Test plan: Pick a biblio with too many items or lower OpacMaxItemsToDisplay. With this patch, you now see Place hold in the side bar. --- opac/opac-detail.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index a7c24ef..bddb507 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -672,7 +672,9 @@ if ( not $viewallitems and @items > $max_items_to_display ) { $template->param( too_many_items => 1, items_count => scalar( @items ), + AllowOnShelfHolds => 1, #userfriendly assumption, no guarantee ); + $norequests = 0; # userfriendly assumption, no guarantee } else { for my $itm (@items) { my $item = Koha::Items->find( $itm->{itemnumber} ); -- 2.1.4