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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-10 / +22 lines)
Lines 670-685 Link Here
670
                            </xsl:when>
670
                            </xsl:when>
671
                            <xsl:otherwise>
671
                            <xsl:otherwise>
672
                                <xsl:attribute name="href">
672
                                <xsl:attribute name="href">
673
                                    <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=au:"</xsl:text>
673
                                    <xsl:choose>
674
                                    <xsl:value-of
674
                                        <!-- If there's a $t subfield, treat as a title search -->
675
                                        select="str:encode-uri(marc:subfield[@code='a'], true())" />
675
                                        <xsl:when test="marc:subfield[@code='t']">
676
                                    <xsl:text>"</xsl:text>
676
                                            <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=ti,phr:"</xsl:text>
677
                                    <xsl:if test="$AuthorLinkSortBy!='default'">
677
                                            <xsl:value-of
678
                                        <xsl:text>&amp;sort_by=</xsl:text>
678
                                                select="str:encode-uri(marc:subfield[@code='t'], true())" />
679
                                        <xsl:value-of select="$AuthorLinkSortBy" />
679
                                            <xsl:text>"</xsl:text>
680
                                        <xsl:text>_</xsl:text>
680
                                        </xsl:when>
681
                                        <xsl:value-of select="$AuthorLinkSortOrder" />
681
                                        <!-- Otherwise treat as an author search -->
682
                                    </xsl:if>
682
                                        <xsl:otherwise>
683
                                            <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=au:"</xsl:text>
684
                                            <xsl:value-of
685
                                                select="str:encode-uri(marc:subfield[@code='a'], true())" />
686
                                            <xsl:text>"</xsl:text>
687
                                            <xsl:if test="$AuthorLinkSortBy!='default'">
688
                                                <xsl:text>&amp;sort_by=</xsl:text>
689
                                                <xsl:value-of select="$AuthorLinkSortBy" />
690
                                                <xsl:text>_</xsl:text>
691
                                                <xsl:value-of select="$AuthorLinkSortOrder" />
692
                                            </xsl:if>
693
                                        </xsl:otherwise>
694
                                    </xsl:choose>
683
                                </xsl:attribute>
695
                                </xsl:attribute>
684
                            </xsl:otherwise>
696
                            </xsl:otherwise>
685
                        </xsl:choose>
697
                        </xsl:choose>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-5 / +14 lines)
Lines 786-795 Link Here
786
                                        </xsl:when>
786
                                        </xsl:when>
787
                                        <xsl:otherwise>
787
                                        <xsl:otherwise>
788
                                            <xsl:attribute name="href">
788
                                            <xsl:attribute name="href">
789
                                                <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:"</xsl:text>
789
                                                <xsl:choose>
790
                                                <xsl:value-of
790
                                                    <!-- If there's a $t subfield, treat as a title search -->
791
                                                    select="str:encode-uri(marc:subfield[@code='a'], true())" />
791
                                                    <xsl:when test="marc:subfield[@code='t']">
792
                                                <xsl:text>"</xsl:text>
792
                                                        <xsl:text>/cgi-bin/koha/opac-search.pl?q=ti,phr:"</xsl:text>
793
                                                        <xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())" />
794
                                                        <xsl:text>"</xsl:text>
795
                                                    </xsl:when>
796
                                                    <!-- Otherwise treat as an author search -->
797
                                                    <xsl:otherwise>
798
                                                        <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:"</xsl:text>
799
                                                        <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())" />
800
                                                        <xsl:text>"</xsl:text>
801
                                                    </xsl:otherwise>
802
                                                </xsl:choose>
793
                                                <xsl:if test="$AuthorLinkSortBy!='default'">
803
                                                <xsl:if test="$AuthorLinkSortBy!='default'">
794
                                                    <xsl:text>&amp;sort_by=</xsl:text>
804
                                                    <xsl:text>&amp;sort_by=</xsl:text>
795
                                                    <xsl:value-of select="$AuthorLinkSortBy" />
805
                                                    <xsl:value-of select="$AuthorLinkSortBy" />
796
- 

Return to bug 34025