[koha-commits] main Koha release repository branch new/bug_3521 created. v3.08.00-93-gf9352e8

Git repo owner gitmaster at git.koha-community.org
Tue May 22 23:19:23 CEST 2012


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, new/bug_3521 has been created
        at  f9352e89ac202eb84b235c3460f7d633db88ca14 (commit)

- Log -----------------------------------------------------------------
commit f9352e89ac202eb84b235c3460f7d633db88ca14
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date:   Thu Mar 29 09:54:38 2012 -0400

    Bug 3521 - Items table in catalogue/detail.pl and cataloguing/additem.pl is sorted nonsensically
    
    Based on patch submitted by Ian Walls
    
    Items were sorted by branch, then date accessioned, in GetItemsInfo.  While this can be
    helpful in some circumstances, more often it is useful for items to be sorted first by
    their enumchron (volume/issue, if applicable) then by their copy number.  This patch changes the
    sort on GetItemsInfo to branch, enumcrhon, copynumber then date accessioned.
    
    As sorting on copynumber will be incorrect based on standard sorting ( e.g. 1, 10, 2, 20 ),
    the copynumber is now padded with leading zeros to correct the sorting ( e.g. 01, 02, 10 20 ).
    This function appears to be a standard SQL function and not a mysql-ism. I have verfified
    that is available in MySQL, Postgres, and Oracle.
    
    Signed-off-by: Liz Rea <wizzyrea at gmail.com>
    Passed t xt
    
    Item sorts appear to be correct to me based on the rubric of branch, enumchron, copynumber, then date accessioned.
    
    Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>

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


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list