From d2cb0a20de8accc64552af66d2774c98849d99d6 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Wed, 4 Feb 2009 10:46:24 -0600 Subject: [PATCH] Fixes to two issues with status display on OPAC: 1. rather than testing for notforloan == -1, test for any negative values to set the On order status 2. in cases where itemcallnumber is blank or null, don't display the itemcallnumber brackets [] Signed-off-by: Galen Charlton --- C4/XSLT.pm | 2 +- koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 8e77ea9c3b..cf9c51bc88 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -143,7 +143,7 @@ sub buildKohaItemsNamespace { if ( $itemtypes->{ $item->{itype} }->{notforloan} == 1 || $item->{notforloan} || $item->{onloan} || $item->{wthdrawn} || $item->{itemlost} || $item->{damaged} || ($transfertwhen ne '') || $item->{itemnotforloan} ) { - if ( $item->{notforloan} == -1) { + if ( $item->{notforloan} < 0) { $status = "On order"; } if ( $item->{itemnotforloan} > 0 || $item->{notforloan} > 0 || $itemtypes->{ $item->{itype} }->{notforloan} == 1 ) { diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl index f4afc810c7..71ae153ff0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -842,7 +842,7 @@ select="key('item-by-status', 'available')"/> - [] + [] ( ) -- 2.39.5