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

(-)a/C4/XSLT.pm (-1 / +2 lines)
Lines 98-104 sub get_xslt_sysprefs { Link Here
98
                              OPACResultsLibrary OPACShowOpenURL
98
                              OPACResultsLibrary OPACShowOpenURL
99
                              OpenURLResolverURL OpenURLImageLocation
99
                              OpenURLResolverURL OpenURLImageLocation
100
                              OPACResultsMaxItems OPACResultsMaxItemsUnavailable OPACResultsUnavailableGroupingBy
100
                              OPACResultsMaxItems OPACResultsMaxItemsUnavailable OPACResultsUnavailableGroupingBy
101
                              OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts ContentWarningField / )
101
                              OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts ContentWarningField
102
                              AuthorLinkSortBy AuthorLinkSortOrder / )
102
    {
103
    {
103
        my $sp = C4::Context->preference( $syspref );
104
        my $sp = C4::Context->preference( $syspref );
104
        next unless defined($sp);
105
        next unless defined($sp);
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+2 lines)
Lines 75-80 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
75
('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority details page in the OPAC','Free'),
75
('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority details page in the OPAC','Free'),
76
('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page in the OPAC','Free'),
76
('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page in the OPAC','Free'),
77
('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free'),
77
('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free'),
78
('AuthorLinkSortBy','default','call_number|pubdate|acqdate|title','Specify the default field used for sorting when click author links','Choice'),
79
('AuthorLinkSortOrder','asc','asc|dsc|az|za','Specify the default sort order for author links','Choice'),
78
('AuthSuccessLog','0',NULL,'If enabled, log successful authentications','YesNo'),
80
('AuthSuccessLog','0',NULL,'If enabled, log successful authentications','YesNo'),
79
('autoBarcode','OFF','incremental|annual|hbyymmincr|EAN13|OFF','Used to autogenerate a barcode: incremental will be of the form 1, 2, 3; annual of the form 2007-0001, 2007-0002; hbyymmincr of the form HB08010001 where HB=Home Branch','Choice'),
81
('autoBarcode','OFF','incremental|annual|hbyymmincr|EAN13|OFF','Used to autogenerate a barcode: incremental will be of the form 1, 2, 3; annual of the form 2007-0001, 2007-0002; hbyymmincr of the form HB08010001 where HB=Home Branch','Choice'),
80
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
82
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (+17 lines)
Lines 174-179 Searching: Link Here
174
                  dsc: descending.
174
                  dsc: descending.
175
                  az: from A to Z.
175
                  az: from A to Z.
176
                  za: from Z to A.
176
                  za: from Z to A.
177
        -
178
            - By default, sort search results from author links by
179
            - pref: AuthorLinkSortBy
180
              default: default
181
              choices:
182
                  default: obey default sort field and order specified in defaultSortField or OPACdefaultSortField
183
                  call_number: call number
184
                  pubdate: date of publication
185
                  acqdate: date added
186
                  title: title
187
            - ','
188
            - pref: AuthorLinkSortOrder
189
              choices:
190
                  asc: ascending.
191
                  dsc: descending.
192
                  az: from A to Z.
193
                  za: from Z to A.
177
        -
194
        -
178
            - When limiting search results with a library or library group, limit by the item's
195
            - When limiting search results with a library or library group, limit by the item's
179
            - pref: SearchLimitLibrary
196
            - pref: SearchLimitLibrary
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-2 / +29 lines)
Lines 24-29 Link Here
24
        <xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
24
        <xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
25
        <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
25
        <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
26
        <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
26
        <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
27
        <xsl:variable name="AuthorLinkSortBy" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortBy']"/>
28
        <xsl:variable name="AuthorLinkSortOrder" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortOrder']"/>
27
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
29
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
28
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
30
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
29
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
31
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
Lines 155-166 Link Here
155
        <xsl:call-template name="showAuthor">
157
        <xsl:call-template name="showAuthor">
156
            <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/>
158
            <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/>
157
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
159
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
160
            <xsl:with-param name="AuthorLinkSortOrder" select="$AuthorLinkSortOrder"/>
161
            <xsl:with-param name="AuthorLinkSortBy" select="$AuthorLinkSortBy"/>
158
        </xsl:call-template>
162
        </xsl:call-template>
159
163
160
        <!-- #13382 Suppress 700$i and 7xx/@ind2=2 -->
