From 5ea1e67442d68b421afca5df45fd9ef177a6b8cf 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 --- Koha/BiblioUtils.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/BiblioUtils.pm b/Koha/BiblioUtils.pm index 9be2e6168a..e68307e3b6 100644 --- a/Koha/BiblioUtils.pm +++ b/Koha/BiblioUtils.pm @@ -152,7 +152,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.11.0