[Koha-patches] [PATCH] Bug-3098-Bug-3108-Bug-3545 revision to XSLT syspref patch

Jane Wagner jwagner at ptfs.com
Wed Sep 16 17:15:55 CEST 2009


The patch I sent earlier repeated a line having to do with the count of items, which mean the count was now doubling (2 items instead of 1, 4 instead of 2, etc.).  This patch removes the first, now superflous line of $xmlrecord =~ s/\<\/record\>/$itemsxml\<\/record\>/;
---
 C4/XSLT.pm |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/C4/XSLT.pm b/C4/XSLT.pm
index f230c2c..98b06da 100644
--- a/C4/XSLT.pm
+++ b/C4/XSLT.pm
@@ -124,7 +124,6 @@ sub XSLTParse4Display {
     #return $record->as_formatted();
     my $itemsxml  = buildKohaItemsNamespace($biblionumber);
     my $xmlrecord = $record->as_xml();
-    $xmlrecord =~ s/\<\/record\>/$itemsxml\<\/record\>/;
     my $sysxml = "<sysprefs>\n";
     foreach my $syspref ( qw/OPACURLOpenInNewWindow DisplayOPACiconsXSLT URLLinkText/ ) {
         $sysxml .= "<syspref name=\"$syspref\">" .
-- 
1.5.6.5




More information about the Koha-patches mailing list