Lines 18-37
Link Here
|
18 |
|
18 |
|
19 |
<tbody> |
19 |
<tbody> |
20 |
[% FOREACH recall IN recalls %] |
20 |
[% FOREACH recall IN recalls %] |
21 |
[% IF recall.old %]<tr class="old">[% ELSE %]<tr>[% END %] |
21 |
[% IF recall.completed %]<tr class="old">[% ELSE %]<tr>[% END %] |
22 |
|
22 |
|
23 |
[% IF checkboxes %] |
23 |
[% IF checkboxes %] |
24 |
<td class="recall-checkbox"> |
24 |
<td class="recall-checkbox"> |
25 |
[% IF recall.old %] |
25 |
[% IF recall.completed %] |
26 |
|
26 |
|
27 |
[% ELSE %] |
27 |
[% ELSE %] |
28 |
<input type="checkbox" value="[% recall.recall_id | html %]" name="recall_ids"> |
28 |
<input type="checkbox" value="[% recall.id | html %]" name="recall_ids"> |
29 |
[% END %] |
29 |
[% END %] |
30 |
</td> |
30 |
</td> |
31 |
[% END %] |
31 |
[% END %] |
32 |
|
32 |
|
33 |
<td class="recall-title"> |
33 |
<td class="recall-title"> |
34 |
<b><a class="recall-title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblionumber | html %]"> |
34 |
<b><a class="recall-title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% recall.biblio_id | html %]"> |
35 |
[% recall.biblio.title | html %] |
35 |
[% recall.biblio.title | html %] |
36 |
[% FOREACH s IN recall.biblio.subtitle %] |
36 |
[% FOREACH s IN recall.biblio.subtitle %] |
37 |
[% s | html %] |
37 |
[% s | html %] |
Lines 48-60
Link Here
|
48 |
[% END %] |
48 |
[% END %] |
49 |
|
49 |
|
50 |
<td class="recall-date"> |
50 |
<td class="recall-date"> |
51 |
[% recall.recalldate | $KohaDates %] |
51 |
[% recall.created_date | $KohaDates %] |
52 |
</td> |
52 |
</td> |
53 |
|
53 |
|
54 |
<td class="recall-expiry"> |
54 |
<td class="recall-expiry"> |
55 |
[% IF ( recall.expirationdate ) %] |
55 |
[% IF ( recall.expiration_date ) %] |
56 |
[% recall.expirationdate | $KohaDates %] |
56 |
[% recall.expiration_date | $KohaDates %] |
57 |
[% ELSIF ( !recall.old ) %] |
57 |
[% ELSIF ( !recall.completed ) %] |
58 |
Never expires |
58 |
Never expires |
59 |
[% ELSE %] |
59 |
[% ELSE %] |
60 |
- |
60 |
- |
Lines 71-79
Link Here
|
71 |
[% ELSIF ( recall.waiting ) %] |
71 |
[% ELSIF ( recall.waiting ) %] |
72 |
Ready for pickup |
72 |
Ready for pickup |
73 |
[% ELSIF ( recall.expired ) %] |
73 |
[% ELSIF ( recall.expired ) %] |
74 |
Expired on [% recall.expirationdate | $KohaDates %] |
74 |
Expired on [% recall.expiration_date | $KohaDates %] |
75 |
[% ELSIF ( recall.cancelled ) %] |
75 |
[% ELSIF ( recall.cancelled ) %] |
76 |
Cancelled on [% recall.cancellationdate | $KohaDates %] |
76 |
Cancelled on [% recall.completed_date | $KohaDates %] |
77 |
[% ELSIF ( recall.overdue ) %] |
77 |
[% ELSIF ( recall.overdue ) %] |
78 |
Overdue to be returned |
78 |
Overdue to be returned |
79 |
[% ELSIF ( recall.fulfilled ) %] |
79 |
[% ELSIF ( recall.fulfilled ) %] |
Lines 87-94
Link Here
|
87 |
<td class="recall-duedate"> |
87 |
<td class="recall-duedate"> |
88 |
[% IF recall.requested and recall.checkout %] |
88 |
[% IF recall.requested and recall.checkout %] |
89 |
Due to be returned by [% recall.checkout.date_due | $KohaDates %] |
89 |
Due to be returned by [% recall.checkout.date_due | $KohaDates %] |
90 |
[% ELSIF recall.waiting and RECALL.expirationdate %] |
90 |
[% ELSIF recall.waiting and RECALL.expiration_date %] |
91 |
Pick up by [% RECALL.expirationdate | $KohaDates %] |
91 |
Pick up by [% RECALL.expiration_date | $KohaDates %] |
92 |
[% ELSE %] |
92 |
[% ELSE %] |
93 |
- |
93 |
- |
94 |
[% END %] |
94 |
[% END %] |
Lines 97-118
Link Here
|
97 |
|
97 |
|
98 |
[% UNLESS viewing_old %] |
98 |
[% UNLESS viewing_old %] |
99 |
<td class="recall-cancel actions"> |
99 |
<td class="recall-cancel actions"> |
100 |
[% IF recall.old %] |
100 |
[% IF recall.completed %] |
101 |
|
101 |
|
102 |
[% ELSE %] |
102 |
[% ELSE %] |
103 |
<div class="btn-group"> |
103 |
<div class="btn-group"> |
104 |
<a class="btn btn-sm dropdown-toggle" data-toggle="dropdown" href="#"> Actions <span class="caret"></span></a> |
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"> |
105 |
<ul class="dropdown-menu pull-right"> |
106 |
[% IF ( recall.requested or recall.overdue ) %] |
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> |
107 |
<li><a class="cancel_recall" data-id="[% recall.id | html %]" data-action="cancel"><i class="fa fa-times"></i> Cancel</a></li> |
108 |
[% IF ( recall.should_be_overdue ) %] |
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> |
109 |
<li><a class="overdue_recall" data-id="[% recall.id | html %]" data-action="overdue"><i class="fa fa-hourglass-end"></i> Mark as overdue</a></li> |
110 |
[% END %] |
110 |
[% END %] |
111 |
[% ELSIF ( recall.waiting ) %] |
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> |
112 |
<li><a class="revert_recall" data-id="[% 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> |
113 |
<li><a class="expire_recall" data-id="[% recall.id | html %]" data-action="expire"><i class="fa fa-times"></i> Expire</a></li> |
114 |
[% ELSIF ( recall.in_transit ) %] |
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> |
115 |
<li><a class="transit_recall" data-id="[% 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> |
116 |
[% END %] |
116 |
[% END %] |
117 |
</ul> |
117 |
</ul> |
118 |
</div> |
118 |
</div> |