From: Jane Wagner Date: Wed, 16 Sep 2009 15:15:55 +0000 (-0400) Subject: Bug-3098-Bug-3108-Bug-3545 revision to XSLT syspref patch X-Git-Tag: v3.02.00-alpha~83 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=2889603e0eb98980ed74d8ed678069ee823feed5;p=koha.git Bug-3098-Bug-3108-Bug-3545 revision to XSLT syspref patch 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\>/; Signed-off-by: Galen Charlton --- diff --git a/C4/XSLT.pm b/C4/XSLT.pm index f230c2cba1..98b06dae69 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 = "\n"; foreach my $syspref ( qw/OPACURLOpenInNewWindow DisplayOPACiconsXSLT URLLinkText/ ) { $sysxml .= "" .