http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7818
--- Comment #33 from Paul Poulain <[email protected]> --- (In reply to comment #31) > > 18:22 ~/koha.dev/installs/lecannetdesmaures/etc$ > > ~/koha.dev/koha-community/misc/migration_tools/rebuild_zebra.pl -b -v > > -x --offset=100 --length=10 -r Entity: line 84: parser error : Extra > > content at the end of the document > > I think it means that the file containing the exported marcxml biblio is > not a valid XML file. <collection> </collection> is missing. Try to add > it by hand, and reindex directly with zebraidx. OK, seems you're right Frederic: zebraidx -c /home/paul/koha.dev/installs/koha-community/etc/zebradb/zebra-biblios.cfg -g marcxml -d biblios update /tmp/kUzN0iLpkp/biblio/ => without changing anything to /tmp/kUzN0iLpkp/biblio/ I get Entity: line 741: parser error : Extra content at the end of the document <record ^ 20:18:38-06/06 zebraidx(13191) [warn] extract error: generic => after adding <collection> and </collection> I get: 20:20:26-06/06 zebraidx(13208) [log] update dom./home/paul/koha.dev/installs/koha-community/etc/zebradb/biblios/etc/dom-config.xml /tmp/kUzN0iLpkp/biblio/exported_records 102404 20:20:26-06/06 zebraidx(13208) [log] Iterations: isam/dict 1808/1803 20:20:26-06/06 zebraidx(13208) [log] Dict: inserts/updates/deletions: 901/0/902 20:20:27-06/06 zebraidx(13208) [log] Records: 10 i/u/d 0/10/0 So the NEXT QUESTION is = why is'nt the <collection> included automatically (as it used to be) Looking at the code, it's clearly related to sub include_xml_wrapper {} This sub should return 1 and return 0. It should return 1 from this line: return 1 if $record_type eq 'biblio' and $bib_index_mode eq 'dom'; The $bib_index_mode is set by: my $bib_index_mode = C4::Context->config('zebra_bib_index_mode') || 'grs1'; looking at my configuration file... There is no <zebra_bib_index_mode>__BIB_INDEX_MODE__</zebra_bib_index_mode> adding it.... and it works, with the exception of a warning i'll investigate later, but if you have an idea, let me know ! 20:27:55-06/06 zebraidx(13358) [warn] Unknown register type: (nothing after the "register type:") -- 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/
