From 3a1cb106a9201c85c3548776cd04960d7cd76d3e Mon Sep 17 00:00:00 2001 From: Grace Smyth Date: Tue, 16 Jan 2018 03:07:21 +0000 Subject: [PATCH] Bug 17869: Don't show pick up location on OPAC holds if only one library exists Test Plan [1.] Type in browser http://localhost:8080/ (If you aren't logged in then log in) [2.] Then search for anything and click on the link 'Place hold' which is directly underneath the stars for an item [3.] Notice that there is a pick up location with only one location [4.] Load the patch and now notice that there is no location (as it is not necessary with only one location) Signed-off-by: claude Signed-off-by: Katrin Fischer --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 0f2f4eb..04004d5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -215,6 +215,7 @@ [% UNLESS ( singleBranchMode ) %] [% IF ( bibitemloo.holdable && choose_branch ) %] + [% UNLESS ( Branches.all.size ==1 ) %]
  • [% UNLESS ( bibitemloo.holdable ) %] @@ -241,6 +242,7 @@ [% END %] [% END # / UNLESS bibitemloo.holdable %]
  • + [% END %] [% END # / IF bibitemloo.holdable && choose_branch %] [% END # / UNLESS singleBranchMode %] -- 2.1.4