[Koha-bugs] [Bug 27784] Unknown authority types break elasticsearch authorities indexing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 3 11:41:34 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27784

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

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

--- Comment #8 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 117564
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117564&action=edit
Bug 27784: Don't parse subdivision authorities as headings

Subdivision authorities are not used for linking, however, they are recognized
by
C4::AuthoritiesMarc

While these records are not used for linking, they could provide reference and
should be allowed to exist in the catalog without breaking ES indexing

THis patch simply skips the step of parsing the authorities into the linking
form
if the type contains '_SUBD'

To test:
1 - Import a subdivision authority record via Z39 or use the one attached to
this bug
2 - perl misc/search_tools/rebuild_elasticsearch.pl -v -d
3 - Authority indexing dies:
   Use of uninitialized value $tag in hash element at
/usr/share/perl5/MARC/Record.pm line 202.
   Use of uninitialized value $tag in regexp compilation at
/usr/share/perl5/MARC/Record.pm line 206.
   Use of uninitialized value $tag in hash element at
/usr/share/perl5/MARC/Record.pm line 207.
   Can't call method "tag" on an undefined value at
/kohadevbox/koha/C4/Heading.pm line 71.
4 - Apply patches
5 - reindex
6 - Success!

Signed-off-by: David Nind <david at davidnind.com>
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