]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 21 May 2014 10:06:18 +0000 (12:06 +0200)
commitbe5c3c1f4a19f4a06e3faba91f45cfb7da328436
treeeb481158aecb29d0b5d0a1f13cbf637d8d1e3c55
parent8e3eb1de412755553006116d0ccfc5d919706aeb
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>
(cherry picked from commit a4a014e365a6d27d1105096861a19f94aa5372f7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/NewsChannels.pm
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt