Bug 35690

Summary: Searching patrons with contains does not provide relevant results
Product: Koha Reporter: Laura Escamilla <Laura.escamilla>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, jonathan.druart, kyle.m.hall, madamyk
Version: Main   
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 2024-01-03 17:56:36 UTC
Example:

In this example the library has the PatronSearchMethod system preference set to 'contains'.

They attempted to search for a patron named 'Don Smith' but the primary search results are showing names such as 'Brandon Smith' and patrons who are located at their 'Smith Public Library' such as 'Madonna Jones - Smith Public Library'. 

It would be ideal if the search results showed relevant patrons first before suggesting patrons located at their 'Smith Public Library'.
Comment 1 Jonathan Druart 2024-01-11 08:18:53 UTC
I do not recreate the problem with the default data. If you do on a sandbox, please provide the different steps.

https://snipboard.io/Y3X4ub.jpg

https://snipboard.io/w2Tr94.jpg