@@ -, +, @@ add a class --- C4/XSLT.pm | 3 +-- koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -339,8 +339,7 @@ sub buildKohaItemsNamespace { } elsif ( $item->notforloan ) { $status = "reallynotforloan"; - $substatus = $descs{$item->{notforloan}} || ''; - $substatus = $substatus->{opac_description} if $substatus; + $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} == 1 ) --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1343,7 +1343,11 @@
- + + + ItemSummary + + --