Bug 5885 : UNIMARC XSLT changes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / xslt / UNIMARCslimUtils.xsl
index 07d755b..ad1650d 100644 (file)
@@ -1,4 +1,7 @@
 <?xml version='1.0'?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
+
 <xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
   <xsl:template name="datafield">
@@ -22,7 +25,7 @@
 
   <xsl:template name="tag_210">
     <li>
-      <strong>Édition: </strong>
+      <strong>Publication: </strong>
       <xsl:for-each select="marc:datafield[@tag=210]">
         <span>
           <xsl:call-template name="addClassRtl" />
@@ -82,7 +85,7 @@
        <xsl:template name="tag_4xx">
     <xsl:for-each select="marc:datafield[@tag=464 or @tag=461]">
         <li>
-        <strong>Extrait de: </strong>
+        <strong>Linked with: </strong>
         <span>
           <xsl:call-template name="addClassRtl" />
           <xsl:if test="marc:subfield[@code='t']">
                </xsl:if>
        </xsl:template>
 
+       <xsl:template name="chopSpecialCharacters">
+        <xsl:param name="title" />
+        <xsl:variable name="ntitle"
+             select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
+        <xsl:value-of select="$ntitle" />
+    </xsl:template>
+
+
        <xsl:template name="chopPunctuation">
                <xsl:param name="chopString"/>
                <xsl:variable name="length" select="string-length($chopString)"/>
     </xsl:if>
   </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>