diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 1cc5ebe479..44b8aea94f 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -343,16 +343,14 @@ sub buildKohaItemsNamespace { $status = "Checked out"; } elsif ( $item->notforloan ) { - $status = "reallynotforloan"; - $substatus = exists $descs{$item->{notforloan}} ? $descs{$item->{notforloan}}->{opac_description} : "Not for loan_$item->{notforloan}"; + $status = $item->notforloan < 0 ? "reallynotforloan" : "reference"; + $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 ) { $status = "reference"; - } - elsif ( $item->notforloan < 0) { - $status = "On order"; + $substatus = "Not for loan"; } else { $status = "available"; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index edff548f2d..d29fdceaee 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1312,11 +1312,16 @@ Items available for reference: - - + + + + ItemSummary + + - + + Call number: @@ -1324,7 +1329,7 @@ ( - + ) . , @@ -1341,8 +1346,8 @@
- - + + ItemSummary