Bugzilla – Attachment 170798 Details for
Bug 37744
MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Bug-37744---MARC21slimUtilsxslt-show-series-has-a-.patch (text/plain), 3.63 KB, created by
Olli-Antti Kivilahti
on 2024-08-28 07:10:32 UTC
(
hide
)
Description:
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Filename:
MIME Type:
Creator:
Olli-Antti Kivilahti
Created:
2024-08-28 07:10:32 UTC
Size:
3.63 KB
patch
obsolete
>From ad3cc3ae95f61284f890e44051570d72a2c2690c Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@hypernova.fi> >Date: Mon, 26 Aug 2024 18:13:33 +0300 >Subject: [PATCH] Bug 37744 - MARC21slimUtils.xslt show-series has a wrong > search index 'au' for 810$a > >Using Elasticsearch > >810$a is not indexed in Elastic search mappings as an 'author'-index -field. >810 is mapped to the 'author-name-corporate'-index. >'author-name-corporate'-index is the correct index for 810-field. > >TEST PLAN: >- Create a record with Fields 810$a and 810$t >- A Series-link is generated in the biblio detail.pl and search results XSLT-views. >- The link has a bad search query: (title-series:"Value from 810$t") (author:"Value from 810$a") >-- 'author'-search doesnt find anything as the 810$a is not indexed to 'author'-index. >- This patch changes the 'author'-search to 'author-name-corporate'-search, and the search returns results. > >Alternatively: >It might be desirable to add 810$a to the 'author'-index. >There is a specific search for 'author-name-corporate' using the advanced search. > >Related to: >Bug 37743 - MARC21 810$t is used in XSLT templates but is not editable by default. >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >index 45e0ee2252..13e61f1f5a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >@@ -487,7 +487,7 @@ > </a> > </xsl:when> > <xsl:otherwise> >- <a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/>"&q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> >+ <a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/>"&q=author-name-corporate:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >index 9d35b9f94a..a9aa5b0d27 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl >@@ -451,7 +451,7 @@ > </a> > </xsl:when> > <xsl:otherwise> >- <a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/>"&q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> >+ <a><xsl:attribute name="href"><xsl:value-of select="$searchurl"/>?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/>"&q=author-name-corporate:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37744
:
170756
|
170757
|
170797
| 170798