Koha/koha-tmpl/intranet-tmpl/prog/en
Ian Walls 26acaf3dfa Bug 6801: checkoverdues returns unnecessary fields, causing slowness
Explicitly specifies which fields to return in C4::Overdues::checkoverdues
SQL:  all of biblio, items, and issues, and everything in biblioitems
EXCEPT marc, marcxml and timestamp.

Bug 6801: member details page taking long time to load when many checkouts present

This patch removes the call to GetMemberDetails in build_issue_data; this heavy-weight
subroutine was being run for every single item a patron (or their relatives) have checked out.
Instead, the borrowers first name, surname and cardnumber are added to the GetPendingIssues query.
I believe this is reasonable since GetPendingIssues can now return issues for multiple borrowers.

Also corrects the $borrowernumber used for GetIssuesCharges and CanItemBeRenewed; was using the borrower whose
page we were on, NOT the borrower of that specific item (which would be different in the Relatives Checkouts tab).

Template calls to [% scope.borrowername %] are now broken up into [% scope.firstname %] [% scope.surname %].

Signed-off-by: Liz Rea <lrea@nekls.org>
On my test data, a patron with 180 checkouts (without this patch) would take more than a minute to bring back the circulation.pl and moremember.pl pages.
With this patch, the time is reduced to 5 or so seconds.

Big ups to Ian for tenaciously hunting this one down.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-09-27 09:43:25 +13:00
..
css Bug 6901: Add classes to XSLT detail view in STAFF 2011-09-24 19:49:20 +12:00
includes Bug 6871 - add schema and sql library reports to guided reports sidebar 2011-09-25 15:10:37 +13:00
js Bug 6715 - Fix xmlControlfield.js so the xml files are fetched in the correct language directory. 2011-08-28 19:54:36 +12:00
lib Bug 6748 - Add link to fast add framework while circulating, if a barcode is not found 2011-08-26 15:03:01 +12:00
modules Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-09-27 09:43:25 +13:00
xslt Bug 6901: Add classes to XSLT detail view in STAFF 2011-09-24 19:49:20 +12:00
columns.def Bug 5268: Change all occurances of 'debar' to 'restrict' 2011-06-07 11:28:01 +12:00