[koha-commits] main Koha release repository branch new/bug_7722 created. v3.08.00-74-g377b2fd

Git repo owner gitmaster at git.koha-community.org
Tue May 15 16:09:03 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_7722 has been created
        at  377b2fd673f2c4a24f0e1385730516efed9d25a4 (commit)

- Log -----------------------------------------------------------------
commit 377b2fd673f2c4a24f0e1385730516efed9d25a4
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date:   Thu Mar 15 16:27:07 2012 -0400

    Bug 7722 - Insidious problem with searching
    
    I cannot find the root cause of this issue, but multiple libraries that I am aware of have problems searching on particular search terms ( and never the same terms at the same library ). The error they get when they trigger this problem is:
    
    Tag "" is not a valid tag. at /home/koha/kohaclone/C4/Biblio.pm line 1849
    
    Something somewhere is adding empty keys to C4::Context->marcfromkohafield, I think it may have something to do with the analytics feature that was added.
    
    In the while loop for TransformKohaToMarc, there is a line
    
    next unless my $dtm = $db_to_marc->{''}->{$name};
    
    I don't think it's working.
    If I dump $dtm, for each search, I see the dump twice.
    It looks like this:
    $VAR1 = [
               '952',
               'w'
             ];
     $VAR1 = [];
    I think the second time, when it is empty is what's breaking this.
    The next never fails because even though it is empty, it is still a valid arrayref.
    
    The solution I have some up with is to skip over the elements where the arrayref is empty.
    
    Signed-off-by: Ian Walls <koha.sekjal at gmail.com>
    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