Bug 12948: Use word indexing for language (MARC21)
This patch is for MARC21. To test: 1)Setup a site with MARC21 2)Insert 2 record, one lang A in 041 and 008 pos 35-37 an other with lang A in 041 and lang B in 008 pos 35-37 3)Index them 4)Search in advanced search with filter 'languare' for lan A. You will see 2 records 5)Search in advanced search with filter 'languare' for lan B. You will see 0 records 6)Apply the patch 7)Full reindex 8)Search in advanced search with filter 'languare' for lan B. You will see 1 records http://bugs.koha-community.org/show_bug.cgi?id=12948 Signed-off-by: Magnus Enger <magnus@enger.priv.no> I have *not* actually tested this, but the changes are identical to the ones done for NORMARC, which I have tested, so I think it is safe to sign off. If anyone disagrees, please reset the bug to "Needs signoff". Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
bf89e306a8
commit
c29a53ea20
|
|
@ -39,7 +39,7 @@
|
|||
<index_control_field tag="007" offset="0" length="2">
|
||||
<target_index>ff7-01-02:w</target_index>
|
||||
</index_control_field>
|
||||
<!--record.abs line 47: melm 008 date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:n:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)-->
|
||||
<!--record.abs line 47: melm 008 date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:w:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)-->
|
||||
<index_control_field tag="008" offset="0" length="5">
|
||||
<target_index>date-entered-on-file:n</target_index>
|
||||
</index_control_field>
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
<target_index>bio:w</target_index>
|
||||
</index_control_field>
|
||||
<index_control_field tag="008" offset="35" length="3">
|
||||
<target_index>ln:n</target_index>
|
||||
<target_index>ln:w</target_index>
|
||||
</index_control_field>
|
||||
<index_control_field tag="008" offset="24" length="4">
|
||||
<target_index>ctype:w</target_index>
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
|||
<z:index name="bio:w">
|
||||
<xslo:value-of select="substring(., 35, 1)"/>
|
||||
</z:index>
|
||||
<z:index name="ln:n">
|
||||
<z:index name="ln:w">
|
||||
<xslo:value-of select="substring(., 36, 3)"/>
|
||||
</z:index>
|
||||
<z:index name="ctype:w">
|
||||
|
|
|
|||
Loading…
Reference in New Issue