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)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 6 Mar 2019 03:04:29 +0000 (03:04 +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>
(cherry picked from commit fd9ff6a4f012399fc8408aa25ab1185d8308ea45)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit c765f0c2df8b1f02ce937e776b357f5fb35dadc9)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index a438cbd..7ed04f6 100644 (file)
 
         KohaTable("#subscriptionst", {
             dom: '<"clearfix">t',
+            "sorting": [[ 1, "desc" ]],
             "columnDefs": [
                 { "sType": "title-string", "aTargets" : [ "title-string" ] }
                 ],