[Patches] [PATCH] 6536 Follow up to fix MARC21toUNIMARC.xsl

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Fri Dec 23 03:40:05 NZDT 2011


From: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date: Thu, 22 Dec 2011 15:28:12 +0100
Subject: [PATCH] 6536 Follow up to fix MARC21toUNIMARC.xsl
Content-Type: text/plain; charset="utf-8"

BibLibre testing revealed that the conversion from MARC21 to UNIMARC failed.
This follow up fixes a small problem in that conversion XSL.
---
 .../intranet-tmpl/prog/en/xslt/MARC21toUNIMARC.xsl |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21toUNIMARC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21toUNIMARC.xsl
index a5d4faa..bb6cd09 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21toUNIMARC.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21toUNIMARC.xsl
@@ -17,7 +17,11 @@ with Koha; if not, write to the Free Software Foundation, Inc.,
 	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
 	<xsl:template match="/">
 		<collection>
-            <xsl:for-each select="marc:record">
+		<xsl:apply-templates/>
+		</collection>
+	</xsl:template>
+	<xsl:template match="marc:record">
+<!--            <xsl:for-each select="marc:record"> -->
 			<record
 				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 				xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd"
@@ -1181,7 +1185,6 @@ with Koha; if not, write to the Free Software Foundation, Inc.,
 					</datafield>
 				</xsl:for-each>
 			</record>
-		</xsl:for-each>
-		</collection>
+<!--		</xsl:for-each> -->
 	</xsl:template>
 </xsl:stylesheet>
-- 
1.6.0.6




More information about the Patches mailing list