From 44a5107523ef5e1b84b951ead6ab2cdea6eae7ca 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/BiblioUtils.pm b/Koha/BiblioUtils.pm index cb7baed0db..c2b5ac086b 100644 --- a/Koha/BiblioUtils.pm +++ b/Koha/BiblioUtils.pm @@ -146,7 +146,7 @@ sub get_all_biblios_iterator { my $row = $rs->next(); return if !$row; my $next = eval { - my $marc = $row->metadata->record({ embed_items => 1 }); + my $marc = $row->metadata->record({ embed_items => 1, embed_host_items => 1 }); $class->new($marc, $row->biblionumber); }; if ($@) { -- 2.30.2