Bugzilla – Attachment 2118 Details for
Bug 4448
Ampersands in itemcallnumber break XSLT Results display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch (originally noted as bug 3326)
0001-Fixes-bug-3326-escapes-ampersands-in-itemcallnumber.patch (text/plain), 1.05 KB, created by
Chris Cormack
on 2010-05-04 20:37:00 UTC
(
hide
)
Description:
Proposed patch (originally noted as bug 3326)
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-05-04 20:37:00 UTC
Size:
1.05 KB
patch
obsolete
>From 1e478e19302c1f45fa8d7fbad12d2b970e74a039 Mon Sep 17 00:00:00 2001 >From: Brendan A. Gallagher <brendan@bywatersolutions.com> >Date: Thu, 29 Apr 2010 19:12:07 +0000 >Subject: [PATCH] Fixes bug 3326: escapes ampersands in itemcallnumber element of XML > >--- > C4/XSLT.pm | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index ec5d532..8305d86 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -207,10 +207,11 @@ sub buildKohaItemsNamespace { > $status = "available"; > } > my $homebranch = $branches->{$item->{homebranch}}->{'branchname'}; >+ my $itemcallnumber = $item->{itemcallnumber}; >+ $itemcallnumber =~ s/\&/\&\;/g; > $xml.= "<item><homebranch>$homebranch</homebranch>". > "<status>$status</status>". >- (defined $item->{'itemcallnumber'} ? "<itemcallnumber>".$item->{'itemcallnumber'}."</itemcallnumber>" >- : "<itemcallnumber />") >+ "<itemcallnumber>".$itemcallnumber."</itemcallnumber>" > . "</item>"; > > } >-- >1.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4448
: 2118