Bug 17353: Add phone number column to checkout search
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / circ-patron-search-results.inc
1 [% USE KohaDates %]
2 <legend>Patron selection</legend>
3 <table id="table_borrowers" class="table_borrowers">
4     <thead>
5         <tr>
6             <th>Name</th>
7             <th>Card number</th>
8             <th>Date of birth</th>
9             <th>Category</th>
10             <th>Library</th>
11             <th>Address</th>
12             <th>Primary phone</th>
13         </tr>
14     </thead>
15     <tbody>
16         [% FOREACH borrower IN borrowers %]
17             [% IF destination == "circ" %]
18                 <tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber | html %]">
19                     <td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.surname | html %], [% borrower.firstname | html %]</a></td>
20             [% ELSIF destination == "holds" %]
21                 [% IF multi_hold %]
22                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&amp;multi_hold=1&amp;biblionumbers=" _ biblionumbers %]
23                 [% ELSE %]
24                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&amp;biblionumber=" _ biblionumber %]
25                 [% END %]
26                 <tr class="clickable" data-url="[% data_url | url %]">
27                     <td><a href="[% data_url | url %]">[% borrower.surname | html %], [% borrower.firstname | html %]</a></td>
28             [% END %]
29                 <td>[% borrower.cardnumber | html %]</td>
30                 <td>[% borrower.dateofbirth | $KohaDates %]</td>
31                 <td>[% Categories.GetName( borrower.categorycode ) | html %]</td>
32                 <td>[% Branches.GetName( borrower.branchcode ) | html %]</td>
33                 <td>[% borrower.address | html %]</td>
34                 <td>[% borrower.phone | html %]</td>
35             </tr>
36         [% END %]
37     </tbody>
38 </table>