[Koha-bugs] [Bug 17377] New: ES - Take control fields into account
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 29 17:20:43 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17377
Bug ID: 17377
Summary: ES - Take control fields into account
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: major
Priority: P5 - low
Component: Searching
Assignee: jonathan.druart at bugs.koha-community.org
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
Depends on: 12478
There is a bug in Koha::SearchEngine::Elasticsearc::Search->json2marc, it
assumes that the MARC::Field constructor always takes >= 5 parameters.
This assumption is wrong for control fields, to create a control field you need
to call the constructor with:
MARC::Field->new($tag, $value);
Note that I got "Too much data for control field" in the _warning value of my
MARC::Field because too many parameters were passed, and the value was undef.
That broke the result search links (on the staff interface) for DB with
biblio.biblionumber mapped with 001.
Other bugs will certainly be fixed by this patch.
For instance I got:
GetMarcBiblio called with undefined biblionumber at
/home/koha/src/opac/opac-search.pl line 664.
GetCOinSBiblio called with undefined record at
/home/koha/src/opac/opac-search.pl line 665.
in my logs.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12478
[Bug 12478] Elasticsearch support for Koha
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list