Bug 11756: improve default sorting on hold ratios report
authorOwen Leonard <oleonard@myacpl.org>
Fri, 14 Feb 2014 13:48:46 +0000 (08:48 -0500)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Jun 2014 11:35:33 +0000 (07:35 -0400)
commit1c0be23f5d174950fd8fc0c16d6a1ddc2a1e8c49
treeffead45eb626913cd7fd4660852d98775a6cd9f4
parent26a85e954f9bc2872e2de42b3787afea53cdd25b
Bug 11756: improve default sorting on hold ratios report

The DataTables plugin doesn't by default take multiple columns into
account when sorting. The hold ratios report presents a situation where
it makes sense to sort by default based on two columns: hold count and
title, since there are likely to be many titles with the same hold
count.

This patch adds sorting by default on holds (descending) and title
(ascending). It also modifies the configuration of the title sort to
exclude articles when sorting.

To test, view the hold ratios report. If necessary use the filter form
to reduce the minimum hold ratio and generate more results. Confirm that
the correct columns can be sorted.

Note that by default one can manually trigger sorting on two columns by
shift-clicking the second column header.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 7514dc897cc49683915112229667ec1f654873ae)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit ca668451a71b178dbb37539c329af1de9726513e)
koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt