@@ -, +, @@ publication date descending - When the page loads the table of news items should sort by default on publication date, descending. - There should be no sorting indicator on the first and last columns. - When sorting the "Title" or "News" columns, articles "A," "An," and "The" should be ignored. --- .../intranet-tmpl/prog/en/modules/tools/koha-news.tt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -104,16 +104,16 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]
- + - + - - + + [% FOREACH opac_new IN opac_news %] [% IF ( opac_new.expired ) %] @@ -240,10 +240,11 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %] $(document).ready(function() { var newst = $("#newst").DataTable($.extend(true, {}, dataTablesDefaults, { + "order": [[ 4, "desc" ]], "aoColumnDefs": [ - { "aTargets": [ 0,-1,-2 ], "bSortable": false }, - { "aTargets": [ 0, -1 ], "bSearchable": false }, - { 'sType': "title-string", 'aTargets' : [ 'title-string'] } + { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] }, + { "type": "anti-the", "targets": [ "anti-the" ] }, + { "type": "title-string", "targets" : [ "title-string"] } ], "sPaginationType": "full_numbers" })); --
   Location Library Number Publication date Expiration dateTitleTitle AuthorNewsActionsNewsActions