[Koha-bugs] [Bug 35710] Indexing problem with "&" symbol in Zebra. Some biblio-records with "&" symbol are not searching

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 10 03:53:15 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35710

--- Comment #6 from David Cook <dcook at prosentient.com.au> ---
The problem is that your record isn't valid XML. While it is possible for Koha
to make invalid XML via the HTML form, it's very unlikely to happen with the &. 

So I'd say these records are from an external source that created them without
regard to XML validity.

Another noticeable flaw is also the following:

  <datafield tag="852" ind1=" " ind2=" ">
    <subfield code="a"></subfield>
  </datafield>

That would never happen in a record created by Koha I think. If there's an
empty value, the subfield and field would not have been created at all.

--

My suggestion would be to write a script to iterate through your records and
check whether or not they can be parsed as XML. Flag the ones that cannot be
parsed, and look at fixing the problems.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list