Bug 24728

Summary: Short Last Name Search Issue
Product: Koha Reporter: Christofer Zorn <christofer.zorn>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, katrin.fischer, kyle.m.hall
Version: 19.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Christofer Zorn 2020-02-25 14:30:32 UTC
Hello!

It was brought to my attention that if a patron has a last name that is two characters long (for example "Lo"), that when you perform a patron search using the top bar, the patron is not found.

If you perform the same "filtered" search using "Lo" and "Starts with", results are returned as expected. In our instance, we have between 8 and 10 patrons with the last name "Lo" that do not appear.

While I understand that altering the SQL to become shorter will impact what the search results show, there should be away for staff to locate patrons with short names the same way they do for longer names.

I'm not sure if this is a legitimate bug or just a limitation, but I wanted to throw this out there and see what comes of it.

Thank you!

Christofer
Comment 1 Katrin Fischer 2020-03-15 22:06:25 UTC
Hi Christopher,
I just tested this on master with a user 'lo' and it worked on the patron and circulation searches for me.

Maybe the behaviour seen is that the auto-suggest feature requires more characters? If you 'enter' the search lo, the search works as expected for me.
Comment 2 Christofer Zorn 2020-03-16 15:32:17 UTC
I just ran it again and found the "Lo" last name on page 86 of our search results. I've given our staff a work around, so let's leave it at that then and close this off.

Thanks Katrin!

Christofer