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

(-)a/C4/Search.pm (-2 / +2 lines)
Lines 363-372 sub getRecords { Link Here
363
                $sort_by .= "1=1003 >i ";
363
                $sort_by .= "1=1003 >i ";
364
            }
364
            }
365
            elsif ( $sort eq "popularity_asc" ) {
365
            elsif ( $sort eq "popularity_asc" ) {
366
                $sort_by .= "1=9003 <i ";
366
                $sort_by .= "1=9003,4=109 <i ";
367
            }
367
            }
368
            elsif ( $sort eq "popularity_dsc" ) {
368
            elsif ( $sort eq "popularity_dsc" ) {
369
                $sort_by .= "1=9003 >i ";
369
                $sort_by .= "1=9003,4=109 >i ";
370
            }
370
            }
371
            elsif ( $sort eq "call_number_asc" ) {
371
            elsif ( $sort eq "call_number_asc" ) {
372
                $sort_by .= "1=8007  <i ";
372
                $sort_by .= "1=8007  <i ";
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-3 / +10 lines)
Lines 658-664 Link Here
658
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
658
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
659
            </xsl:when>
659
            </xsl:when>
660
            <xsl:when test="$TraceSubjectSubdivisions='1'">
660
            <xsl:when test="$TraceSubjectSubdivisions='1'">
661
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:call-template name="subfieldSelectSubject">
661
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=
662
                <xsl:call-template name="subfieldSelectSubject">
662
                        <xsl:with-param name="codes">abcdfgklmnopqrstvxyz</xsl:with-param>
663
                        <xsl:with-param name="codes">abcdfgklmnopqrstvxyz</xsl:with-param>
663
                        <xsl:with-param name="delimeter"> AND </xsl:with-param>
664
                        <xsl:with-param name="delimeter"> AND </xsl:with-param>
664
                        <xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/></xsl:with-param>
665
                        <xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/></xsl:with-param>
Lines 1578-1584 Link Here
1578
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
1579
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
1579
            </xsl:when>
1580
            </xsl:when>
1580
            <xsl:otherwise>
1581
            <xsl:otherwise>
1581
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
1582
            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"
1583
                <xsl:call-template name="subfieldSelectSubject">
1584
                        <xsl:with-param name="codes">abcdfgklmnopqrstvxyz</xsl:with-param>
1585
                        <xsl:with-param name="delimeter"> AND </xsl:with-param>
1586
                        <xsl:with-param name="prefix">(au:<xsl:value-of select="$TracingQuotesLeft"/></xsl:with-param>
1587
                        <xsl:with-param name="suffix"><xsl:value-of select="$TracingQuotesRight"/>)</xsl:with-param>
1588
                        <xsl:with-param name="urlencode">1</xsl:with-param>
1589
                    </xsl:call-template>
1582
            </xsl:otherwise>
1590
            </xsl:otherwise>
1583
        </xsl:choose>
1591
        </xsl:choose>
1584
        <xsl:choose>
1592
        <xsl:choose>
1585
- 

Return to bug 13976