From 3bc2c31c8e530ff7e611a93f7f5ffeaad66ea9f0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 24 Jan 2019 16:13:47 +0000 Subject: [PATCH] Bug 21845: Sort of issues in OPAC subscription table This patch adds a default sort option to the table of subscriptions on the OPAC detail page. This sorting option matches the sort of data passed from GetLatestSerials. To test, apply the patch and locate a subscription in the OPAC which has multiple issues. They should be sorted by default on publication date. Signed-off-by: mikael Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit fd9ff6a4f012399fc8408aa25ab1185d8308ea45) Signed-off-by: Martin Renvoize (cherry picked from commit c765f0c2df8b1f02ce937e776b357f5fb35dadc9) Signed-off-by: Lucas Gass --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index a438cbd35c..7ed04f64e1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1443,6 +1443,7 @@ KohaTable("#subscriptionst", { dom: '<"clearfix">t', + "sorting": [[ 1, "desc" ]], "columnDefs": [ { "sType": "title-string", "aTargets" : [ "title-string" ] } ], -- 2.39.5