Bug 13452: 'Average loan time' report to obey item-level_itypes preference
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 8 Jun 2015 23:04:07 +0000 (01:04 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 27 Jun 2017 21:25:07 +0000 (23:25 +0200)
commit9d558d580c2e8ef949bdb74c8108a0d6d7afe453
tree99bab82218d8fc56e4ce16a29a7ce1fb72377b02
parent52f376e1b90a873726f5cbd26505b319c57581ac
Bug 13452: 'Average loan time' report to obey item-level_itypes preference

Fixes the 'Average loan time' report so that the system
preference setting item-level_itypes is taken into account.

Before the patch, the report was always using the biblio
level itemtype. With the patch, it will depend on the pref
setting.

To test:
- Run various reports, compare results with both
  possible pref settings
- Try limiting your search in various ways, especially
  on a specific itemtype
- Make sure you switch checkboxes in testing,
  using itemtype as the row or as the column

Notes:
- Filtering on a specific itemtype on master was not working
  if the itemtype was chosen as column. The patch should fix that.
- Fixes headings and breadcrumbs so that the name of the report
  is the same as on the reports start page

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d0bf036c1828bbbd37a022f8449e217e8e269475)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9b8023044a979cc24c92493431e9e9d33c52c6a6)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt
reports/issues_avg_stats.pl