Bugzilla – Attachment 14747 Details for
Bug 9428
Use DataTables in Authority MARC frameworks page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9428 - Use DataTables in Authority MARC frameworks page
Bug-9428---Use-DataTables-in-Authority-MARC-framew.patch (text/plain), 3.34 KB, created by
Jonathan Druart
on 2013-01-22 14:52:46 UTC
(
hide
)
Description:
Bug 9428 - Use DataTables in Authority MARC frameworks page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-01-22 14:52:46 UTC
Size:
3.34 KB
patch
obsolete
>From 925aaa404c2332d20296355ecd8ec2a652f70223 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 18 Jan 2013 13:00:49 -0500 >Subject: [PATCH] Bug 9428 - Use DataTables in Authority MARC frameworks page > >Replace the tablesorter plugin with the DataTables plugin on the >Authority MARC frameworks page. > >To test, open the Authority MARC frameworks page (Authority types -> >MARC structure). Confirm that table sorting works correctly. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Amended patch: Add the "All" entry. >--- > .../prog/en/modules/admin/auth_tag_structure.tt | 25 +++++++++++++------- > 1 file changed, 16 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt >index 0ef4e06..5fe02de 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt >@@ -4,16 +4,24 @@ > [% IF ( heading_add_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › New tag[% END %] > [% ELSE %]› [% action %][% END %][% END %][% IF ( delete_confirm ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Confirm deletion[% END %][% IF ( delete_confirmed ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Data deleted[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> >-<script type="text/javascript" id="js">$(document).ready(function() { >- $("#table_authtagstructure").tablesorter({ >- sortList: [[0,0]], >- headers: { 5: { sorter: false},6: { sorter: false},7: { sorter: false}} >- }).tablesorterPager({container: $("#pagertable_authtagstructure"),positionFixed: false,size: 20}); >-}); </script> >+ >+<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" /> >+<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script> > <script type="text/javascript"> > //<![CDATA[ >+ $(document).ready(function() { >+ $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], >+ "iDisplayLength": 20, >+ "sPaginationType": "four_button" >+ })); >+ }); >+ > ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// > function isNotNull(f,noalert) { > if (f.value.length ==0) { >@@ -229,7 +237,6 @@ return false; > <input type="submit" value="OK" class="submit" /> > </form><br /> > <div id="pagertable_authtagstructure"> >-[% INCLUDE 'table-pager.inc' perpage='20' %] > </div> > <table id="table_authtagstructure"> > <thead> >-- >1.7.10.4
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 9428
:
14708
|
14747
|
14880
|
15690
|
15737
|
15878