[Koha-bugs] [Bug 8962] Create a new index for OPAC simple search, more specific than "any"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 14 23:43:49 CEST 2013


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

mathieu saby <mathieu.saby at univ-rennes2.fr> changed:

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

--- Comment #18 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
Created attachment 21986
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21986&action=edit
[PATCH 3/3] Bug 8962: Unimarc biblios and authorithies (GRS1)


This patch makes some changes UNIMARC GRS1 indexing, for indexing only some
specific fields in "any" index.
The patch is fully testable, and can be signed off if it works.
But the list of fields I kept in "any" is rather subjective, and based as my
experience as a library user:
It can be discussed in followups.

1. Defines a new index "anywhere" for indexing all biblio and authorities
subfields.
2. Make "any" index more selective than before :
- for authorities : all fields indexed in any except 001 and notes (3XX)
- for biblios : fields indexed in any :
* biblio fields indexed in "any" :
** the more "user friendly" control numbers : 01X, 07X
** authors : 7XX except $9, 200$f$g
** titles : 4XX except $9, 5XX except $9, 200$a$d$e$h$i
** edition statement : 205
** series : 225, 410, 411
** subjects : 6XX except $9 and 67X/68X
** notes : only 327, 328, 314, 330
* items fields indexed in "any" :
** barcode : 995f
** callnumber : 995k

Test plan :
In a Marc21 GRS-1 Koha :
1/ apply patch 1 and this one
2/ in Staff interface, make some searches on authorities (choose "Keyword
search" tab), including searches of words only present in 3XX fields.
3/ copy the 2 new record.abs files (UNIMARC auth, UNIMARC bib) from your
sources to the directory used by Zebra configuration in your Koha instance
4/ launch rebuild_zebra.pl -b -r -x -v
5/ make the same authorities searches as 2/ : you should get the same results,
except for searches based on words only present in 3XX fields : in that case,
you should not see the auth records.
6/ in default search (without selecting any index), search for some record by
- its isbn
- its issn
- its title
- its author(s)
- its series name
- its publisher
- its summary (330 field)
- several subjects
- the barcode of one of its items
- the callnumber of one of its items
=> you should find the record each time
7/ in default search (without selecting any index), search for some record by
- the content of any 3XX fields (except 327,328,314,330)
- the number of pages or volumes (ex : "510 p." or "1 vol")
- its language code ("eng", "fre"...)
- the value of 200$b (like "Texte imprimé")
- its publication year
- its town of publication
- the content of a 670-680 field
- the content of a 995 subfield (except barcode and callnumber)
- the content of a 099 subfield
=> you should not find the record each time
8/ regression test : check that specific indexes are working as usual (title,
subject, callnum, barcode, pubdate etc)

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


More information about the Koha-bugs mailing list