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

--- Comment #12 from Andreas Roussos <[email protected]> ---
Apparently, the majority of UNIMARC sample authority records from koha-misc4dev
have an extra space at the end of the leader value (in both their MARCXML and
the MARC/ISO2709 representation).

If you remove the extra space (making the leader length equal to 24
characters), the ES indexing completes without any warnings/errors:

 $ ktd --shell
k$ cd /kohadevbox/misc4dev/data/sql/unimarc/1812/after_22155
k$ sed -i 's/   4500 <\/leader>/   4500<\/leader>/g' auth_header.sql
k$ sed -E -i 's/([0-9]{5})([cdn])([xyz])  ([a-m])22([0-9]{5})   4500 /\1\2\3 
\422\5   4500/g' auth_header.sql
k$ reset_all
[...]
Running [sudo koha-shell kohadev -p -c
'PERL5LIB=/kohadevbox/koha:/kohadevbox/koha/lib:/kohadevbox/qa-test-tools perl
/kohadevbox/koha/misc/search_tools/rebuild_elasticsearch.pl -v']...
[343545] Checking state of biblios index
[343545] Checking state of authorities index
[343545] Indexing biblios
[343545] 1000 records processed
[343545] 2000 records processed
[343545] 3000 records processed
[343545] 4000 records processed
[343545] Committing final records...
[343545] Total 4849 records indexed
[343545] Indexing authorities
[343545] 1000 records processed
[343545] 2000 records processed
[343545] 3000 records processed
[343545] 4000 records processed
[343545] 5000 records processed
[343545] Committing 5000 records...
[343545] Commit complete
[343545] 6000 records processed
[343545] Committing final records...
[343545] Total 6635 records indexed
[...]

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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