Bug 11976: Fix sorting issues
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Dec 2017 15:57:11 +0000 (12:57 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Dec 2017 16:21:12 +0000 (13:21 -0300)
The last column must be sortable, and dates must use title-string
I removed the class on the th (did not seem useful as we have an id
already)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index 073fa52..664cab7 100644 (file)
                                     <table class="table table-bordered table-striped" id="subscriptionst">
                                         <thead>
                                         <tr>
-                                            <th id="serial_serialseq" data-colname="serial_serialseq" class="serialseq">Issue #</th>
-                                            <th id="serial_publisheddate" data-colname="serial_publisheddate" class="publisheddate">Publication date</th>
-                                            <th id="serial_planneddate" data-colname="serial_planneddate" class="planneddate">Received date</th>
-                                            <th id="serial_status" data-colname="serial_status" class="serial_status">Status</th>
-                                            <th id="serial_notes" data-colname="serial_notes" class="serial_notes">Note</th>
+                                            <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
+                                            <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
+                                            <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
+                                            <th id="serial_status" data-colname="serial_status">Status</th>
+                                            <th id="serial_notes" data-colname="serial_notes">Note</th>
                                         </tr>
                                         </thead>
                                         <tbody>
         KohaTable("#subscriptionst", {
             dom: 'B<"clearfix">t',
             "columnDefs": [
-                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
                 { "sType": "title-string", "aTargets" : [ "title-string" ] }
                 ],
             "bKohaColumnsUseNames": true