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 96-102 Link Here
96
                                  [% IF (value.lib) %]
96
                                  [% IF (value.lib) %]
97
                                    <li>
97
                                    <li>
98
                                    <label for="[% value.id %]">
98
                                    <label for="[% value.id %]">
99
                                        [% IF value.authorised_value==0 %]
99
                                        [% IF ( status.fieldname == 'items.notforloan' && value.authorised_value == 0 && value.lib == '__IGNORE__' ) %]
100
                                            For loan
100
                                            For loan
101
                                        [% ELSE %]
101
                                        [% ELSE %]
102
                                            [% value.lib %]
102
                                            [% value.lib %]
(-)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