Bugzilla – Attachment 189226 Details for
Bug 41210
Author field searches do not include enough fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41210: Add additional fields to author search links in staff interface
Bug-41210-Add-additional-fields-to-author-search-l.patch (text/plain), 2.43 KB, created by
Nick Clemens (kidclamp)
on 2025-11-06 20:04:37 UTC
(
hide
)
Description:
Bug 41210: Add additional fields to author search links in staff interface
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-11-06 20:04:37 UTC
Size:
2.43 KB
patch
obsolete
>From 937679bb2a93dadebedadb45b8d7bcec5a2b960f Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 6 Nov 2025 19:58:38 +0000 >Subject: [PATCH] Bug 41210: Add additional fields to author search links in > staff interface >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch adds fields to the search for author fields > >To test: >1 - Edit a record, add additional author fields > >100 _ _ â¡aaSeuss,â¡cDr. >700 1 _ â¡aH. D.â¡q(Hilda Doolittle),â¡d1886-1961. >700 _ _ â¡aBeethoven, Ludwig van,â¡d1770-1827â¡c(Spirit) >110 1 _ â¡aFreemasons.â¡bConcordia Lodge, No. 13 (Baltimore, Md.) >111 _ _ â¡aStour Music Festival.â¡eOrchestra. >711 _ _ â¡aParisâ¡qSalon (Société des artistes français) > >2 - View the record in staff interface >3 - Note all the author searches are subfield 'a' only >4 - Apply patch, now we have > x00 = abcq > x10 = ab > x11 = aeq >5 - Confirm this is better >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index be69a2094ae..68bd9be2655 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1695,7 +1695,16 @@ > <xsl:otherwise> > <xsl:attribute name="href"> > <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=au:"</xsl:text> >- <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes"> >+ <xsl:choose> >+ <xsl:when test="@tag=100 or @tag=700">abcjq</xsl:when> >+ <xsl:when test="@tag=110 or @tag=710">ab</xsl:when> >+ <xsl:when test="@tag=111 or @tag=711">aeq</xsl:when> >+ <xsl:otherwise>a</xsl:otherwise> >+ </xsl:choose> >+ </xsl:with-param> >+ </xsl:call-template> > <xsl:text>"</xsl:text> > <xsl:if test="$AuthorLinkSortBy!='default'"> > <xsl:text>&sort_by=</xsl:text> >-- >2.39.5
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 41210
: 189226 |
189624