]> git.koha-community.org Git - koha.git/commit
Bug 10868 - Use new DataTables include in catalog templates
authorOwen Leonard <oleonard@myacpl.org>
Tue, 10 Sep 2013 16:18:32 +0000 (12:18 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Sat, 21 Sep 2013 19:27:08 +0000 (19:27 +0000)
commit4885435c6ad33c2c3f3e93d0c14a9b2d659e2125
tree5438c4b66cc60fcb99388f2cc072d184938af243
parentfe3628070a7affddb691ee589ec0e63639d0a36a
Bug 10868 - Use new DataTables include in catalog templates

Bug 10649 introduced a new include file for adding DataTables-related
JavaScript assets. This patch adds use of this include file to all
catalog-related pages which use DataTables.

The checkout history script has been altered to send unformatted dates
to the template, and the template now uses the "title-string" sorting
filter to enable sorting on unformatted dates.

To test, view the following pages and confirm that table sorting is
still working correctly:

Catalog -> Biblio detail page
Catalog -> Biblio detail page -> Checkout history

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Sorting works. No koha-qa errors.
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Note: On the issue history page:
1/ If the checkin on is empty (the item is currently checked out), the line
is sorted in last.
2/ The Renewed column is not sorted by date.
Before this patch, the sort was worse.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
catalogue/issuehistory.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt