@@ -, +, @@ in numeric eq (==) elsif ( exists $itemtypes->{ $item->effective_itemtype } && $itemtypes->{ $item->effective_itemtype }->{notforloan} == 1 ) include the record using XSLT --- C4/XSLT.pm | 1 + 1 file changed, 1 insertion(+) --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -350,6 +350,7 @@ sub buildKohaItemsNamespace { $substatus = exists $descs{$item->notforloan} ? $descs{$item->notforloan}->{opac_description} : "Not for loan"; } elsif ( exists $itemtypes->{ $item->effective_itemtype } + && $itemtypes->{ $item->effective_itemtype }->{notforloan} && $itemtypes->{ $item->effective_itemtype }->{notforloan} == 1 ) { $status = "1" =~ /^($ref_status)$/ --