[Koha-bugs] [Bug 14456] New: EmbedSeeFromHeadings record filter shouldn't process MARC holding fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 24 19:41:57 CEST 2015


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

            Bug ID: 14456
           Summary: EmbedSeeFromHeadings record filter shouldn't process
                    MARC holding fields
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Searching
          Assignee: gmcharlt at gmail.com
          Reporter: abl at biblos.pk.edu.pl
        QA Contact: testopia at bugs.koha-community.org

If the system preference IncludeSeeFromInSearches is enabled, records exported
for zebra indexing are being additionally processed by EmbedSeeFromHeadings
record filter (right now used only in rebuild_zebra.pl script). This filter
embeds 'see from' fields (extracted from authority records linked with the
given biblio via $9 subfields) into target MARC record, which is then
subsequently indexed in zebra.

Currently all fields containing $9 are getting the same exact treatment by this
filter. But on the export stage when the filter is applied, MARC record being
processed already does have holdings data fields added in the previous stage
(usually 952 / 995, depending on the MARC format). Problem is that holdings
data fields use to have $9 subfields in them as well (mapped to item.itemnumber
by default). As a consequence, some (great many in the typical setup) records
exported for zebra indexing may have surplus "see from" fields added
erroneously in semi-random fashion, so biblio searches would often return some
completely unexpected additional results.

EmbedSeeFromHeadings record filter should not process holdings fields when
dealing with MARC records intended for zebra indexing.

To reproduce:

1) database with as many sample or real-world biblio, item and authority
records as possible is recommended for testing purposes
2) enable IncludeSeeFromInSearches
3) export a bunch of biblio records for zebra (e.g.:
misc/migration_tools/rebuild_zebra.pl -I -b -x -k -length=1000), inspect the
result xml records in /tmp/<whatever> file; observe that at the end of many
records, here and there some extra "see from" (= 1st indicator: 'z') fields
tend to appear, which shouldn't be there ;)

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


More information about the Koha-bugs mailing list