1 [% USE AuthorisedValues %]
4 This include takes two parameters: an item structure
5 and an optional loan (issue) structure. The issue
6 structure is used by course reserves pages, which do
7 not use an API to fetch items that populates item.datedue.
10 [% IF ( item.itemlost ) %]
11 [% av_lib_include = AuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
12 [% IF ( av_lib_include ) %]
15 [% IF ( item.lostimageurl ) %]
16 <img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]" />
21 [% ELSIF ( item.datedue || issue.date_due ) %]
22 [% IF ( OPACShowCheckoutName ) %]
23 Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %]
27 [% ELSIF ( item.transfertwhen ) %]
28 In transit from [% item.transfertfrom %]
29 to [% item.transfertto %] since [% item.transfertwhen %]
30 [% ELSIF ( item.waiting ) %]
32 [% ELSIF ( item.withdrawn ) %]
34 [% ELSIF ( item.itemnotforloan ) %]
35 [% IF ( item.notforloanvalueopac ) %]
36 [% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
38 Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
40 [% ELSIF ( item.notforloan_per_itemtype ) %]
41 Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
42 [% ELSIF ( item.damaged ) %]
43 [% av_lib_include = AuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1 ) %]
44 [% IF av_lib_include %]
50 Available [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]