Bug 32273

Summary: Unable to set author subfields in Elastic search configuration
Product: Koha Reporter: Laura Escamilla <Laura.escamilla>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: nick
Version: 21.11   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Laura Escamilla 2022-11-18 16:01:35 UTC
In a situation in which you have 2 authors that are both named Barnaby Conrad but one has the authorized name of dates 1922-2013 and the other has III, 1952-. If you click on one of their names for a search from a record where they are the author, results for both show up as the search just does au:"Conrad, Barnaby,". Configuring subfields in the Elastic search do not resolve the problem. Current work around is to enable 'UseAuthoritiesForTracing.'
Comment 1 Nick Clemens (kidclamp) 2022-12-09 13:16:55 UTC
I think the problem here is actually in the XSLT - the links we form don't include the date fields:

koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl
1811                     <xsl:otherwise>
1812                         <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>
1813                     </xsl:otherwise>

So the searches will always be for the name portion only