Lines 18-25
Link Here
|
18 |
[% END %] |
18 |
[% END %] |
19 |
|
19 |
|
20 |
[% IF item.isa('Koha::Item') %] |
20 |
[% IF item.isa('Koha::Item') %] |
21 |
[% SET datedue = issue.date_due %] |
21 |
[% SET datedue = item.checkout.date_due %] |
22 |
[% SET onsite_checkout = issue.onsite_checkout %] |
22 |
[% SET onsite_checkout = item.checkout.onsite_checkout %] |
23 |
[% ELSE %] |
23 |
[% ELSE %] |
24 |
[% SET datedue = item.datedue || issue.date_due %] |
24 |
[% SET datedue = item.datedue || issue.date_due %] |
25 |
[% SET onsite_checkout = item.onsite_checkout %] |
25 |
[% SET onsite_checkout = item.onsite_checkout %] |
Lines 39-45
Link Here
|
39 |
<span class="item-status checkedout">Checked out</span> |
39 |
<span class="item-status checkedout">Checked out</span> |
40 |
[% END %] |
40 |
[% END %] |
41 |
[% END %] |
41 |
[% END %] |
42 |
[% IF item.avail_for_recall %]<a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>[% END %] |
42 |
[%# FIXME We should move avail_for_recall to a Koha::Item method %] |
|
|
43 |
[% IF !item.isa('Koha::Item') AND item.avail_for_recall %]<a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>[% END %] |
43 |
[% END %] |
44 |
[% END %] |
44 |
|
45 |
|
45 |
[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %] |
46 |
[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %] |
Lines 100-106
Link Here
|
100 |
<span class="item-status pendinghold">Pending hold</span> |
101 |
<span class="item-status pendinghold">Pending hold</span> |
101 |
[% END %] |
102 |
[% END %] |
102 |
|
103 |
|
103 |
[% IF item.has_pending_recall %] |
104 |
[% IF Koha.Preference('UseRecalls') && item.has_pending_recall %] |
104 |
[% SET itemavailable = 0 %] |
105 |
[% SET itemavailable = 0 %] |
105 |
<span class="item-status pendingrecall">Pending recall</span> |
106 |
<span class="item-status pendingrecall">Pending recall</span> |
106 |
[% END %] |
107 |
[% END %] |