[Koha-bugs] [Bug 11194] Add a new index for "Edition Statement" of a MARC Record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 5 12:42:03 CEST 2015


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

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

--- Comment #11 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 41376
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41376&action=edit
Bug 11194: Add a new index for "Edition Statement" of a MARC Record

Adds the "Edition Statement" MARC-field as a sortable search index in Koha.
This Field is also used by the MARC::Record->edition().

It is mapped to search keyword "edition" and it targets the following
MARC-fields:

UNIMARC: all 205-subfields concatenated
MARC21 : all 250-subfields concatenated
NORMARC: all 250-subfields concatenated

After applying this patch a full biblio reindexing needs to be done to make old
records searchable. New Biblios, and Biblios that are part of some operations
(checkin/out/hold/...), are searchable. These generate good test data to test
this feature without fully reindexing the search index.

TEST PLAN:
0. Move the search index and search word definitions from the koha source code
   to the directory where Zebra uses them.
   This is most easiest to do by reinstalling Koha, but can be manually moved
   as well.
1. Find a record with some data in the "Edition Statement" -field.
2. Modify that Record and reindex it.
3. Search with the keyword "edition='<edition_statement>'" where
   <edition_statement> is the stuff you wrote in the MARC-field.
4. Observe the found record.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Tested on MARC21 and UNIMARC, works
No errors

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

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


More information about the Koha-bugs mailing list