Le 26/08/2014 15:43, Zeno Tajoli a écrit :
Hi all Il 26/08/2014 12:48, Mathieu Saby ha scritto:
As first step for au:phr we need:
<index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="abdg"> ... </index_data_field>
a different entry from the entry of au:word that is: <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="bdg"> ... </index_data_field>
Why not "abdg" for the second entry?
I fact my only idea is that there is an error at line 317 of your path. The line is: <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="bdg">
but for phrase it needs to be so: <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="abdg">
Why for phrases and not for word ? Because there is the line 309 in the patch (304 in master): <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="700" subfields="a">
So the word's indexes for 700$a are OK, but not phrase.
OK, in fact my patch was just trying to preserve the indexing of $a (only) in "author:sort" index Currently it does: index 700$a in auhor:w, author:p, author:s and index 700$bdg in author:w, author:p I could do index 700$a in author:s and index 700$abdg in author:w, author:p But don't know if it is best ;-) Mathieu
Are we allowed to use new elements or attributes in *-koha-*.xml files ? I think yes, namespace declaration is present only to be complian with xml tools, but it is not really present.
There is a namespace defined in the file : xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs". But I cannot find the definitions either on koha-community.org, or elsewhere. Do you know if it is avaiable somewhere? No, I think that kohaidx="http://www.koha-community.org/schemas/index-defs" and xmlns="http://www.koha-community.org/schemas/index-defs" are here only for the sake of xsltproc.
Bye Zeno Tajoli