]> git.koha-community.org Git - koha.git/commit
Bug 25265: (QA follow-up) Check server type in Elasticsearch::index_records
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 25 Sep 2020 07:42:44 +0000 (07:42 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 28 Sep 2020 09:07:24 +0000 (11:07 +0200)
commitd19572ea765dbf6c13ba1343433ed07729413248
tree8af5062d80c44d70e5047bfb2ac3609f8970c6a0
parent501b9ea33667c7fdd87fe356b9fab364c10ab383
Bug 25265: (QA follow-up) Check server type in Elasticsearch::index_records

Doing the same change as previously (renaming biblionumber), but fixing
at the same the record fetch. If (theoretically) an authority is passed
without a record, it would have fetched a biblio record.

Test plan:
You need Elasticsearch here.
Replaced this line in AddAuthority:
    $indexer->index_records( $authid, "specialUpdate", "authorityserver", $record );
by
    $indexer->index_records( $authid, "specialUpdate", "authorityserver", undef );
And updated an authority record. Check if you can search for the change.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
JD amended patch: remove trailing whitespace

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/SearchEngine/Elasticsearch/Indexer.pm