View | Details | Raw Unified | Return to bug 10820
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc (-13 / +12 lines)
Lines 1-6 Link Here
1
[% USE KohaAuthorisedValues %]
1
[% USE KohaAuthorisedValues %]
2
2
3
[% IF ( item.datedue ) %]
3
[% IF ( item.itemlost ) %]
4
    [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
5
    [% IF ( av_lib_include ) %]
6
        [% av_lib_include %]
7
    [% ELSE %]
8
        [% IF ( item.lostimageurl ) %]
9
            <img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]">
10
        [% ELSE %]
11
            Item lost
12
        [% END %]
13
    [% END %]
14
[% ELSIF ( item.datedue ) %]
4
    [% IF ( OPACShowCheckoutName ) %]
15
    [% IF ( OPACShowCheckoutName ) %]
5
        Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %]
16
        Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %]
6
    [% ELSE %]
17
    [% ELSE %]
Lines 13-29 Link Here
13
    On hold
24
    On hold
14
[% ELSIF ( item.withdrawn ) %]
25
[% ELSIF ( item.withdrawn ) %]
15
    Item withdrawn
26
    Item withdrawn
16
[% ELSIF ( item.itemlost ) %]
17
    [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
18
    [% IF ( av_lib_include ) %]
19
        [% av_lib_include %]
20
    [% ELSE %]
21
        [% IF ( item.lostimageurl ) %]
22
            <img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]">
23
        [% ELSE %]
24
            Item lost
25
        [% END %]
26
    [% END %]
27
[% ELSIF ( item.itemnotforloan ) %]
27
[% ELSIF ( item.itemnotforloan ) %]
28
    [% IF ( item.notforloanvalueopac ) %]
28
    [% IF ( item.notforloanvalueopac ) %]
29
        [% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
29
        [% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %]
30
- 

Return to bug 10820