diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 1b3941c7fb..9c4e33e466 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -347,6 +347,7 @@ sub buildKohaItemsNamespace { $substatus = exists $descs{$item->notforloan} ? $descs{$item->notforloan}->{opac_description} : "Not for loan_".$item->notforloan; } elsif ( exists $itemtypes->{ $item->effective_itemtype } + && $itemtypes->{ $item->effective_itemtype }->{notforloan} && $itemtypes->{ $item->effective_itemtype }->{notforloan} == 1 ) { $status = "reference";