[Bug 6799] New: rebuild_zebra.pl -x produces invalid XML records
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Bug #: 6799 Summary: rebuild_zebra.pl -x produces invalid XML records Classification: Unclassified Change sponsored?: --- Product: Koha Version: rel_3_6 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Acquisitions AssignedTo: henridamien@koha-fr.org ReportedBy: frederic@tamil.fr QAContact: koha-bugs@lists.koha-community.org There are 2 issues with rebuild_zebra.pl since items have been removed from biblioitems.marcxml: (1) If some fields (itemcallnumber for example) contains some non-ASCII characters, items extraction from items table can fail. Items MARC::Record can't be constructed and fail with an 'invalid wide character error'. (2) MARCXML records which are exported into a file are invalid. Example: <datafield tag="915" ind1=" " ind2=" "> <subfield code="t">DOCUJ</subfield> </datafield> sion="1.0" encoding="UTF-8"?> <record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd" xmlns="http://www.loc.gov/MARC21/slim"> <leader> </leader> <datafield tag="995" ind1=" " ind2=" "> <subfield code="2">0</subfield> <subfield code="k">J 591 CUI</subfield> <subfield code="f">0003401004</subfield> <subfield code="9">1</subfield> <subfield code="c">AMB</subfield> <subfield code="o">0</subfield> <subfield code="e">1</subfield> <subfield code="j">0.00</subfield> <subfield code="b">AMB</subfield> <subfield code="p">0</subfield> <subfield code="q">J</subfield> </datafield> -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|henridamien@koha-fr.org |frederic@tamil.fr -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 --- Comment #1 from Frédéric Demians <frederic@tamil.fr> 2011-08-27 11:44:13 UTC --- Created attachment 5173 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5173 Proposed patch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Patch Status|--- |Needs Signoff -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Acquisitions |Architecture, internals, | |and plumbing AssignedTo|frederic@tamil.fr |gmcharlt@gmail.com -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|gmcharlt@gmail.com |frederic@tamil.fr --- Comment #2 from Frédéric Demians <frederic@tamil.fr> 2011-09-17 05:21:55 UTC --- How to test: - Stop your zebra indexer cronjob - Modify the first item of your first biblio record: add a 'é' at the end of the Call number field - Run zebraidx by hand: ./rebuild_zebra.pl -r -b -x -nosanitize -k -d ./ -v - You can stop the process quickly since the first biblio record has been exported - Examine the export file: less biblio/exported_records Result: - You won't see your 'é' at the end of the first item call number. - The delimitation between first and second record is wrong. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 --- Comment #3 from Julian Maurice <julian.maurice@biblibre.com> 2011-11-04 05:48:54 UTC --- Created attachment 6178 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6178 Signed off patch I reproduced the 2 bugs and this patch fix them. Signed off. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julian.maurice@biblibre.com Patch Status|Needs Signoff |Signed Off -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5173|0 |1 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |paul.poulain@biblibre.com Patch Status|Signed Off |Patch Pushed --- Comment #4 from Paul Poulain <paul.poulain@biblibre.com> 2011-11-18 22:32:31 UTC --- QA comment: perfect test plan, small patch, passed QA Patch pushed, please test -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6799 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dpavlin@rot13.org -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org