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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-24 / +24 lines)
Lines 686-699 Link Here
686
            </a>
686
            </a>
687
687
688
            <xsl:if test="marc:subfield[@code=9]">
688
            <xsl:if test="marc:subfield[@code=9]">
689
                <xsl:text> </xsl:text>
689
                <xsl:call-template name="showAuthlink">
690
                <a class='authlink'>
690
                    <xsl:with-param name="authid"><xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:with-param>
691
                    <xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
691
                </xsl:call-template>
692
                    <xsl:element name="i">
693
                        <xsl:attribute name="class">fa fa-search</xsl:attribute>
694
                        <xsl:attribute name="aria-label">View authority record</xsl:attribute>
695
                    </xsl:element>
696
                </a>
697
            </xsl:if>
692
            </xsl:if>
698
693
699
            <xsl:choose>
694
            <xsl:choose>
Lines 735-749 Link Here
735
                    </xsl:call-template>
730
                    </xsl:call-template>
736
                    </a>
731
                    </a>
737
732
733
738
                    <xsl:if test="marc:subfield[@code=9]">
734
                    <xsl:if test="marc:subfield[@code=9]">
739
                        <xsl:text> </xsl:text>
735
                        <xsl:call-template name="showAuthlink">
740
                        <a class='authlink'>
736
                            <xsl:with-param name="authid"><xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:with-param>
741
                            <xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
737
                        </xsl:call-template>
742
                            <xsl:element name="i">
743
                                <xsl:attribute name="class">fa fa-search</xsl:attribute>
744
                                <xsl:attribute name="aria-label">View authority record</xsl:attribute>
745
                            </xsl:element>
746
                        </a>
747
                    </xsl:if>
738
                    </xsl:if>
748
                    <xsl:if test="position()!=last()"><span class="separator"> | </span></xsl:if>
739
                    <xsl:if test="position()!=last()"><span class="separator"> | </span></xsl:if>
749
                </xsl:for-each>
740
                </xsl:for-each>
Lines 1745-1758 Link Here
1745
            </xsl:if>
1736
            </xsl:if>
1746
        </a>
1737
        </a>
1747
        <xsl:if test="marc:subfield[@code=9]">
1738
        <xsl:if test="marc:subfield[@code=9]">
1748
                <xsl:text> </xsl:text>
1739
            <xsl:call-template name="showAuthlink">
1749
                <a class='authlink'>
1740
                <xsl:with-param name="authid"><xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:with-param>
1750
                    <xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
1741
            </xsl:call-template>
1751
                    <xsl:element name="i">
1752
                        <xsl:attribute name="class">fa fa-search</xsl:attribute>
1753
                        <xsl:attribute name="aria-label">View authority record</xsl:attribute>
1754
                    </xsl:element>
1755
                </a>
1756
        </xsl:if>
1742
        </xsl:if>
1757
        <xsl:choose>
1743
        <xsl:choose>
1758
          <xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
1744
          <xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
Lines 1762-1767 Link Here
1762
	</xsl:if>
1748
	</xsl:if>
1763
    </xsl:template>
1749
    </xsl:template>
1764
1750
1751
    <xsl:template name="showAuthlink">
1752
        <xsl:param name="authid"/>
1753
        <xsl:text> </xsl:text>
1754
        <a class='authlink'>
1755
            <xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="$authid"/></xsl:attribute>
1756
            <xsl:attribute name="title">View authority record</xsl:attribute>
1757
            <xsl:attribute name="target">_blank</xsl:attribute>
1758
            <xsl:element name="i">
1759
                <xsl:attribute name="class">fa fa-search</xsl:attribute>
1760
                <xsl:attribute name="aria-label">View authority record</xsl:attribute>
1761
            </xsl:element>
1762
        </a>
1763
    </xsl:template>
1764
1765
    <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
1765
    <!-- #1807 Strip unwanted parenthesis from subjects for searching -->
1766
    <xsl:template name="subfieldSelectSubject">
1766
    <xsl:template name="subfieldSelectSubject">
1767
        <xsl:param name="codes"/>
1767
        <xsl:param name="codes"/>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/plainMARC.xsl (-2 / +15 lines)
Lines 51-57 Link Here
51
    </xsl:template>
51
    </xsl:template>
52
52
53
    <xsl:template match="marc:subfield">
53
    <xsl:template match="marc:subfield">
54
        <strong>_<xsl:value-of select="@code"/></strong> <xsl:value-of select="."/>
54
        <strong>_<xsl:value-of select="@code"/></strong>
55
        <xsl:text> </xsl:text>
56
        <xsl:choose>
57
            <xsl:when test="@code = '9'">
58
                <a>
59
                    <xsl:attribute name='href'>/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="."/></xsl:attribute>
60
                    <xsl:attribute name="title">View authority record</xsl:attribute>
61
                    <xsl:attribute name='target'>_blank</xsl:attribute>
62
                    <xsl:value-of select="."/>
63
                </a>
64
            </xsl:when>
65
            <xsl:otherwise>
66
                <xsl:value-of select="."/>
67
            </xsl:otherwise>
68
        </xsl:choose>
55
        <xsl:choose>
69
        <xsl:choose>
56
        <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when><xsl:otherwise><br /></xsl:otherwise></xsl:choose>
70
        <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when><xsl:otherwise><br /></xsl:otherwise></xsl:choose>
57
    </xsl:template>
71
    </xsl:template>
58
- 

Return to bug 33281