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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 24 21:42:07 CET 2021


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

            Bug ID: 27784
           Summary: Unknown authority types break elasticsearch
                    authorities indexing
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com

We are seeing more libraries ending up with 'SUBDIV' type authority records in
their systems. Koha has no support for these.

They can be added to the authority types in the staff interface, however,
values are hardcoded in various modules and Koha has no concept of how to link
a subfield heading to a record, we only deal in whole fields

The larger problem is something to think about, but more directly we should not
allow indexing to die when an unknown type is encountered

To recreate:
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.

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


More information about the Koha-bugs mailing list