From de77d28db5bef79d3ad71810349f1c5badd8acf8 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 15 May 2025 04:49:10 +0000 Subject: [PATCH] Bug 39406: Make serial issues sort from new to old on collection page This patch fixes the serial collection table to sort in descending order on the date published column. To test: 1. Create a subscription if you don't already have one. 2. Go to the Serial Collection tab using the left navigation. 3. Click the Generate Next button a bunch of times to generate some serial issues. Note that the issues are displaying in the table in ascending order, with the oldest date published at the top. 4. Apply the patch and refresh the page 5. Confirm the issues are now displaying in the table in descending order, with the newest date published at the top. 6. Click the Generate Next button again and confirm the issue is inserted at the top of the table. Sponsored-by: Pymble Ladies' College Signed-off-by: David Nind Signed-off-by: Katrin Fischer (cherry picked from commit d49e7392bcc13a1ecd19f81fa4a3686fafaf1ab6) --- .../intranet-tmpl/prog/en/modules/serials/serials-collection.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt index 25de1031a8..3563f8aa5e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt @@ -369,7 +369,7 @@ "columnDefs": [ { "targets": [ 0,-1 ], "orderable": false, "searchable": false } ], - "order": [[0, 'desc']], + "order": [[1, 'desc']], "dom": 't', "autoWidth": false, "paginate": false,