diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 12c97db41e..d4cdb832cd 100644 --- a/C4/XSLT.pm +++ b/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)$/