[Koha-bugs] [Bug 23671] Elasticsearch shouldn't throw exception on an uppercase subfield identifier

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 4 12:01:53 CEST 2019


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

Nick Clemens <nick at bywatersolutions.com> changed:

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

--- Comment #3 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 93730
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=93730&action=edit
Bug 23671: Elasticsearch shouldn't throw exception on an uppercase subfield
identifier

Prevent Elasticsearch from throwing an exception when the mappings
include uppercase subfield identifier.

Though forbidden in MARC21, It doesn't seem to be the case for Unimarc
or ISO 2709 as a whole. It is also possible to define such a subfield
identifier in the Koha MARC Framework and in the Elasticsearch
mappings.

Test plan:

1. add a 995Z subfield identifier in Elasticsearch mappings
(Administration -> Search engine configuration)

2. run $KOHA_PATH/misc/search_tools/rebuild_elasticsearch.pl -v -d -b

3. see it throw: “Invalid MARC field expression: 995Z”

4. apply patch

5. rerun $KOHA_PATH/misc/search_tools/rebuild_elasticsearch.pl -v -d -b

6. sababa

Signed-off-by: Séverine QUEUNE <severine.queune at bulac.fr>

Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

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


More information about the Koha-bugs mailing list