Bug 4470 Patron search result pagination bar
authorFrédéric Demians <f.demians@tamil.fr>
Sat, 8 May 2010 06:27:51 +0000 (08:27 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 13 May 2010 19:22:31 +0000 (07:22 +1200)
commit089e23786d9f3a8bcc015dae00f63dd188e7e577
tree79507db0451ec7c7097c7fcfd7b74fa8e937dce5
parentb4eb19b6d302fe1b72ead723e14830345ca5e382
Bug 4470 Patron search result pagination bar

Obviously, Koha global pagination function could be improved. This patch
do something which belongs to this function. A CPAN module like
Data::Page could help or be an inspiration... 3.4?

There is also room for improvement in they way resultset are
constructed. The whole set is retrieved and just a subset is displayed.
It impacts performances for libraries with a great number of patrons.
The right solution would be:

  - to find the resultset size with SELECT COUNT(*)
  - to retrieved the exact subset with LIMIT and OFFSET SQL arguments

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
members/member.pl