From 9bd64b901459bf6c06093012d76c095d44bb5d1a Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 23 Nov 2022 22:07:10 +0000 Subject: [PATCH] Bug 32339: Provide record when cataloguing biblios To test: 1. Ensure you have Elasticsearch enabled and configured 2. Add a new record and confirm you can search for it straight after saving, before and after applying the patch Sponsored-by: Auckland University of Technology --- C4/Biblio.pm | 2 +- Koha/SearchEngine/Elasticsearch/Indexer.pm | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 9790febdaa2..61a13f74e04 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -2778,7 +2778,7 @@ sub ModBiblioMarc { unless ( $skip_record_index ) { my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); - $indexer->index_records( $biblionumber, "specialUpdate", "biblioserver" ); + $indexer->index_records( $biblionumber, "specialUpdate", "biblioserver", $record ); } return $biblionumber; diff --git a/Koha/SearchEngine/Elasticsearch/Indexer.pm b/Koha/SearchEngine/Elasticsearch/Indexer.pm index 6101a3a3729..e3e47f412c8 100644 --- a/Koha/SearchEngine/Elasticsearch/Indexer.pm +++ b/Koha/SearchEngine/Elasticsearch/Indexer.pm @@ -308,8 +308,7 @@ sub update_index_background { This function takes an array of record numbers and fetches the records to send to update_index for actual indexing. -If $records parameter is provided the records will be used as-is, this is only utilized for authorities -at the moment. +If $records parameter is provided the records will be used as-is. The other variables are used for parity with Zebra indexing calls. Currently the calls are passed through to Zebra as well. -- 2.20.1