diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index a76fdef9c4..650a51088e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -177,12 +177,18 @@ $(document).ready(function(){ [% status.fieldname %] @@ -293,7 +299,7 @@ $(document).ready(function(){ [% ELSIF result.problem == 'missingitem' %]

Item missing

[% ELSIF result.problem == 'changestatus' %] -

Change item status

+

Unknown not-for-loan status

[% ELSIF result.problem == 'not_scanned' %]

Item should have been scanned

[% END %] diff --git a/tools/inventory.pl b/tools/inventory.pl index be57303837..731ad779cf 100755 --- a/tools/inventory.pl +++ b/tools/inventory.pl @@ -94,11 +94,14 @@ for my $statfield (qw/items.notforloan items.itemlost items.withdrawn items.dama $hash->{authcode} = $mss->count ? $mss->next->authorised_value : undef; if ($hash->{authcode}){ my $arr = GetAuthorisedValues($hash->{authcode}); - $hash->{values} = $arr; - push @$statuses, $hash; if ( $statfield eq 'items.notforloan') { + # Add notforloan == 0 to the list of possible notforloan statuses + # The lib value is replaced in the template + push @$arr, { authorised_value => 0, id => 'stat0' , lib => 'ignore' }; @notforloans = map { $_->{'authorised_value'} } @$arr; } + $hash->{values} = $arr; + push @$statuses, $hash; } }