4 <table id="recalls-table">
7 [% IF checkboxes %]<th class="recall-checkbox nosort"> </th>[% END %]
8 <th class="recall-title anti-the">Title</th>
9 [% UNLESS specific_patron %]<th class="recall-patron">Requested by</th>[% END %]
10 <th class="recall-date">Placed on</th>
11 <th class="recall-expiry">Expires on</th>
12 <th class="recall-branch">Pickup location</th>
13 <th class="recall-status">Status</th>
14 [% UNLESS viewing_old %]<th class="recall-duedate">Due date</th>[% END %]
15 [% UNLESS viewing_old %]<th class="recall-actions nosort"> </th>[% END %]
20 [% FOREACH recall IN recalls %]
21 [% IF recall.old %]<tr class="old">[% ELSE %]<tr>[% END %]
24 <td class="recall-checkbox">
28 <input type="checkbox" value="[% recall.recall_id | html %]" name="recall_ids">
33 <td class="recall-title">
34 <b><a class="recall-title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber | html %]">
35 [% recall.biblio.title | html %]
36 [% FOREACH s IN recall.biblio.subtitle %]
40 [% IF recall.item %][% recall.item.barcode | html %][% END %]
41 [% recall.biblio.author | html %]
44 [% UNLESS specific_patron %]
45 <td class="recall-patron">
46 [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 link_to="circulation_recalls" %]
50 <td class="recall-date">
51 [% recall.recalldate | $KohaDates %]
54 <td class="recall-expiry">
55 [% IF ( recall.expirationdate ) %]
56 [% recall.expirationdate | $KohaDates %]
57 [% ELSIF ( !recall.old ) %]
64 <td class="recall-branch">
65 [% recall.library.branchname | html %]
68 <td class="recall-status">
69 [% IF ( recall.in_transit ) %]
70 In transit to [% recall.library.branchname | html %]
71 [% ELSIF ( recall.waiting ) %]
73 [% ELSIF ( recall.expired ) %]
74 Expired on [% recall.expirationdate | $KohaDates %]
75 [% ELSIF ( recall.cancelled ) %]
76 Cancelled on [% recall.cancellationdate | $KohaDates %]
77 [% ELSIF ( recall.overdue ) %]
78 Overdue to be returned
79 [% ELSIF ( recall.finished ) %]
86 [% UNLESS viewing_old %]
87 <td class="recall-duedate">
88 [% IF recall.requested and recall.checkout %]
89 Due to be returned by [% recall.checkout.date_due | $KohaDates %]
90 [% ELSIF recall.waiting and RECALL.expirationdate %]
91 Pick up by [% RECALL.expirationdate | $KohaDates %]
98 [% UNLESS viewing_old %]
99 <td class="recall-cancel actions">
103 <div class="btn-group">
104 <a class="btn btn-sm dropdown-toggle" data-toggle="dropdown" href="#"> Actions <span class="caret"></span></a>
105 <ul class="dropdown-menu pull-right">
106 [% IF ( recall.requested or recall.overdue ) %]
107 <li><a class="cancel_recall" data-id="[% recall.recall_id | html %]" data-action="cancel"><i class="fa fa-times"></i> Cancel</a></li>
108 [% IF ( recall.should_be_overdue ) %]
109 <li><a class="overdue_recall" data-id="[% recall.recall_id | html %]" data-action="overdue"><i class="fa fa-hourglass-end"></i> Mark as overdue</a></li>
111 [% ELSIF ( recall.waiting ) %]
112 <li><a class="revert_recall" data-id="[% recall.recall_id | html %]" data-action="revert"><i class="fa fa-undo"></i> Revert waiting</a></li>
113 <li><a class="expire_recall" data-id="[% recall.recall_id | html %]" data-action="expire"><i class="fa fa-times"></i> Expire</a></li>
114 [% ELSIF ( recall.in_transit ) %]
115 <li><a class="transit_recall" data-id="[% recall.recall_id | html %]" data-action="transit"><i class="fa fa-times"></i> Cancel recall and return to: [% Branches.GetName(recall.item.homebranch) | html %]</a></li>
128 [% IF patron.borrowernumber %]
129 <div class="dialog message">Patron has no recalls.</div>
131 <div class="dialog message">There are no recalls to show.</div>