| Summary: | Advance Search under collection and shelving location problem | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Vidya <webmaster> |
| Component: | Searching - Zebra | Assignee: | Bugs List <koha-bugs> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P5 - low | ||
| Version: | 20.05 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
Vidya
2020-08-15 18:15:50 UTC
I have made some tests on master and the searches for locations and collections work correctly there. Do you have any customizations on the Zebra files or other Koha files? No. I did not edit any Koha or Zebra files. I have installed yaz-icu package for Indian language support. I have edited /etc/koha/zebradb/etc/default.idx #charmap word-phrase-utf.chr icuchain words-icu.xml again #charmap word-phrase-utf.chr icuchain phrases-icu.xml When I indexed without enabling icuchain, Collection and Shelving location worked, but language search failed. So the problem occurs only when yas-icu is enabled It is not a bug in Koha. It happened because after installing yaz-icu, one need to do the following changes. sudo apt-get install yaz-icu go to : cd /usr/share/idzebra-2.0/tab/ Copy the following 4 files to new location: 1. icu.idx 2. phrases-icu.xml 3. string.chr 4. words-icu.xml cp icu.idx phrases-icu.xml string.chr words-icu.xml /etc/koha/zebradb/etc/ Edit default.idx and comment charmap and add icuchain sudo nano default.idx Here I found only charmap string.chr so commented that in both places. #charmap word-phrase-utf.chr icuchain words-icu.xml and #charmap word-phrase-utf.chr icuchain phrases-icu.xml Create a copy of words-icu.xml cp /etc/koha/zebradb/etc/words-icu.xml /etc/koha/zebradb/etc/icu.xml cd sudo nano /etc/koha/zebradb/etc/icu.xml change <icu_chain locale="en"> to <icu_chain locale="en_IN.UTF-8"> Give the admin rights by running following commands. sudo chown -R library-koha:library-koha /etc/koha/zebradb/etc sudo koha-zebra --restart <library instance name> sudo koha-rebuild-zebra -v -f <library instance name> Now I got everything working perfectly. In Advance Search, I am able to do Collection and Shelving Location search and language search also. Thank you for sharing your solution! |