164
        <!-- #13382 Suppress 700$i and 7xx/@ind2=2 -->
161
        <xsl:call-template name="showAuthor">
165
        <xsl:call-template name="showAuthor">
162
            <xsl:with-param name="authorfield" select="marc:datafield[(@tag=700 or @tag=710 or @tag=711) and not(@ind2=2) and not(marc:subfield[@code='i'])]"/>
166
            <xsl:with-param name="authorfield" select="marc:datafield[(@tag=700 or @tag=710 or @tag=711) and not(@ind2=2) and not(marc:subfield[@code='i'])]"/>
163
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
167
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
168
            <xsl:with-param name="AuthorLinkSortOrder" select="$AuthorLinkSortOrder"/>
169
            <xsl:with-param name="AuthorLinkSortBy" select="$AuthorLinkSortBy"/>
164
        </xsl:call-template>
170
        </xsl:call-template>
165
171
166
    <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
172
    <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
Lines 1608-1613 Link Here
1608
    <xsl:template name="showAuthor">
1614
    <xsl:template name="showAuthor">
1609
	<xsl:param name="authorfield"/>
1615
	<xsl:param name="authorfield"/>
1610
    <xsl:param name="UseAuthoritiesForTracings"/>
1616
    <xsl:param name="UseAuthoritiesForTracings"/>
1617
    <xsl:param name="AuthorLinkSortBy"/>
1618
    <xsl:param name="AuthorLinkSortOrder"/>
1611
	<xsl:if test="count($authorfield)&gt;0">
1619
	<xsl:if test="count($authorfield)&gt;0">
1612
        <h5 class="author">
1620
        <h5 class="author">
1613
        <xsl:for-each select="$authorfield">
1621
        <xsl:for-each select="$authorfield">
Lines 1621-1630 Link Here
1621
        <a>
1629
        <a>
1622
        <xsl:choose>
1630
        <xsl:choose>
1623
            <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
1631
            <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
1624
                <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>
1632
                <xsl:attribute name="href">
1633
                    <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=an:</xsl:text>
1634
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/>
1635
                    <xsl:if test="$AuthorLinkSortBy!='default'">
1636
                        <xsl:text>&amp;sort_by=</xsl:text>
1637
                        <xsl:value-of select="$AuthorLinkSortBy"/>
1638
                        <xsl:text>_</xsl:text>
1639
                        <xsl:value-of select="$AuthorLinkSortOrder"/>
1640
                    </xsl:if>
1641
                </xsl:attribute>
1625
            </xsl:when>
1642
            </xsl:when>
1626
            <xsl:otherwise>
1643
            <xsl:otherwise>
1627
            <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>
1644
                <xsl:attribute name="href">
1645
                    <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=au:"</xsl:text>
1646
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
1647
                    <xsl:text>"</xsl:text>
1648
                    <xsl:if test="$AuthorLinkSortBy!='default'">
1649
                        <xsl:text>&amp;sort_by=</xsl:text>
1650
                        <xsl:value-of select="$AuthorLinkSortBy"/>
1651
                        <xsl:text>_</xsl:text>
1652
                        <xsl:value-of select="$AuthorLinkSortOrder"/>
1653
                    </xsl:if>
1654
                </xsl:attribute>
1628
            </xsl:otherwise>
1655
            </xsl:otherwise>
1629
        </xsl:choose>
1656
        </xsl:choose>
1630
        <xsl:choose>
1657
        <xsl:choose>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-2 / +23 lines)
Lines 24-29 Link Here
24
        <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
24
        <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
25
        <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
25
        <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
26
        <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
26
        <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
27
        <xsl:variable name="AuthorLinkSortBy" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortBy']"/>
28
        <xsl:variable name="AuthorLinkSortOrder" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortOrder']"/>
27
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
29
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
28
        <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
30
        <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
29
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
31
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
Lines 350-359 Link Here
350
            <a>
352
            <a>
351
                <xsl:choose>
353
                <xsl:choose>
352
                    <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
354
                    <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
353
                        <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>
355
                        <xsl:attribute name="href">
356
                            <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=an:</xsl:text>
357
                            <xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/>
358
                            <xsl:if test="$AuthorLinkSortBy!='default'">
359
                                <xsl:text>&amp;sort_by=</xsl:text>
360
                                <xsl:value-of select="$AuthorLinkSortBy"/>
361
                                <xsl:text>_</xsl:text>
362
                                <xsl:value-of select="$AuthorLinkSortOrder" />
