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 <katrin.fischer.83@web.de>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 9d96e21421)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Owen Leonard 2018-06-18 18:29:57 +00:00 committed by Fridolin Somers
parent 4f98d34c0f
commit a83004bb92
1 changed files with 9 additions and 5 deletions

View File

@ -589,7 +589,9 @@ Using this account is not recommended because some parts of Koha will not functi
<th class="anti-the">Title</th>
<th class="psort title-string">Placed on</th>
<th class="title-string">Expires on</th>
<th>Pick up location</th>
[% UNLESS( singleBranchMode) %]
<th>Pick up location</th>
[% END %]
[% IF ( showpriority ) %]
<th>Priority</th>
[% END %]
@ -648,10 +650,12 @@ Using this account is not recommended because some parts of Koha will not functi
<span title="0000-00-00">-</span>
[% END %]
</td>
<td class="branch">
<span class="tdlabel">Pick up location:</span>
[% RESERVE.branch.branchname %]
</td>
[% UNLESS( singleBranchMode) %]
<td class="branch">
<span class="tdlabel">Pick up location:</span>
[% RESERVE.branch.branchname %]
</td>
[% END %]
[% IF ( showpriority ) %]
<td class="priority">
<span class="tdlabel">Priority:</span>