http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7722

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 7722
          Assignee: [email protected]
           Summary: Insidious problem with searching
        QA Contact: [email protected]
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: NEW
           Version: rel_3_8
         Component: Searching
           Product: Koha

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.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to