Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Galen Charlton 2e3c821564 Bug 10792: fix sorting of funds table on acquisitions home page
This patch introduces a DataTables sorting plugin, title-numeric,
for sorting cells based on a decimal number embedded in a span title
attribute.  This allows currency amounts to be formatted properly
for display without having to writing a sorting plugin that's
super-smart about removing the formatting, particularly for locales
that use a comma as the decimal mark.

The sorter plugin can be used like this:

- In the DataTables config:

"aoColumns": [
   { "sType": "title-numeric" },
]

- In the table data

<td><span title="[% decimal_number_that_JS_parseFloat_accepts %]">
    [% formatted currency %]
</span></td>

To test:

[1] Ensure that there is at least one active budget and at least
    one inactive one.
[2] Go to the acquisitions home page.  Note that changing the sort order
    on the amount, ordered, spent, or avail columns results in incorrect
    sorting that is either ASCII-betical or which ignores any component
    of large numbers that occur after the thousands separator.
[3] Apply the patch.
[4] Verify that the sorting now works correctly and that no JavaScript
    errors appear in the JS debug console of your choice.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Sorting now works correctly, for active and inactive funds.
Passes all tests and QA script.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-09-16 15:30:33 +00:00
..
acqui Bug 10792: fix sorting of funds table on acquisitions home page 2013-09-16 15:30:33 +00:00
admin Bug 10320 - Integrate OverDrive search into OPAC 2013-09-08 07:00:40 +00:00
authorities Bug 5262: make authority plugin copy indicators to bib record 2013-08-14 17:17:22 +00:00
basket Bug 10592: fix display of favicon 2013-07-22 14:00:23 +00:00
batch
catalogue Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
cataloguing Bug 10678 - Allow framework selection when creating from Z39.50 2013-09-08 22:31:09 +00:00
circ Bug 10721 - Improve DataTables configuration on transfers to receive report 2013-09-07 21:04:53 +00:00
course_reserves Bug 10634 - Use datatables for course details items table 2013-09-04 14:19:03 +00:00
errors
help Bug 10678 - Update addbooks help page 2013-09-08 22:31:29 +00:00
installer Bug 2774 - Path to theme is hard-coded in many places 2013-06-07 09:04:15 -07:00
labels Bug 2774 - Path to theme is hard-coded in many places 2013-06-07 09:04:15 -07:00
members Bug 9943: activate "Pay selected" button only when at least one fine is selected 2013-09-08 07:10:42 +00:00
offline_circ Bug 10288 - Fix a tiny typo on "Pending offline circulation actions" 2013-05-20 12:23:32 -07:00
patroncards Bug 9924 - Simplify and rename patron card creator error message include 2013-09-08 19:19:23 +00:00
plugins Bug 7804 - Add Koha Plugin System - QA Followup 2 2013-03-20 14:50:19 -04:00
reports Bug 10718: fix items with no checkouts report 2013-09-08 20:04:43 +00:00
reserve Bug 10247: show warning if hold blocked due to maxreserves syspre 2013-08-12 15:02:57 +00:00
reviews
rotating_collections
serials Bug 9916 - Use DataTables in the OPAC 2013-08-19 14:19:02 +00:00
services Bug 10475 - Item form in acquisition not hiding subfields properly 2013-07-12 20:40:15 +00:00
sms
suggestion Bug 4907: make 'Organize by' filter in suggestions reflect selected option 2013-07-08 15:15:16 +00:00
tags Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
test Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
tools Bug 10170: expose more managed staged MARC strings to translation 2013-07-16 15:45:20 +00:00
virtualshelves Bug 9757: Remove duplicated action buttons. 2013-06-26 09:04:37 -07:00
z3950 Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
about.tt Bug 7143: history.txt and about page updates 2013-09-07 20:47:22 +00:00
auth.tt Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
intranet-main.tt Bug 7875: Change the pending suggestion link in home page so that it directs to pending suggestions 2013-03-20 08:40:43 -04:00