Bug 8427

Summary: Patron search results not consistent
Product: Koha Reporter: Kyle M Hall <kyle.m.hall>
Component: PatronsAssignee: Kyle M Hall <kyle.m.hall>
Status: CLOSED FIXED QA Contact: Paul Poulain <paul.poulain>
Severity: minor    
Priority: P5 - low CC: chris, gmcharlt, jonathan.druart, katrin.fischer, kyle.m.hall, paul.poulain
Version: 3.8   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 8427 - Patron search results not consistent
Bug 8427 - Patron search results not consistent
Bug 8427 - Patron search results not consistent

Description Kyle M Hall 2012-07-12 11:54:22 UTC
Using the patron search from mainpage.pl will give one search results that are ordered by surname, then firstname. This is totally logical.

However, the same search from members-home.pl ( or any page using patron-search.inc ) has the results sorted by surname only, with the firstname ordering being essentially random ( in reality, the firstname order is the order in which they were entered into the database ).

To me, it does not make sense that two default patron searches should give different sets of results.
Comment 1 Kyle M Hall 2012-07-12 11:56:25 UTC Comment hidden (obsolete)
Comment 2 Katrin Fischer 2012-07-12 12:21:23 UTC
I think default is not so nice for translations and also not very clear - maybe we could make it "full name" or "surname, firstname"?
Comment 3 Kyle M Hall 2012-07-12 12:28:50 UTC Comment hidden (obsolete)
Comment 4 Jonathan Druart 2012-07-17 14:31:06 UTC
Created attachment 10898 [details] [review]
Bug 8427 - Patron search results not consistent

Simple fix, removed the directive to order by surname, and the system
now orders by surname, then firstname.
Comment 5 Paul Poulain 2012-08-02 11:41:04 UTC
QA comment: tiny patch, passes QA
Comment 6 Paul Poulain 2012-08-02 11:41:45 UTC
Maybe saying it's a "normal" bug is a little bit too much. Lowering to "minor", but agreed it's a bug
Comment 7 Chris Cormack 2013-04-20 22:07:13 UTC
Released in 3.10.0