Bugzilla – Attachment 85208 Details for
Bug 22156
Subscription result list sorts on "checkbox" by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22156: (17.11.x) Subscription result list sorts on "checkbox" by default
Bug-22156-1711x-Subscription-result-list-sorts-on-.patch (text/plain), 2.02 KB, created by
Katrin Fischer
on 2019-02-16 09:11:48 UTC
(
hide
)
Description:
Bug 22156: (17.11.x) Subscription result list sorts on "checkbox" by default
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-02-16 09:11:48 UTC
Size:
2.02 KB
patch
obsolete
>From f62e13db6663e8215cc1c29b0a74c1e831c2c8d2 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 17 Jan 2019 16:48:27 +0000 >Subject: [PATCH] Bug 22156: (17.11.x) Subscription result list sorts on > "checkbox" by default > >This patch adds default sorting by title to the subscription search >results list. Previously no default sort was defined, so it defaulted to >sorting by the first column in the table. > >To test, apply the patch and go to Serials. > >- Perform a search of subscriptions which will return multiple results. >- Confirm that the table of open subscriptions is sorted by default by > title ascending. >- Confirm the same for the table of closed subscriptions. > >Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt >index 1728fb0edf..6541c50f59 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt >@@ -12,6 +12,7 @@ > $(document).ready(function() { > var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button", >+ "order": [[ 1, "asc" ]], > "aoColumnDefs": [ > { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, > { "sType": "title-string", "aTargets" : [ "title-string" ] }, >@@ -22,6 +23,7 @@ > var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, { > // FIXME sort function of additional_fields! > "sPaginationType": "four_button", >+ "order": [[ 1, "asc" ]], > "aoColumnDefs": [ > { 'bSortable': false, 'aTargets': [ 'NoSort' ] }, > { 'sType': "anti-the", 'aTargets' : [ 'anti-the'] } >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22156
:
84148
|
84149
|
84163
|
84164
|
85193
|
85194
|
85207
| 85208