From 2df60599721dfa7fb3c4644eefdaf37ae197f8f7 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 14 Jan 2021 13:22:18 +0000 Subject: [PATCH] Bug 27138: (follow-up) Embed host items when performing index from command line The previous patch made sure host items were embedded when indexes were performed inside of Koha (catalg edits, checkins, etc.) but did not affect a command line reindex To test: 0 - Follow previous test plan to setup records and set search engine to elasticsearch 1 - perl misc/search_tools/rebuild_elasticsearch.pl -d 2 - Search for the barcode and confirm both records are returned 3 - Confirm the host items are included in the results Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Michael Sutherland --- Koha/BiblioUtils.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/BiblioUtils.pm b/Koha/BiblioUtils.pm index 1ece4a8317..e9ce5afe09 100644 --- a/Koha/BiblioUtils.pm +++ b/Koha/BiblioUtils.pm @@ -151,7 +151,9 @@ sub get_all_biblios_iterator { return if !$row; my $marc = C4::Biblio::GetMarcBiblio({ biblionumber => $row->biblionumber, - embed_items => 1 }); + embed_items => 1, + embed_host_items => 1 + }); my $next = eval { __PACKAGE__->new($marc, $row->biblionumber); }; -- 2.20.1