bug 2866: Overdues Reports - Upgrading to filter by patron extended attributes
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 13 Feb 2009 15:39:38 +0000 (09:39 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 29 May 2009 00:20:36 +0000 (19:20 -0500)
commitab44e2986a0664c1f6c87d7a292d76e547ab978e
tree72a4d03a8a77e2768423c1edd5b043ca1f061914
parentdfdbb91fcbfca446b297156c7a0327770616056c
bug 2866: Overdues Reports - Upgrading to filter by patron extended attributes

Patch by Rick Welykochy <rick@praxis.com.au> with some squashing
by me.

Bug Report: 2866 Filtering and sorting the overdue report using patron attributes

1. Create a new system preference ?FilterBeforeOverdueReport?
2. Option to filter *before* the overdue report runs, avoiding report slowness
3. Add searchable patron attributes to the list of overdue report filters
4. Add searchable patron attributes to the sort fields on the overdue report
5. add item call number and replacement price
6. the CSV download link now returns the same
   data as the web report, rather than (inconsistently)
   trying to run the overdue_notices.pl batch job
7. always run report if requesting CSV
8. barcodes are now links
9. use item-level item type for overdue itemtype filter

Included is a new callback for searching patron attributes, similar
to circ/ysearch.pl.

The following additional bugs are fixed:

2748: Nothing is output to the .csv file for the "Overdues" circulation report

This is fixed by having circ/overdues.pl produce the CSV output directly instead
of trying to call the overdues cronjob.  The CSV output includes all of the fields
that are displayed on the web table plus the item replacement price and any extended
patron attributes.

2836: overdues.csv may contain HTML
2837: Descending sort doesn't descend on the overdues report plus other probs with report

This enhancement was sponsored by the Plano Independent School District.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
admin/systempreferences.pl
circ/overdue.pl
circ/ypattrodue-attr-search-authvalue.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl