From 32857ba014c2f9f64d67fc6b163f025403c920dc Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 16 Jun 2016 11:53:28 +0000 Subject: [PATCH] Bug 14695 [QA Followup] - Tell librarian if item doesn't allow or forces item level holds in the OPAC --- .../intranet-tmpl/prog/en/modules/reserve/request.tt | 8 +++++++- reserve/request.pl | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 85c79a8fea..38f9db7087 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -589,9 +589,15 @@ function checkMultiHold() { [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemloo.reservedate ) %][% itemloo.reservedate %][% END %][% END %]. Cancel hold [% END %] - [% ELSE %] + [% ELSE %] Not on hold [% END %] + + [% IF itemloo.item_level_holds == "" %] +
Item level hold not allowed from OPAC + [% ELSIF itemloo.item_level_holds == "F" %] +
Item level hold forced from OPAC + [% END %] [% END %] diff --git a/reserve/request.pl b/reserve/request.pl index 1b6554cce4..e656e0e520 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -464,6 +464,8 @@ foreach my $biblionumber (@biblionumbers) { my $can_item_be_reserved = CanItemBeReserved( $borrowerinfo->{borrowernumber}, $itemnumber ); $item->{not_holdable} = $can_item_be_reserved unless ( $can_item_be_reserved eq 'OK' ); + $item->{item_level_holds} = OPACItemHoldsAllowed( $item, $borrowerinfo ); + if ( !$item->{cantreserve} && !$exceeded_maxreserves -- 2.39.5