[Koha-bugs] [Bug 9830] Some UNIMARC item indexes could be broken whith Queryweightfields syspref

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Mar 17 15:55:29 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9830

--- Comment #1 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
Created attachment 16198
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16198&action=edit
[PATCH] Bug 9830: Fix some indexes in UNIMARC item indexing

With this combinaison of sysprefs, and a UNIMARC configuration, it impossible
to search on location, barcode and ccode indexes :

QueryWeightFields          is activated
QueryAutoTruncate          only if * is added

But in UNIMARC, location, barcode and ccode (995 $e,$f,h) are indexed only as
"words". They need to be indexed also as "phrase"
Additionnaly, in UNIMARC, information about damaged and lost status of items is
not indexed, while it is done in MARC21.
This patch
add 2 new indexes for 995$1 (damaged) and 995$3 (lost)
index location, barcode and ccode as "phrase" as well as "words"
indexing of items in UNIMARC could be improved. I add comments explaining the
origin of Koha 995, I think it could be usefull for further changes.

To test, on a UNIMARC configuration :
A. indexed with GR1
1) set sysprefs QueryWeightFields as "activated" and QueryAutoTruncate as "only
if * is adde"
2) select location index in advanced search and search for a value existing in
your records in 995$e.
3) 0 results
4) Apply patch
5) Rebuild zebra
6) select location index in advanced search and search for a value existing in
your records in 995$e.
7) x results

B. indexed with DOM
Do the same operations


M. Saby

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


More information about the Koha-bugs mailing list