]> git.koha-community.org Git - koha.git/commit
Bug 11736 - Use new DataTables include in Koha news templates
authorOwen Leonard <oleonard@myacpl.org>
Mon, 10 Feb 2014 19:13:11 +0000 (14:13 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 27 Feb 2014 15:42:34 +0000 (15:42 +0000)
commita4a014e365a6d27d1105096861a19f94aa5372f7
tree810749f521c47f42c92c09ae5d3985ee132596c7
parent3fc7ea191c45ea430f362e4a883a34ebfbd0c330
Bug 11736 - Use new DataTables include in Koha news templates

Bug 10649 introduced a new include file for adding DataTables-related
JavaScript assets. This patch adds use of this include file to the Koha
news page.

To test you should have existing news items with varying creation and
expiration dates. Apply the patch and confirm that table sorting works
correctly for all settings of the dateformat system preference.

C4::NewsChannels.pm has been modified so that it now passes an
unformatted date to the template, where the KohaDates plugin is used to
apply the correct formatting. Sorting is based on the unformatted date.

Also corrected: Capitalization errors.

Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, no problems found.
Also passes tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/NewsChannels.pm
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt