[koha-commits] main Koha release repository branch 3.8.x updated. v3.08.13-90-ge311ea1

Git repo owner gitmaster at git.koha-community.org
Tue Aug 20 11:04:30 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, 3.8.x has been updated
       via  e311ea1308fd05bbdbbf2d95bb1fac8ba6245b7d (commit)
       via  1254f88b25700408492edea9cbacdea5e52c913b (commit)
      from  4488ebf7100a03f02fb919501cba86768da8d77c (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 e311ea1308fd05bbdbbf2d95bb1fac8ba6245b7d
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Fri Mar 8 10:41:06 2013 -0500

    Bug 9770: fix sorting of Dewey call numbers that contain prefixes
    
    C4::ClassSortRoutine::Dewey can pad the wrong part of a call number internally.
    
    The subroutine get_class_sort_key tokenizes a call number string (splitting on
    periods and whitespace) and counts the number of tokens that solely contain
    digits.  If there is only one such digit group, a comment in the code states
    that it will pad said digit group.  However, the bug is that the code assumes
    said digit group is the first token, when this may not be the case.
    
    In practice, this can cause poor sorting when used a call number is in the form
    of PREFIX _space_ 3DIGITS.
    
    To test:
    
    [1] Create two item records whose class scheme is set to
        'ddc' (Dewey) and whose call numbers contain prefixes, e.g.,
        J DVD 700.1 ABC and J DVD 850 DEF.
    [2] Use the inventory tool to produce a list of item items that include
        the two created in step 1.  Obsere that that items are sorted
        in the incorrect order, with "J DVD 850 DEF" coming before
        "J DVD 700.1 ABC".  Alternatively, run the following SQL
        to see the incorrect sort order:
    
        SELECT cn_sort, itemcallnumber
        FROM items
        WHERE itemcallnumber LIKE 'J DVD%'
        ORDER BY cn_sort;
    
    [4] Apply this patch.
    [5] Run misc/maintenance/touch_all_items.pl to force cn_sort to be
        recalculated.
    [6] Repeat step 2 and verify that the call numbers are now sorted
        corrected.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
    Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    (cherry picked from commit dba36a7a1216238a260ea5fbe2218627487e9f19)
    Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
    (cherry picked from commit f05642589d94c25ef1b1f01b4a2606fe455400b8)
    Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
    (cherry picked from commit f05642589d94c25ef1b1f01b4a2606fe455400b8)
    Signed-off-by: Chris Hall <followingthepath at gmail.com>
    (cherry picked from commit 404a931efa9365ae084f088111382eb2076a0a7e)

commit 1254f88b25700408492edea9cbacdea5e52c913b
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Fri Jun 21 15:31:32 2013 -0400

    Bug 9770: test case for sorting of Dewey call numbers that contain prefixes
    
    This adds a test for C4::ClassSortRoutine::Dewey to check that the
    call number "JR DVD 800.1" sorts before "JR DVD 900"
    
    To test:
    
    [1] Apply just this patch.
    [1] Run prove -v t/ClassSortRoutine_Dewey.t
    [2] Test #7 should fail.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
    Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
    Passes test plan and QA script.
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    (cherry picked from commit bce45b4bf55e82345efed2850d9cb5fd77f3c483)
    Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
    (cherry picked from commit 926e455f19852c1c7b69aa00bd587caff8bccd14)
    Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
    (cherry picked from commit 926e455f19852c1c7b69aa00bd587caff8bccd14)
    Signed-off-by: Chris Hall <followingthepath at gmail.com>
    (cherry picked from commit 74b2f3fb4acec7b4adf54f32bb4eabcf51ca3353)

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

Summary of changes:
 C4/ClassSortRoutine/Dewey.pm |    6 +++++-
 t/ClassSortRoutine_Dewey.t   |    6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list