Bug 21845: Sort of issues in OPAC subscription table
authorOwen Leonard <oleonard@myacpl.org>
Thu, 24 Jan 2019 16:13:47 +0000 (16:13 +0000)
committerroot <root@f1ebe1bec408>
Tue, 19 Feb 2019 13:52:14 +0000 (13:52 +0000)
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 <mikael.Olangcay-Brisebois@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index 46c1c76..4d1c98a 100644 (file)
 
         KohaTable("#subscriptionst", {
             dom: '<"clearfix">t',
+            "sorting": [[ 1, "desc" ]],
             "columnDefs": [
                 { "type": "title-string", "targets" : [ "title-string" ] }
                 ],