Bugzilla – Attachment 13535 Details for
Bug 9108
Add uk/euro date sort filter to pages which require it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9108 - Add uk/euro date sort filter to pages which require it
Bug-9108---Add-ukeuro-date-sort-filter-to-pages-wh.patch (text/plain), 8.61 KB, created by
Owen Leonard
on 2012-11-19 20:09:38 UTC
(
hide
)
Description:
Bug 9108 - Add uk/euro date sort filter to pages which require it
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-11-19 20:09:38 UTC
Size:
8.61 KB
patch
obsolete
>From a5d8ca1f23550e7debbc5f3421d7c5055185bbd9 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 19 Nov 2012 15:06:33 -0500 >Subject: [PATCH] Bug 9108 - Add uk/euro date sort filter to pages which > require it >Content-Type: text/plain; charset="utf-8" > >This patch adds the JS required to enable correct sorting >of dates in DD/MM/YYYY format to pages which require it. > >To test, set your dateformat accordingly and confirm on the >affected pages that dates are sorted correctly. >--- > .../prog/en/modules/acqui/addorderiso2709.tt | 3 +++ > .../prog/en/modules/acqui/histsearch.tt | 3 +++ > .../prog/en/modules/acqui/invoices.tt | 3 +++ > .../prog/en/modules/acqui/lateorders.tt | 3 +++ > .../intranet-tmpl/prog/en/modules/acqui/ordered.tt | 3 +++ > .../intranet-tmpl/prog/en/modules/acqui/parcels.tt | 3 +++ > .../intranet-tmpl/prog/en/modules/acqui/spent.tt | 3 +++ > .../prog/en/modules/catalogue/issuehistory.tt | 3 +++ > .../prog/en/modules/circ/pendingreserves.tt | 3 +++ > .../prog/en/modules/members/readingrec.tt | 9 +++++++-- > .../prog/en/modules/serials/serials-search.tt | 3 +++ > 11 files changed, 37 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index 98161b2..3627077 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -15,6 +15,9 @@ > <script type="text/javascript" src="[% themelang %]/js/acq.js"></script> > <script type="text/JavaScript"> > //<![CDATA[ >+ [% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+ [% END %] > $(document).ready(function() { > var srlt = $("#files").dataTable($.extend(true, {}, dataTablesDefaults, { > "aoColumnDefs": [ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >index 5659c1d..e10ec8f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >@@ -9,6 +9,9 @@ > <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> > <script type="text/javascript"> > //<![CDATA[ >+[% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+[% END %] > $(document).ready(function() { > var histsearcht = $("#histsearcht").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button" >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >index a04204e..88fd8b4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >@@ -11,6 +11,9 @@ > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >+ [% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+ [% END %] > $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { > bInfo: false, > bPaginate: false, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >index b146060..c825d06 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >@@ -11,6 +11,9 @@ > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> > <script type="text/javascript"> > //<![CDATA[ >+[% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+[% END %] > $(document).ready(function() { > var late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, { > "aoColumnDefs": [ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt >index fbfa57a..23441f8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt >@@ -8,6 +8,9 @@ > <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> > <script type="text/javascript"> > //<![CDATA[ >+[% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+[% END %] > $(document).ready(function() { > var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button" >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt >index 616139c..b3220da 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt >@@ -9,6 +9,9 @@ > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >+[% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+[% END %] > var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button" > } ) ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt >index 1d6255d..95634d0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt >@@ -9,6 +9,9 @@ > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >+ [% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+ [% END %] > var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button" > } ) ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >index 8f473e5..5f8da2e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >@@ -7,6 +7,9 @@ > [% INCLUDE 'datatables-strings.inc' %] > <script type="text/javascript" id="js"> > $(document).ready(function() { >+ [% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+ [% END %] > $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, { > "aaSorting": [[ 4, "desc" ]] > }) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >index cdab69d..0b832dc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -9,6 +9,9 @@ > <script type="text/JavaScript" language="JavaScript"> > //<![CDATA[ > $(document).ready(function() { >+ [% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+ [% END %] > var holdst = $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, { > })); > holdst.fnAddFilters("filter"); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >index b7c5f53..6045c77 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >@@ -6,13 +6,18 @@ > <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" id="js">$(document).ready(function() { >+<script type="text/javascript" id="js"> >+//<![CDATA[ > $(document).ready(function() { >+ [% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+ [% END %] > $("#table_readingrec").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button", > })); > }); >-}); </script> >+//]]> >+</script> > </head> > <body id="pat_readingrec" class="pat"> > [% INCLUDE 'header.inc' %] >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 98ef4d5..908c0e2 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 >@@ -9,6 +9,9 @@ > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >+ [% IF (dateformat == 'metric') %] >+ dt_add_type_uk_date(); >+ [% END %] > var srlt = $("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, { > "aoColumnDefs": [ > { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, >-- >1.7.9.5
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 9108
:
13535
|
13546
|
13723
|
13724
|
14189
|
14572
|
14573
|
23139
|
23141