[Koha-bugs] [Bug 9352] Zebra indexes useless subfields in UNIMARC 7XX

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 5 10:49:35 CEST 2014


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #31151|0                           |1
        is obsolete|                            |

--- Comment #53 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 31386
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31386&action=edit
[SIGNED OFF] Bug 9352 : More specific indexing of UNIMARC 7XX fields and 511
(DOM)

2d patch, for DOM indexing
Rebased on 20 Aug 2014, Fixed on 25 Aug 2014 (716 field and 205$g)

Same changes as in GRS-1 patch, with 2 small additions :
- I take the occasion for indexing the 511 field (I don't know why it was
omitted)
- index 710$a and 720$a in Author:s as well as 700$a (seems logical)

(biblio-zebra-indexdefs.xsl is made from biblio-koha-indexdefs.xml with
xsltproc)

Same test as first patch :
Testing :
a/ Create a record with some values. for example:
700$a Doe $b John $f1950 $cteacher $4070
710$a Corporate $b Meeting $q Address
716$a Trademark $f1960 $cgreat $4340
720$a Family $f1980 $4651
205$a 1st edition $fBy some guy $gAnd other guys
511$a falsetitle

b/ Before applying patch, make several searches :
Search in simple search and author search : "teacher", "great", "Address",
"1950", "1960", "070", "340", "651"
=> you will see the record among the results
Search in simple search and author search : "Doe", "John Doe", "Trademark",
"Family","corporate", "meeting"
=> you will see the record among the results
Search in simple search and author search : "guy", "guys"
=> you will see the record among the results with simple search (because 205 is
indexed in title)
=> you will not see the record among the results with author search
Search ti:falsetitle
=> no results

c/ Apply the patch
d/ copy the 2 modified files into your zebra configuration directory
e/ Rebuild Zebra with ./misc/migration_tools/rebuild_zebra.pl -b -x -v -reset

f/ Try the same searches as before :
Search in simple search and author search : "teacher", "great", "Address",
"1950", "1960", "070", "340", "651"
=> you will not see the record among the results
Search in simple search and author search : "Doe", "John Doe", "Trademark",
"Family","corporate", "meeting"
=> you will see the record among the results
Search in simple search and author search : "guy", "guys"
=> you will see the record among the results in both simple search and author
search
Search ti:falsetitle
=> 1 result

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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


More information about the Koha-bugs mailing list