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

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to