View | Details | Raw Unified | Return to bug 25082
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21Languages.xsl (-1 / +2 lines)
Lines 491-497 Link Here
491
            <xsl:when test="$code='zul'"><xsl:text>Zulu</xsl:text></xsl:when>
491
            <xsl:when test="$code='zul'"><xsl:text>Zulu</xsl:text></xsl:when>
492
            <xsl:when test="$code='zun'"><xsl:text>Zuni</xsl:text></xsl:when>
492
            <xsl:when test="$code='zun'"><xsl:text>Zuni</xsl:text></xsl:when>
493
            <xsl:otherwise>
493
            <xsl:otherwise>
494
                <xsl:text>Unknown language code</xsl:text>
494
                <!-- when 041$a is mapped to an authorised value list, this will show the description -->
495
                <xsl:value-of select="$code" />
495
            </xsl:otherwise>
496
            </xsl:otherwise>
496
        </xsl:choose>
497
        </xsl:choose>
497
    </xsl:template>
498
    </xsl:template>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-2 / +2 lines)
Lines 383-391 Link Here
383
	  <span class="label"><xsl:value-of select="$langLabel"/></span>
383
	  <span class="label"><xsl:value-of select="$langLabel"/></span>
384
	  <xsl:for-each select="$langNode">
384
	  <xsl:for-each select="$langNode">
385
	    <span>
385
	    <span>
386
	      <xsl:attribute name="class">lang_code-<xsl:value-of select="substring(translate(., ' .-;|#', '_'),1,3)"/></xsl:attribute>
386
	      <xsl:attribute name="class">lang_code-<xsl:value-of select="translate(., ' .-;|#', '_')"/></xsl:attribute>
387
	      <xsl:call-template name="languageCodeText">
387
	      <xsl:call-template name="languageCodeText">
388
		<xsl:with-param name="code" select="substring(.,1,3)"/>
388
		<xsl:with-param name="code" select="translate(., ' .-;|#', '')"/>
389
	      </xsl:call-template>
389
	      </xsl:call-template>
390
	      <xsl:if test="position() != last()">
390
	      <xsl:if test="position() != last()">
391
	        <span class="sep"><xsl:text>, </xsl:text></span>
391
	        <span class="sep"><xsl:text>, </xsl:text></span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21Languages.xsl (-1 / +2 lines)
Lines 491-497 Link Here
491
            <xsl:when test="$code='zul'"><xsl:text>Zulu</xsl:text></xsl:when>
491
            <xsl:when test="$code='zul'"><xsl:text>Zulu</xsl:text></xsl:when>
492
            <xsl:when test="$code='zun'"><xsl:text>Zuni</xsl:text></xsl:when>
492
            <xsl:when test="$code='zun'"><xsl:text>Zuni</xsl:text></xsl:when>
493
            <xsl:otherwise>
493
            <xsl:otherwise>
494
                <xsl:text>Unknown language code</xsl:text>
494
                <!-- when 041$a is mapped to an authorised value list, this will show the description -->
495
                <xsl:value-of select="$code" />
495
            </xsl:otherwise>
496
            </xsl:otherwise>
496
        </xsl:choose>
497
        </xsl:choose>
497
    </xsl:template>
498
    </xsl:template>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl (-2 / +2 lines)
Lines 347-355 Link Here
347
        <span class="label"><xsl:value-of select="$langLabel"/></span>
347
        <span class="label"><xsl:value-of select="$langLabel"/></span>
348
        <xsl:for-each select="$langNode">
348
        <xsl:for-each select="$langNode">
349
        <span>
349
        <span>
350
            <xsl:attribute name="class">lang_code-<xsl:value-of select="substring(translate(., ' .-;|#', '_'),1,3)"/></xsl:attribute>
350
            <xsl:attribute name="class">lang_code-<xsl:value-of select="translate(., ' .-;|#', '_')"/></xsl:attribute>
351
            <xsl:call-template name="languageCodeText">
351
            <xsl:call-template name="languageCodeText">
352
        <xsl:with-param name="code" select="substring(.,1,3)"/>
352
        <xsl:with-param name="code" select="translate(., ' .-;|#', '')"/>
353
            </xsl:call-template>
353
            </xsl:call-template>
354
            <xsl:if test="position() != last()">
354
            <xsl:if test="position() != last()">
355
            <span class="separator"><xsl:text>, </xsl:text></span>
355
            <span class="separator"><xsl:text>, </xsl:text></span>
(-)a/misc/maintenance/generate_MARC21Languages.pl (-2 / +2 lines)
Lines 101-107 sub generate_footer { Link Here
101
    my ($file_handle) = @_;
101
    my ($file_handle) = @_;
102
    print {$file_handle} <<"FOOTER";
102
    print {$file_handle} <<"FOOTER";
103
            <xsl:otherwise>
103
            <xsl:otherwise>
104
                <xsl:text>Unknown language code</xsl:text>
104
                <!-- when 041\$a is mapped to an authorised value list, this will show the description -->
105
                <xsl:value-of select="\$code" />
105
            </xsl:otherwise>
106
            </xsl:otherwise>
106
        </xsl:choose>
107
        </xsl:choose>
107
    </xsl:template>
108
    </xsl:template>
108
- 

Return to bug 25082