Bug 9445

Summary: Use DataTables in local use system preferences editor
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Jonathan Druart <jonathan.druart>
Severity: enhancement    
Priority: P5 - low CC: bgkriegel, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/admin/systempreferences.pl
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 9445 - Use DataTables in local use system preferences editor
Bug 9445 - Use DataTables in local use system preferences editor
Bug 9445 [Revised] Use DataTables in local use system preferences editor
[SIGNED-OFF] Bug 9445 [Revised] Use DataTables in local use system preferences editor
Bug 9445 [Revised] Use DataTables in local use system preferences editor
Bug 9445 [Revised] Use DataTables in local use system preferences editor

Description Owen Leonard 2013-01-22 17:32:58 UTC
The "old" system preferences editor, used now only for local use preferences, uses the old tablesorter plugin. It should use DataTables instead.
Comment 1 Owen Leonard 2013-01-22 17:46:58 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2013-01-23 08:40:50 UTC Comment hidden (obsolete)
Comment 3 Owen Leonard 2013-02-26 16:26:34 UTC Comment hidden (obsolete)
Comment 4 Bernardo Gonzalez Kriegel 2013-02-27 23:42:08 UTC Comment hidden (obsolete)
Comment 5 Jonathan Druart 2013-02-28 15:49:34 UTC
QA comment:
Add datatable on the systempreferences.pl page (local use only).
Marked as Passed QA.
Comment 6 Jonathan Druart 2013-02-28 15:49:48 UTC Comment hidden (obsolete)
Comment 7 Jared Camins-Esakov 2013-03-01 00:19:39 UTC
This patch adds Datatables, but it does not remove tablesorter from the page. It probably should.
Comment 8 Jonathan Druart 2013-03-01 08:44:02 UTC
(In reply to comment #7)
> This patch adds Datatables, but it does not remove tablesorter from the
> page. It probably should.

Ho yes, good catch. I don't understand when this code is used but it should be deleted.
Comment 9 Owen Leonard 2013-03-01 19:46:23 UTC
Created attachment 15810 [details] [review]
Bug 9445 [Revised] Use DataTables in local use system preferences editor

Replace the tablesorter plugin with the DataTables plugin in the
local use system preferences editor.

This patch moves embedding of the toolbar and table-sorting JS from
within the body of the page to the <head> for sake of consistency.

To test, open the system preferences editor to the Local Use tab.
Confirm that table sorting works correctly. In this configuration there
should be no pager and no results filtering.

Revision corrects template path to datatables assets.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Comment: Tab sorting works. No errors.
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Further revision removes old tablesorter code
Comment 10 Owen Leonard 2013-03-01 19:47:10 UTC
Returning to "Passed QA" as per jcamins' instructions.
Comment 11 Jared Camins-Esakov 2013-03-02 17:25:43 UTC
This patch has been pushed to master.