[koha-commits] main Koha release repository branch master updated. v3.12.00-beta1-1098-g2e3c821

Git repo owner gitmaster at git.koha-community.org
Mon Sep 16 17:17:17 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, master has been updated
       via  2e3c8215646033003ad2c49aa2759aa21986ab7e (commit)
      from  b7cd95bcc909f7db330b5acbfcf9e8f817328a67 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2e3c8215646033003ad2c49aa2759aa21986ab7e
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Thu Sep 5 16:23:28 2013 +0000

    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 at esilibrary.com>
    
    Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
    Sorting now works correctly, for active and inactive funds.
    Passes all tests and QA script.
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

-----------------------------------------------------------------------

Summary of changes:
 acqui/acqui-home.pl                                |    2 +-
 koha-tmpl/intranet-tmpl/prog/en/js/datatables.js   |   30 +++++++++++++++++++-
 .../prog/en/modules/acqui/acqui-home.tt            |   24 ++++++++--------
 3 files changed, 42 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list