From b86e4e570050343fa60d85dbc34853cc83857154 Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Wed, 5 May 2010 15:14:54 +0000 Subject: [PATCH] Fixes bug 4448: &'s in itemcallnumber Signed-off-by: Galen Charlton --- C4/XSLT.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index f1fc9db844..e67aa54b10 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -206,10 +206,11 @@ sub buildKohaItemsNamespace { $status = "available"; } my $homebranch = $branches->{$item->{homebranch}}->{'branchname'}; + my $itemcallnumber = $item->{itemcallnumber} || ''; + $itemcallnumber =~ s/\&/\&\;/g; $xml.= "$homebranch". "$status". - (defined $item->{'itemcallnumber'} ? "".$item->{'itemcallnumber'}."" - : "") + "".$itemcallnumber."" . ""; } -- 2.39.5