Bug 41210 - Author field searches do not include enough fields
Summary: Author field searches do not include enough fields
Status: Failed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Nick Clemens (kidclamp)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-06 20:03 UTC by Nick Clemens (kidclamp)
Modified: 2025-11-14 21:34 UTC (History)
4 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41210: Add additional fields to author search links in staff interface (2.43 KB, patch)
2025-11-06 20:04 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 41210: (follow-up) Urlencode author names (1.05 KB, patch)
2025-11-14 19:52 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2025-11-06 20:03:49 UTC
For author fields like 110 / 710 we may have subordinate units or other info which is relevant to finding related records, currently none of these subfields are search so something like:
Paris. Salon (Société des artistes français)
Searches just:
Paris.
Comment 1 Nick Clemens (kidclamp) 2025-11-06 20:04:37 UTC
Created attachment 189226 [details] [review]
Bug 41210: Add additional fields to author search links in staff interface

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
Comment 2 Phil Ringnalda 2025-11-07 00:40:26 UTC
Pretty sure you need a "<xsl:with-param name="urlencode">1</xsl:with-param>" in your call-template to not have your link break on funky names.
Comment 3 Nick Clemens (kidclamp) 2025-11-14 19:52:18 UTC
Created attachment 189624 [details] [review]
Bug 41210: (follow-up) Urlencode author names
Comment 4 Phil Ringnalda 2025-11-14 21:34:08 UTC
With ES, the searches fail, since the mappings we ship don't index anything but subfield a in the au index.

With Zebra, au:"Beethoven, Ludwig van, (Spirit)" fails because subfield d is indexed, so while au:"Beethoven, Ludwig van, 1770-1827 (Spirit)" would work, without the date it doesn't match.