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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-1 / +1 lines)
Lines 98-104 Link Here
98
                                  [% IF (value.lib) %]
98
                                  [% IF (value.lib) %]
99
                                    <li>
99
                                    <li>
100
                                    <label for="[% value.id | html %]">
100
                                    <label for="[% value.id | html %]">
101
                                        [% IF value.authorised_value==0 %]
101
                                        [% IF ( status.fieldname == 'items.notforloan' && value.authorised_value == 0 && value.lib == '__IGNORE__' ) %]
102
                                            For loan
102
                                            For loan
103
                                        [% ELSE %]
103
                                        [% ELSE %]
104
                                            [% value.lib | html %]
104
                                            [% value.lib | html %]
(-)a/tools/inventory.pl (-2 / +1 lines)
Lines 95-101 for my $statfield (qw/items.notforloan items.itemlost items.withdrawn items.dama Link Here
95
        if ( $statfield eq 'items.notforloan') {
95
        if ( $statfield eq 'items.notforloan') {
96
            # Add notforloan == 0 to the list of possible notforloan statuses
96
            # Add notforloan == 0 to the list of possible notforloan statuses
97
            # The lib value is replaced in the template
97
            # The lib value is replaced in the template
98
            push @$arr, { authorised_value => 0, id => 'stat0' , lib => 'ignore' } if ! grep { $_->{authorised_value} eq '0' } @$arr;
98
            push @$arr, { authorised_value => 0, id => 'stat0' , lib => '__IGNORE__' } if ! grep { $_->{authorised_value} eq '0' } @$arr;
99
            @notforloans = map { $_->{'authorised_value'} } @$arr;
99
            @notforloans = map { $_->{'authorised_value'} } @$arr;
100
        }
100
        }
101
        $hash->{values} = $arr;
101
        $hash->{values} = $arr;
102
- 

Return to bug 20131