Bug 19770: Add cardnumber and CSS classed to patron info on waiting holds
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / waiting_holds.inc
1 [% USE ItemTypes %]
2 <table id="[% table_name | html %]">
3     <thead>
4         <tr>
5             <th class="title-string">Waiting since</th>
6             <th class="title-string">Date hold placed</th>
7             <th class="anti-the">Title</th>
8             <th>Patron</th>
9             <th>Home branch</th>
10             <th>Current location</th>
11             <th>Call number</th>
12             <th>Copy number</th>
13             <th>Enumeration</th>
14             <th>Action</th>
15         </tr>
16     </thead>
17     <tbody>
18         [% FOREACH reserveloo IN reserveloop %]
19             <tr>
20                 <td><span title="[% reserveloo.waitingdate | html %]">[% reserveloo.waitingdate | $KohaDates %]</span></td>
21                 <td><span title="[% reserveloo.reservedate | html %]">[% reserveloo.reservedate | $KohaDates %]</span></td>
22                 <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %]
23                     [% reserveloo.biblio.title | html %] [% FOREACH subtitl IN reserveloo.biblio.subtitles %] [% subtitl.subfield | html %][% END %]
24                     </a>
25                         [% UNLESS ( item_level_itypes ) %]
26                             [% IF ( ItemTypes.GetDescription(reserveloo.item.effective_itemtype) ) %]&nbsp; (<b>[% ItemTypes.GetDescription(reserveloo.item.effective_itemtype) | html %]</b>)
27                             [% END %]
28                         [% END %]
29                         <br />Barcode: [% reserveloo.item.barcode | html %]
30                 </td>
31                 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrower.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=reserveloo.borrower %]</a>
32                     [% IF ( reserveloo.borrower.phone ) %]<br /><span class="patron_phone">[% reserveloo.borrower.phone | html %]</span>[% END %]
33                     [% IF ( reserveloo.borrower.first_valid_email_address ) %]
34                         <span class="patron_email"><br /><a href="mailto:[% reserveloo.borrower.first_valid_email_address | uri %]?subject=[% "Hold waiting: " | uri %][% reserveloo.biblio.title | uri %]">
35                         [% reserveloo.borrower.first_valid_email_address | html %]</a></span>
36                     [% END %]
37                 </td>
38                 <td>[% Branches.GetName( reserveloo.item.homebranch ) | html %]</td>
39                 <td>[% Branches.GetName( reserveloo.item.holdingbranch ) | html %]</td>
40                 <td>[% reserveloo.item.itemcallnumber | html %]</td>
41                 <td>[% reserveloo.item.copynumber | html %]</td>
42                 <td>[% reserveloo.item.enumchron | html %]</td>
43                 <td>
44                     <form name="cancelReserve" action="waitingreserves.pl" method="post">
45                         <input type="hidden" name="borrowernumber" value="[% reserveloo.borrower.borrowernumber | html %]" />
46                         <input type="hidden" name="itemnumber" value="[% reserveloo.item.itemnumber | html %]" />
47                         <input type="hidden" name="fbr" value="[% reserveloo.item.holdingbranch | html %]" />
48                         <input type="hidden" name="tbr" value="[% reserveloo.item.homebranch | html %]" />
49                         <input type="hidden" name="tab" value="holdswaiting">
50                         [% IF ( reserveloo.item.homebranch != reserveloo.item.holdingbranch ) %]
51                             <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold and return to: [% Branches.GetName( reserveloo.item.homebranch ) | html %]</button>
52                         [% ELSE %]
53                             <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold</button>
54                         [% END %]
55                    </form>
56                 </td>
57             </tr>
58         [% END %]
59     </tbody>
60 </table>