Bug 4173 - Statuses not appearing in the OPAC
[koha.git] / koha-tmpl / opac-tmpl / prog / en / includes / item-status.inc
1 [% USE KohaAuthorisedValues %]
2
3 [% IF ( item.datedue ) %]
4     [% IF ( OPACShowCheckoutName ) %]
5         Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %]
6     [% ELSE %]
7         Checked out
8     [% END %]
9 [% ELSIF ( item.transfertwhen ) %]
10     In transit from [% item.transfertfrom %]
11     to [% item.transfertto %] since [% item.transfertwhen %]
12 [% ELSIF ( item.waiting ) %]
13     On hold
14 [% ELSIF ( item.wthdrawn ) %]
15     Item withdrawn
16 [% ELSIF ( item.itemlost ) %]
17     [% IF KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
18         [% KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
19     [% ELSE %]
20         [% IF ( item.lostimageurl ) %]
21             <img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]">
22         [% ELSE %]
23             Item lost
24         [% END %]
25     [% END %]
26 [% ELSIF ( item.itemnotforloan ) %]
27     [% IF ( item.notforloanvalue ) %]
28         [% item.notforloanvalue %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
29     [% ELSE %]
30         Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
31     [% END %]
32 [% ELSIF ( item.notforloan_per_itemtype ) %]
33     Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
34 [% ELSIF ( item.damaged ) %]
35     [% IF KohaAuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1 ) %]
36         [% KohaAuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1 ) %]
37     [% ELSE %]
38         Item damaged
39     [% END %]
40 [% ELSE %]
41     Available [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
42 [% END %]