https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24123 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Command-line Utilities |Searching - Elasticsearch QA Contact|testopia@bugs.koha-communit | |y.org | --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- The problem only appears with SearchEngine=Elastic, Koha::SearchEngine::Search->new uses a require statement to load the correct Search module. This is done l.257 of bulkmarcimport.pl: 257 my $searcher = Koha::SearchEngine::Search->new Koha::SearchEngine::Elasticsearch::Search will `use MARC::File::XML`, and so resets the arguments set before: 216 $MARC::File::XML::_load_args{BinaryEncoding} = 'utf-8'; 220 $MARC::File::XML::_load_args{RecordFormat} = $recordformat; An easy (but dirty) fix could be to move the declaration of my $searcher before in the script. The tricky (but correct) fix would be to remove the long standing "ugly hack follows" comment. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.