[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:48:05 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 #14872|0                           |1
        is obsolete|                            |

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


This patch makes some changes MARC21 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
- for biblios : fields indexed in any :
* biblio fields indexed in "any" :
** the more "user friendly" control numbers : 020->030
** main entries (authors and uniform title) : 1XX
**  title and Title-Related Fields : 20X-24X
** publisher : 260$b
** series : 4XX
** some notes : 502 (dissertation), 520 (abstract), 505 (formated content), 511
(participant)
** subjects : 6XX
** added Entry Fields : 70X-75X
** linking Entries-General Information : 76X-78X
** series Added Entry Fields : 80X-83X
* item fields indexed in "any" :
** callnumber : 952$o
** barcode : 952$p
3. Also index all the Marc21 notes (5XX) in "Notes" index (same logic as
current 3XX fields indexing in UNIMARC)
- new fields not indexed before :
504,506,507,508,511,513,514,515,516,518,521,522,524,525,530,533,534,535,
536,538,540,541,542,544,545,547,550,552,555,556,561,562,563,567,580,581,583,584,585,586,588
- fields indexed in "Notes" in addition to a more specific index :
502,505,521,520,510,526
4. Also index all the Marc21 notes (5XX) in "Notes" index (same logic as
current 3XX fields indexing in UNIMARC)
5. Adds a lot of comments to make easier further changes and error checking

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)
3/ copy the 2 new record.abs files (Marc21 auth, Marc21 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
5/ edit a record to put the value "xxxx" in newly indexed "5XX" field (for
example in 530)
6/ search "note:xxxx" : you should find the record
7/ edit a record to put the value "xxxx" in a "5XX" field index in note in
addition to a more specifi index (for example in 520)
8/ search "note:xxxx" : you should find the record
9/ 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 (520 field)
- several subjects
- the barcode of one of its items
- the callnumber of one of its items
=> you should find the record each time
10/ in default search (without selecting any index), search for some record by
- the content of any 5XX fields (except 502,505,511,520)
- the number of pages (ex : "510p")
- its language code ("eng", "fre"...)
- its publication year
- its town of publication
- the content of a 05X-08X field
- the content of a 010-018 field
- the content of a 942 subfield
- the content of a 952 subfield (except barcode and callnumber)
=> you should not find the record each time
11/ 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