Line 0
Link Here
|
|
|
1 |
<div id="recalls"> |
2 |
[% IF recalls.count %] |
3 |
<table id="recalls-table"> |
4 |
<thead> |
5 |
<tr> |
6 |
<th class="nosort"> </th> |
7 |
<th class="recall-borrower anti-the">Borrower</th> |
8 |
<th class="recall-title anti-the">Title</th> |
9 |
<th class="recall-date psort title-string">Placed on</th> |
10 |
<th class="recall-expiry title-string">Expires on</th> |
11 |
<th class="recall-branch">Pickup location</th> |
12 |
<th class="recall-status">Status</th> |
13 |
<th class="recall-cancel nosort">Cancel</th> |
14 |
</tr> |
15 |
</thead> |
16 |
|
17 |
<tbody> |
18 |
[% FOREACH recall IN recalls %] |
19 |
<tr> |
20 |
<td> |
21 |
[% IF recall.is_requested || recall.is_waiting || recall.is_overdue %] |
22 |
<input type="checkbox" value="[% recall.recall_id %]" name="recall_ids"> |
23 |
[% ELSE %] |
24 |
|
25 |
[% END %] |
26 |
</td> |
27 |
<td class="recall-borrower"> |
28 |
<a class="recall-borrower" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.borrowernumber %]"> |
29 |
[% recall.borrower.firstname %] [% recall.borrower.surname %] ([% recall.borrowernumber %]) |
30 |
</a> |
31 |
</td> |
32 |
<td class="recall-title"> |
33 |
<a class="recall-title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber %]"> |
34 |
[% recall.biblio.title %] |
35 |
[% FOREACH s IN recall.biblio.subtitles %] |
36 |
[% s %] |
37 |
[% END %] |
38 |
[% recall.item.enumchron %] |
39 |
</a> |
40 |
[% recall.biblio.author %] |
41 |
</td> |
42 |
|
43 |
<td class="recall-date"> |
44 |
[% recall.recalldate | $KohaDates %] |
45 |
</td> |
46 |
|
47 |
<td class="recall-expiry"> |
48 |
[% IF ( recall.is_waiting ) %] |
49 |
[% IF ( recall.expirationdate ) %] |
50 |
[% recall.expirationdate | $KohaDates %] |
51 |
[% ELSE %] |
52 |
Never expires |
53 |
[% END %] |
54 |
[% ELSIF ( recall.has_expired && recall.expirationdate ) %] |
55 |
[% recall.expirationdate | $KohaDates %] |
56 |
[% ELSE %] |
57 |
- |
58 |
[% END %] |
59 |
</td> |
60 |
|
61 |
<td class="recall-branch"> |
62 |
[% recall.branch.branchname %] |
63 |
</td> |
64 |
|
65 |
<td class="recall-status"> |
66 |
[% IF ( recall.is_requested ) %] |
67 |
Requested |
68 |
[% ELSIF ( recall.is_waiting ) %] |
69 |
Ready for pickup |
70 |
[% ELSIF ( recall.has_expired ) %] |
71 |
Expired |
72 |
[% ELSIF ( recall.is_cancelled ) %] |
73 |
Cancelled |
74 |
[% ELSIF ( recall.is_overdue ) %] |
75 |
Overdue to be returned |
76 |
[% END %] |
77 |
</td> |
78 |
|
79 |
<td class="recall-cancel"> |
80 |
[% IF ( !recall.cancellationdate && ( recall.is_requested || recall.is_overdue ) ) %] |
81 |
<a class="btn btn-xs btn-default" id="cancel_recall" data-id="[% recall.recall_id %]"><i class="fa fa-times"></i> Cancel</a> |
82 |
[% END %] |
83 |
</td> |
84 |
|
85 |
</tr> |
86 |
[% END %] |
87 |
</tbody> |
88 |
</table> |
89 |
[% ELSE %] |
90 |
No recalls have been made. |
91 |
[% END %] |
92 |
</div> |