Bug-3098-Bug-3108-Bug-3545 revision to XSLT syspref patch
authorJane Wagner <jwagner@ptfs.com>
Wed, 16 Sep 2009 15:15:55 +0000 (11:15 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 16 Sep 2009 17:49:13 +0000 (13:49 -0400)
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 <gmcharlt@gmail.com>
C4/XSLT.pm

index f230c2c..98b06da 100644 (file)
@@ -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\">" .