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