Lines 18-24
not use an API to fetch items that populates item.datedue.
Link Here
|
18 |
[% END %] |
18 |
[% END %] |
19 |
[% END %] |
19 |
[% END %] |
20 |
|
20 |
|
21 |
[% IF ( item.datedue || issue.date_due ) %] |
21 |
[% IF item.isa('Koha::Item') %][% SET datedue = issue.date_due %] |
|
|
22 |
[% ELSE %][% SET datedue = item.datedue || issue.date_due %] |
23 |
[% END %] |
24 |
[% IF datedue %] |
22 |
[% SET itemavailable = 0 %] |
25 |
[% SET itemavailable = 0 %] |
23 |
[% IF item.onsite_checkout %] |
26 |
[% IF item.onsite_checkout %] |
24 |
[% IF ( OPACShowCheckoutName ) %] |
27 |
[% IF ( OPACShowCheckoutName ) %] |
Lines 35-47
not use an API to fetch items that populates item.datedue.
Link Here
|
35 |
[% END %] |
38 |
[% END %] |
36 |
[% END %] |
39 |
[% END %] |
37 |
|
40 |
|
38 |
[% IF ( item.transfertwhen ) %] |
41 |
[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %] |
39 |
[% SET itemavailable = 0 %] |
42 |
[% SET itemavailable = 0 %] |
40 |
<span class="item-status intransit">In transit from [% Branches.GetName( item.transfertfrom ) %] |
43 |
<span class="item-status intransit">In transit from [% Branches.GetName( item.transfertfrom ) %] |
41 |
to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %]</span> |
44 |
to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %]</span> |
42 |
[% END %] |
45 |
[% END %] |
43 |
|
46 |
|
44 |
[% IF ( item.waiting ) %] |
47 |
[% IF NOT( item.isa('Koha::Item') ) AND item.waiting %] [%# Not sure where does come from this waiting flag %] |
45 |
[% SET itemavailable = 0 %] |
48 |
[% SET itemavailable = 0 %] |
46 |
<span class="item-status onhold">On hold</span> |
49 |
<span class="item-status onhold">On hold</span> |
47 |
[% END %] |
50 |
[% END %] |
Lines 51-64
not use an API to fetch items that populates item.datedue.
Link Here
|
51 |
<span class="item-status withdrawn">Item withdrawn</span> |
54 |
<span class="item-status withdrawn">Item withdrawn</span> |
52 |
[% END %] |
55 |
[% END %] |
53 |
|
56 |
|
54 |
[% IF ( item.itemnotforloan ) %] |
57 |
|
|
|
58 |
[% IF NOT ( item.isa('Koha::Item') ) AND item.itemnotforloan %] |
55 |
[% SET itemavailable = 0 %] |
59 |
[% SET itemavailable = 0 %] |
56 |
[% IF ( item.notforloanvalueopac ) %] |
60 |
[% IF ( item.notforloanvalueopac ) %] |
57 |
<span class="item-status notforloan">[% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> |
61 |
<span class="item-status notforloan">[% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> |
58 |
[% ELSE %] |
62 |
[% ELSE %] |
59 |
<span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> |
63 |
<span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> |
60 |
[% END %] |
64 |
[% END %] |
61 |
[% ELSIF ( item.notforloan_per_itemtype ) %] |
65 |
[% ELSIF NOT ( item.isa('Koha::Item') ) AND item.notforloan_per_itemtype %] |
62 |
[% SET itemavailable = 0 %] |
66 |
[% SET itemavailable = 0 %] |
63 |
<span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> |
67 |
<span class="item-status notforloan">Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> |
64 |
[% END %] |
68 |
[% END %] |
Lines 73-83
not use an API to fetch items that populates item.datedue.
Link Here
|
73 |
[% END %] |
77 |
[% END %] |
74 |
[% END %] |
78 |
[% END %] |
75 |
|
79 |
|
76 |
[% IF item.on_order %] |
80 |
[% IF NOT ( item.isa('Koha::Item') ) AND item.on_order %][%# on_order is only set from opac-detail.pl %] |
77 |
[% SET itemavailable = 0 %] |
81 |
[% SET itemavailable = 0 %] |
78 |
<span class="item-status onorder">On order</span> |
82 |
<span class="item-status onorder">On order</span> |
79 |
[% END %] |
83 |
[% END %] |
80 |
|
84 |
|
81 |
[% IF ( itemavailable ) %] |
85 |
[% IF ( itemavailable ) %] |
82 |
<span class="item-status available">Available [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]</span> |
86 |
[% IF NOT item.isa('Koha::Item') %][% SET restrictedopac = item.restrictedopac %][% END %] |
|
|
87 |
<span class="item-status available">Available [% IF restrictedopac %]<span class="restricted">([% restrictedopac %])</span>[% END %]</span> |
83 |
[% END %] |
88 |
[% END %] |
84 |
- |
|
|