363
                            </xsl:if>
364
                        </xsl:attribute>
354
                    </xsl:when>
365
                    </xsl:when>
355
                    <xsl:otherwise>
366
                    <xsl:otherwise>
356
                        <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>
367
                        <xsl:attribute name="href">
368
                            <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=au:"</xsl:text>
369
                            <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
370
                            <xsl:text>"</xsl:text>
371
                            <xsl:if test="$AuthorLinkSortBy!='default'">
372
                                <xsl:text>&amp;sort_by=</xsl:text>
373
                                <xsl:value-of select="$AuthorLinkSortBy"/>
374
                                <xsl:text>_</xsl:text>
375
                                <xsl:value-of select="$AuthorLinkSortOrder" />
376
                            </xsl:if>
377
                        </xsl:attribute>
357
                    </xsl:otherwise>
378
                    </xsl:otherwise>
358
                </xsl:choose>
379
                </xsl:choose>
359
                <xsl:call-template name="chopPunctuation">
380
                <xsl:call-template name="chopPunctuation">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-2 / +29 lines)
Lines 26-31 Link Here
26
26
27
    <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
27
    <xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable>
28
    <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
28
    <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
29
    <xsl:variable name="AuthorLinkSortBy" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortBy']"/>
30
    <xsl:variable name="AuthorLinkSortOrder" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortOrder']"/>
29
    <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
31
    <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
30
    <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
32
    <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
31
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
33
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
Lines 174-179 Link Here
174
        <xsl:call-template name="showAuthor">
176
        <xsl:call-template name="showAuthor">
175
            <xsl:with-param name="authorfield" select="marc:datafield[(@tag=100 or @tag=110 or @tag=111)]"/>
177
            <xsl:with-param name="authorfield" select="marc:datafield[(@tag=100 or @tag=110 or @tag=111)]"/>
176
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
178
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
179
            <xsl:with-param name="AuthorLinkSortOrder" select="$AuthorLinkSortOrder"/>
180
            <xsl:with-param name="AuthorLinkSortBy" select="$AuthorLinkSortBy"/>
177
            <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
181
            <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
178
            <xsl:with-param name="theme" select="$theme"/>
182
            <xsl:with-param name="theme" select="$theme"/>
179
        </xsl:call-template>
183
        </xsl:call-template>
Lines 182-187 Link Here
182
            <!-- #13382 suppress 700$i and 7xx/@ind2=2 -->
186
            <!-- #13382 suppress 700$i and 7xx/@ind2=2 -->
183
            <xsl:with-param name="authorfield" select="marc:datafield[(@tag=700 or @tag=710 or @tag=711) and not(@ind2=2) and not(marc:subfield[@code='i'])]"/>
187
            <xsl:with-param name="authorfield" select="marc:datafield[(@tag=700 or @tag=710 or @tag=711) and not(@ind2=2) and not(marc:subfield[@code='i'])]"/>
184
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
188
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
189
            <xsl:with-param name="AuthorLinkSortOrder" select="$AuthorLinkSortOrder"/>
190
            <xsl:with-param name="AuthorLinkSortBy" select="$AuthorLinkSortBy"/>
185
            <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
191
            <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
186
            <xsl:with-param name="theme" select="$theme"/>
192
            <xsl:with-param name="theme" select="$theme"/>
187
        </xsl:call-template>
193
        </xsl:call-template>
Lines 1802-1807 Link Here
1802
    <xsl:template name="showAuthor">
1808
    <xsl:template name="showAuthor">
1803
        <xsl:param name="authorfield" />
1809
        <xsl:param name="authorfield" />
1804
        <xsl:param name="UseAuthoritiesForTracings" />
1810
        <xsl:param name="UseAuthoritiesForTracings" />
1811
        <xsl:param name="AuthorLinkSortBy"/>
1812
        <xsl:param name="AuthorLinkSortOrder"/>
1805
        <xsl:param name="materialTypeLabel" />
1813
        <xsl:param name="materialTypeLabel" />
1806
        <xsl:param name="theme" />
1814
        <xsl:param name="theme" />
1807
        <xsl:if test="count($authorfield)&gt;0">
1815
        <xsl:if test="count($authorfield)&gt;0">
Lines 1831-1840 Link Here
1831
            <a>
1839
            <a>
1832
                <xsl:choose>
1840
                <xsl:choose>
1833
                    <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
1841
                    <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
