[Koha-bugs] [Bug 27299] Zebra phrase register is incorrectly tokenized when using ICU

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 5 00:30:27 CET 2021


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

--- Comment #9 from David Cook <dcook at prosentient.com.au> ---
Alternate test plan:

0a. Do not apply the patch yet
0b. Change "BiblioAddsAuthorities" system preference to "allow"

1. vi /etc/koha/zebradb/etc/default.idx
2. Replace the first charmap line with "icuchain words-icu.xml"
3. Replace the second charmap line with "icuchain phrases-icu.xml"
4. koha-zebra --stop kohadev
5. pkill zebrasrv
6. koha-zebra --start kohadev
7. koha-indexer --restart kohadev
8. koha-rebuild-zebra -f kohadev

9. Go to http://localhost:8081/cgi-bin/koha/tools/stage-marc-import.pl
10. Choose bib-24.marcxml
11. Click "Upload file"

12. Choose "KohaBiblio (999$c)" for "Record matching rule"
13. Choose "No" for "Check for embedded item record data"
14. Click "Stage for import"
15. Click "Manage staged records"
16. Click "Import this batch into the catalog"

17. In a new tab, go to
http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=25 
18. Hover over "Gontarski, Bad" and note that it shows the following URL:
http://localhost:8081/cgi-bin/koha/authorities/detail.pl?authid=236 
19. Go to http://localhost:8081/cgi-bin/koha/authorities/detail.pl?authid=236 
20. Note this authority is for "Gontarski, S. E."
21. Click on "Used in 1 record(s)"
22. Note that you're taken to the biblio record with a Contributor of
"Gontarski, Bad"
23. Click "Undo import into catalog" on the import page

24. Apply the patch
25. cp /etc/koha/zebradb/etc/phrases-icu.xml
/etc/koha/zebradb/etc/phrases-icu.bak
26. cp etc/zebradb/etc/phrases-icu.xml /etc/koha/zebradb/etc/phrases-icu.xml
27. koha-zebra --stop kohadev
28. pkill zebrasrv
29. koha-zebra --start kohadev
30. koha-indexer --restart kohadev
31. koha-rebuild-zebra -f kohadev

32. On the import page, click "Import this batch into the catalog"
33. Go to
http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=25
34. Hover over "Gontarski, Bad" and note it shows the following URL:
http://localhost:8081/cgi-bin/koha/catalogue/search.pl?q=au:%22Gontarski%2C%20Bad.%22
35. Go to http://localhost:8081/cgi-bin/koha/authorities/detail.pl?authid=236
36. Note that it says "This authority is not used in any records"

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


More information about the Koha-bugs mailing list