Bug 34025: Changing default link search from au to ti,phr for X30 fields as they are are title type ones. These apply if there is no authorised term linked to for the content
Test plan:
==========
1. Add some 130, 240, 730 + 7XX $a + $t fields to a record. Note that 730
and 7XX $a + $t fields have to have 2nd indicator set to 2.
You can link the fields to authority records. Ensure that one of the fields is not linkable to an authority record and leave it unlinked.
2. Note that the information displayed from these fields is not
'clickable' neither in OPAC, nor in the staff interface.
3. Apply the patch ; restart all.
4. You should be able to see and use the links now. If the fields are
linked to authotiry record and UseAuthoritiesForTracings
systempreference is set, the search will be performed with
authid identifier. There should be also a magnifying glass icon
with a link to the authority record.
5. The links for any unlinked authority should now point to ti,phr - eg /cgi-bin/koha/catalogue/search.pl?q=ti,phr:%22Uniform%20Bernard%22 instead of au
6. Click that link and ensure it finds at least one record (the one you started with)
Signed-off-by: Bernard Scaife <bernard.scaife@openfifth.co.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1cc432c168)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
1c5d80f70c
commit
bc42d53477
|
|
@ -622,7 +622,7 @@
|
|||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>/cgi-bin/koha/catalogue/search.pl?q=au:"</xsl:text>
|
||||
<xsl:text>/cgi-bin/koha/catalogue/search.pl?q=ti,phr:"</xsl:text>
|
||||
<xsl:value-of
|
||||
select="str:encode-uri(marc:subfield[@code='a'], true())" />
|
||||
<xsl:text>"</xsl:text>
|
||||
|
|
|
|||
|
|
@ -717,7 +717,7 @@
|
|||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>/cgi-bin/koha/opac-search.pl?q=au:"</xsl:text>
|
||||
<xsl:text>/cgi-bin/koha/opac-search.pl?q=ti,phr:"</xsl:text>
|
||||
<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:if test="$AuthorLinkSortBy!='default'">
|
||||
|
|
|
|||
Loading…
Reference in New Issue