From 0af9887ec42d1e19db40800532e4d486f1e67292 Mon Sep 17 00:00:00 2001
From: Grace Smyth <gracesmythh@gmail.com>
Date: Tue, 16 Jan 2018 03:07:21 +0000
Subject: [PATCH] Bug 17869 Holds location removal

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 <claude.brayer@cea.fr>
---
 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 ) %]
                                                             <li class="branch">
                                                                 <label for="branch_[% bibitemloo.biblionumber %]">Pick up location:</label>
                                                                 [% UNLESS ( bibitemloo.holdable ) %]
@@ -241,6 +242,7 @@
                                                                     [% END %]
                                                                 [% END # / UNLESS bibitemloo.holdable %]
                                                             </li>
+                                                            [% END %]
                                                         [% END # / IF bibitemloo.holdable && choose_branch %]
                                                     [% END # / UNLESS singleBranchMode %]
                                                 </ul>
-- 
2.7.4