Bug 21703: Fix filter on dataurl variable to allow placing holds in staff again
[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         </tr>
13     </thead>
14     <tbody>
15         [% FOREACH borrower IN borrowers %]
16             [% IF destination == "circ" %]
17                 <tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber | html %]">
18                     <td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.surname | html %], [% borrower.firstname | html %]</a></td>
19             [% ELSIF destination == "holds" %]
20                 [% IF multi_hold %]
21                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&amp;multi_hold=1&amp;biblionumbers=" _ biblionumbers %]
22                 [% ELSE %]
23                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&amp;biblionumber=" _ biblionumber %]
24                 [% END %]
25                 <tr class="clickable" data-url="[% data_url | url %]">
26                     <td><a href="[% data_url | url %]">[% borrower.surname | html %], [% borrower.firstname | html %]</a></td>
27             [% END %]
28                 <td>[% borrower.cardnumber | html %]</td>
29                 <td>[% borrower.dateofbirth | $KohaDates %]</td>
30                 <td>[% Categories.GetName( borrower.categorycode ) | html %]</td>
31                 <td>[% Branches.GetName( borrower.branchcode ) | html %]</td>
32                 <td>[% borrower.address | html %]</td>
33             </tr>
34         [% END %]
35     </tbody>
36 </table>