Bug 8017 reduce manipulation of GetAllIssues return
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 27 Apr 2012 17:20:08 +0000 (18:20 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 13 Sep 2012 16:51:45 +0000 (18:51 +0200)
commitef7ebc4ed4004dd3287e87500a6cce266c59cba6
tree00e56a1963dc2022a81a60b4a3154f949e281cb6
parent2bcc305f86b76aab0ccb815ccfee8a9c8857328f
Bug 8017 reduce manipulation of GetAllIssues return

GetAllIssues can produce large lists
For performance purposes:
Dont loop over the list without cause
Dont do expensive processing in the loop
Dont needlessly copy the array
Do display formatting in the template
Dont extract the barcode list unless we are producing it
Reduce db calls by using the data to hand

Make the table in the template a bit more readable
where everything was stuffed into one line

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Members.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt
members/readingrec.pl
opac/opac-readingrecord.pl