[Bug 26221] New: Advance Search under collection and Shelving location problem.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26221 Bug ID: 26221 Summary: Advance Search under collection and Shelving location problem. Change sponsored?: --- Product: Koha Version: 20.05 Hardware: PC OS: Linux Status: NEW Severity: minor Priority: P5 - low Component: Searching - Zebra Assignee: koha-bugs@lists.koha-community.org Reporter: webmaster@bhavans.info I Installed Debian 10 and Koha 20.05. the site is available at: http://45.82.73.122 Everything works fine except Advance Search. Problem- 1: When I do a Advance Search in Collection for a subject, I get "0" result and the search link is somethin like this: (limit=mc-itype%3AHIN) http://45.82.73.122/cgi-bin/koha/opac-search.pl?advsearch=1&idx=kw&idx=kw&idx=kw&do=Search&limit=mc-ccode%3AHIN&sort_by=relevance In the same link if I delete "mc-", (limit=itype%3AHIN) I get all the results. Problem-2: If I do an Advance Search for Shelving Location the search result is "0". The search link will be something like this: (mc-loc%3AZOR) http://45.82.73.122/cgi-bin/koha/opac-search.pl?advsearch=1&idx=kw&idx=kw&idx=kw&do=Search&limit=mc-loc%3AZOR&sort_by=relevance In this search url, if I change "mc-loc" to "location", I get the result. http://45.82.73.122/cgi-bin/koha/opac-search.pl?advsearch=1&idx=kw&idx=kw&idx=kw&do=Search&limit=location%3AZOR&sort_by=relevance Problem-3: On the home page (left side) I added a " Subject Search Form. Here I defined each collection as <option value="ccode:GEN">General</option> On selection, the page changes and I get the correct result. Conclusion: 1. mc-ccode is not working but ccode is working 2. mc-loc is not working but location is working. Can anyone suggest a way to over come this? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26221 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Advance Search under |Advance Search under |collection and Shelving |collection and shelving |location problem. |location problem --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- 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? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26221 --- Comment #2 from Vidya <webmaster@bhavans.info> --- No. I did not edit any Koha or Zebra files. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26221 --- Comment #3 from Vidya <webmaster@bhavans.info> --- 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 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26221 Vidya <webmaster@bhavans.info> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #4 from Vidya <webmaster@bhavans.info> --- 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. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26221 --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Thank you for sharing your solution! -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org