Bug 7397 - Patron search from Checkout tab does 'contains' instead of 'starts_with' search
Summary: Patron search from Checkout tab does 'contains' instead of 'starts_with' search
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Ian Walls
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 20:56 UTC by Ian Walls
Modified: 2020-01-06 20:15 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Walls 2012-01-02 20:56:08 UTC
When searching for a patron using the Checkout tab, instead of the main Patron search, inexact searches (those returning more than 1 hit) do a 'contains' search instead of a 'starts_with' search (as one would expect from the Patron search module's behaviour).  The result is many, many more results than one would otherwise expect.

The call to Search() in circ/circulation.pl seems to be malformed given the documentation for how C4::Members::Search works.
Comment 1 Liz Rea 2012-03-19 19:03:45 UTC
Also, there had been discussion about removing the small results box in favor of just bringing back full results like the patron search does.
Comment 2 Albert Oller 2012-07-27 13:16:16 UTC
Is this a duplicate of 5370?
Comment 3 Albert Oller 2012-07-27 13:17:13 UTC
sorry, 5730 not 5370
Comment 4 Owen Leonard 2012-07-27 13:28:58 UTC
Write "Bug 5730" to activate automatic linking.
Comment 5 Barton Chittenden 2015-11-30 18:39:09 UTC
"Bug 5730" is concerned with the members search page; this bug has to do with the search on the check-out tab.
Comment 6 Fridolin Somers 2016-08-11 08:37:18 UTC
Obsolete since Bug 15930 ?
Comment 7 Liz Rea 2019-04-10 15:16:05 UTC
Yep!