Bug 12244 - followup to fix tabs
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / xslt / UNIMARCslim2intranetDetail.xsl
old mode 100755 (executable)
new mode 100644 (file)
index fcfe65c..552385e
@@ -9,7 +9,7 @@
   exclude-result-prefixes="marc items">
 
 <xsl:import href="UNIMARCslimUtils.xsl"/>
-<xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" />
+<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
 <xsl:template match="/">
   <xsl:apply-templates/>
 </xsl:template>
@@ -28,7 +28,7 @@
         <xsl:call-template name="addClassRtl" />
         <xsl:variable name="title" select="marc:subfield[@code='a']"/>
         <xsl:variable name="ntitle"
-         select="translate($title, '&#x0098;&#x009C;','')"/>
+         select="translate($title, '&#x0098;&#x009C;&#xC29C;&#xC29B;&#xC298;&#xC288;&#xC289;','')"/>
         <xsl:value-of select="$ntitle" />
         <xsl:if test="marc:subfield[@code='e']">
           <xsl:text> : </xsl:text>
       </xsl:for-each>
     </li>
   </xsl:if>
-
-        <!-- 780 -->
-        <xsl:if test="marc:datafield[@tag=780]">
-        <xsl:for-each select="marc:datafield[@tag=780]">
-        <li>
-        <xsl:choose>
-        <xsl:when test="@ind2=0">
-            <strong>Continues:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=1">
-            <strong>Continues in part:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=2">
-            <strong>Supersedes:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=3">
-            <strong>Supersedes in part:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=4">
-            <strong>Formed by the union: ... and: ...</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=5">
-            <strong>Absorbed:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=6">
-            <strong>Absorbed in part:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=7">
-            <strong>Separated from:</strong>
-        </xsl:when>
-        </xsl:choose>
-
-                <xsl:variable name="f780">
-                    <xsl:call-template name="subfieldSelect">
-                        <xsl:with-param name="codes">at</xsl:with-param>
-                    </xsl:call-template>
-                </xsl:variable>
-             <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
-                <xsl:value-of select="translate($f780, '()', '')"/>
-            </a>
-        </li>
-
-        <xsl:choose>
-        <xsl:when test="@ind1=0">
-            <li><xsl:value-of select="marc:subfield[@code='n']"/></li>
-        </xsl:when>
-        </xsl:choose>
-
-        </xsl:for-each>
-        </xsl:if>
-
-        <!-- 785 -->
-        <xsl:if test="marc:datafield[@tag=785]">
-        <xsl:for-each select="marc:datafield[@tag=785]">
-        <li>
-        <xsl:choose>
-        <xsl:when test="@ind2=0">
-            <strong>Continued by:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=1">
-            <strong>Continued in part by:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=2">
-            <strong>Superseded by:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=3">
-            <strong>Superseded in part by:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=4">
-            <strong>Absorbed by:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=5">
-            <strong>Absorbed in part by:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=6">
-            <strong>Split into .. and ...:</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=7">
-            <strong>Merged with ... to form ...</strong>
-        </xsl:when>
-        <xsl:when test="@ind2=8">
-            <strong>Changed back to:</strong>
-        </xsl:when>
-        </xsl:choose>
-                   <xsl:variable name="f785">
-                    <xsl:call-template name="subfieldSelect">
-                        <xsl:with-param name="codes">at</xsl:with-param>
-                    </xsl:call-template>
-                </xsl:variable>
-
-                <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
-                <xsl:value-of select="translate($f785, '()', '')"/>
-            </a>
-
-        </li>
-        </xsl:for-each>
-        </xsl:if>
-
-    </xsl:template>
+</xsl:template>
 
     <xsl:template name="nameABCDQ">
             <xsl:call-template name="chopPunctuation">