bug 9916: (follow-up) restore default sort order for OPAC search history
authorGalen Charlton <gmc@esilibrary.com>
Mon, 19 Aug 2013 14:44:08 +0000 (14:44 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 19 Aug 2013 14:44:08 +0000 (14:44 +0000)
To test:

[1] Go to the search history page on the OPAC.
[2] Verify that the searches are sorted in order of decreasing time.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt

index 27c940e..9042543 100644 (file)
@@ -11,7 +11,7 @@
                // We show table ordered by descending dates by default
                // (so that the more recent query is shown first)
             $(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
-                "aaSorting": [[ 0, "asc" ]],
+                "aaSorting": [[ 0, "desc" ]],
                 "aoColumns": [
                     { "sType": "title-string" },
                     null,