Sei sulla pagina 1di 2

Enabling ICU support in Zebra 2.

0 for
Unicode searching in KOHA
#sudo apt-get install libicu-dev libicu38 yaz-icu

Copy following files from:

/usr/share/idzebra-2.0/tab/ to /etc/koha/zebradb/etc/
○ icu.idx
○ phrases-icu.xml
○ string.chr
○ words-icu.xml

Copy /etc/koha/zebradb/etc/words-icu.xml to /etc/koha/zebradb/etc/icu.xml

Edit /etc/koha/zebradb/etc/icu.xml change


<icu_chain locale="en"> to <icu_chain locale="en_IN.UTF-8">

Save and change ownership of all copied files to koha:koha

# chown -R koha:koha /etc/koha/zebradb/etc

Edit /etc/koha/zebradb/zebra-biblios.cfg
add line
index: icu.idx

Restart zebra server and queue daemons

# /etc/init.d/koha-zebra-daemon restart
# /etc/init.d/koha-zebraqueue-daemon restart

Rebuild zebra index

# KOHA_CONF=/etc/koha/koha-conf.xml
# PERL5LIB=/usr/share/koha/lib
# /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r -v -w

Using yaz-client to verify zebra is working


#yaz-client

z>auth kohauser zebrastripes


z>open unix:/var/run/koha/zebradb/bibliosocket
z>base biblios
z>f ”पाँडे”
z>s
z>q

Adjusting Koha System Preferences to correctly search our multilingual


data in Koha staff client

Home → Administration → System Preferences → Searching


Turn off QueryFuzzy ( maybe and QueryWeightFields)

Potrebbero piacerti anche