From a83004bb92014173573b2dbc393e451f1a4d339c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 18 Jun 2018 18:29:57 +0000 Subject: [PATCH] Bug 17869: Don't show pick-up library for list of holds in OPAC account when there is only one branch This patch modifies the user summary page in the OPAC so that the "pick up location" column isn't shown in the table of holds if there is only one library defined. To test, apply the patch and log into the OPAC as a user with one or more holds. - In a system with more than one library defined the "Holds" tab of opac-user.pl should show a "Pick up location" column. - In a system with only one library defined there should be now "Pick up location" column. Signed-off-by: Katrin Fischer Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit 9d96e2142140b8184e77da038fde51c0f7000c87) Signed-off-by: Fridolin Somers --- .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 1c26a4fee5..bfe62f1d24 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -589,7 +589,9 @@ Using this account is not recommended because some parts of Koha will not functi Title Placed on Expires on - Pick up location + [% UNLESS( singleBranchMode) %] + Pick up location + [% END %] [% IF ( showpriority ) %] Priority [% END %] @@ -648,10 +650,12 @@ Using this account is not recommended because some parts of Koha will not functi - [% END %] - - Pick up location: - [% RESERVE.branch.branchname %] - + [% UNLESS( singleBranchMode) %] + + Pick up location: + [% RESERVE.branch.branchname %] + + [% END %] [% IF ( showpriority ) %] Priority: -- 2.39.5