Owen Leonard
dd8e23d85c
This patch checks singleBranchMode before highlighting the current branch in search results. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
43 lines
2.2 KiB
HTML
43 lines
2.2 KiB
HTML
[% USE KohaDates %]
|
|
<table id="table_borrowers" class="selections-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Card number</th>
|
|
<th>Date of birth</th>
|
|
<th>Category</th>
|
|
<th>Library</th>
|
|
<th>Address</th>
|
|
<th>Primary phone</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH borrower IN borrowers %]
|
|
[% IF destination == "circ" %]
|
|
<tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber | html %]">
|
|
<td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.surname | html %], [% borrower.firstname | html %]</a></td>
|
|
[% ELSIF destination == "holds" %]
|
|
[% IF multi_hold %]
|
|
[% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&multi_hold=1&biblionumbers=" _ biblionumbers %]
|
|
[% ELSE %]
|
|
[% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&biblionumber=" _ biblionumber %]
|
|
[% END %]
|
|
<tr class="clickable" data-url="[% data_url | url %]">
|
|
<td><a href="[% data_url | url %]">[% borrower.surname | html %], [% borrower.firstname | html %]</a></td>
|
|
[% END %]
|
|
<td>[% borrower.cardnumber | html %]</td>
|
|
<td data-order="[% borrower.dateofbirth | html %]">[% INCLUDE 'patron-age.inc' patron = borrower %]</td>
|
|
<td>[% Categories.GetName( borrower.categorycode ) | html %]</td>
|
|
<td>
|
|
[% IF ( Branches.GetLoggedInBranchcode == borrower.branchcode && !singleBranchMode ) %]
|
|
<span class="currentlibrary">[% Branches.GetName( borrower.branchcode ) | html %]</span>
|
|
[% ELSE %]
|
|
[% Branches.GetName( borrower.branchcode ) | html %]
|
|
[% END %]
|
|
</td>
|
|
<td>[% borrower.address | html %]</td>
|
|
<td>[% borrower.phone | html %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|