1834
                        <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:"<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/>"</xsl:attribute>
1842
                        <xsl:attribute name="href">
1843
                            <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
1844
                            <xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/>
1845
                            <xsl:if test="$AuthorLinkSortBy!='default'">
1846
                                <xsl:text>&amp;sort_by=</xsl:text>
1847
                                <xsl:value-of select="$AuthorLinkSortBy"/>
1848
                                <xsl:text>_</xsl:text>
1849
                                <xsl:value-of select="$AuthorLinkSortOrder" />
1850
                            </xsl:if>
1851
                        </xsl:attribute>
1835
                    </xsl:when>
1852
                    </xsl:when>
1836
                    <xsl:otherwise>
1853
                    <xsl:otherwise>
1837
                        <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
1854
                        <xsl:attribute name="href">
1855
                            <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:"</xsl:text>
1856
                            <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
1857
                            <xsl:text>"</xsl:text>
1858
                            <xsl:if test="$AuthorLinkSortBy!='default'">
1859
                                <xsl:text>&amp;sort_by=</xsl:text>
1860
                                <xsl:value-of select="$AuthorLinkSortBy"/>
1861
                                <xsl:text>_</xsl:text>
1862
                                <xsl:value-of select="$AuthorLinkSortOrder" />
1863
                            </xsl:if>
1864
                        </xsl:attribute>
1838
                    </xsl:otherwise>
1865
                    </xsl:otherwise>
1839
                </xsl:choose>
1866
                </xsl:choose>
1840
                <xsl:attribute name="class">contributors</xsl:attribute>
1867
                <xsl:attribute name="class">contributors</xsl:attribute>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-3 / +23 lines)
Lines 28-33 Link Here
28
    <xsl:variable name="OPACResultsUnavailableGroupingBy" select="marc:sysprefs/marc:syspref[@name='OPACResultsUnavailableGroupingBy']"/>
28
    <xsl:variable name="OPACResultsUnavailableGroupingBy" select="marc:sysprefs/marc:syspref[@name='OPACResultsUnavailableGroupingBy']"/>
29
    <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
29
    <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
30
    <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
30
    <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
31
    <xsl:variable name="AuthorLinkSortBy" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortBy']"/>
32
    <xsl:variable name="AuthorLinkSortOrder" select="marc:sysprefs/marc:syspref[@name='AuthorLinkSortOrder']"/>
31
    <xsl:variable name="OPACResultsLibrary" select="marc:sysprefs/marc:syspref[@name='OPACResultsLibrary']"/>
33
    <xsl:variable name="OPACResultsLibrary" select="marc:sysprefs/marc:syspref[@name='OPACResultsLibrary']"/>
32
    <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
34
    <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
33
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
35
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
Lines 525-534 Link Here
525
                <a>
527
                <a>
526
                    <xsl:choose>
528
                    <xsl:choose>
527
                        <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
529
                        <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
528
                            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
530
                            <xsl:attribute name="href">
531
                                <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
532
                                <xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/>
533
                                <xsl:if test="$AuthorLinkSortBy!='default'">
534
                                    <xsl:text>&amp;sort_by=</xsl:text>
535
                                    <xsl:value-of select="$AuthorLinkSortBy"/>
536
                                    <xsl:text>_</xsl:text>
537
                                    <xsl:value-of select="$AuthorLinkSortOrder" />
538
                                </xsl:if>
539
                            </xsl:attribute>
529
                        </xsl:when>
540
                        </xsl:when>
530
                        <xsl:otherwise>
541
                        <xsl:otherwise>
531
                            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
542
                            <xsl:attribute name="href">
543
                                <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:"</xsl:text>
544
                                <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
545
                                <xsl:text>"</xsl:text>
546
                                <xsl:if test="$AuthorLinkSortBy!='default'">
547
                                    <xsl:text>&amp;sort_by=</xsl:text>
548
                                    <xsl:value-of select="$AuthorLinkSortBy"/>
549
                                    <xsl:text>_</xsl:text>
550
                                    <xsl:value-of select="$AuthorLinkSortOrder" />
551
                                </xsl:if>
552
                            </xsl:attribute>
532
                        </xsl:otherwise>
553
                        </xsl:otherwise>
533
                    </xsl:choose>
554
                    </xsl:choose>
534
                    <xsl:call-template name="chopPunctuation">
555
                    <xsl:call-template name="chopPunctuation">
535
- 

Return to bug 33217