Bugzilla – Attachment 184747 Details for
Bug 27138
Host items are not included in Z39 results when using EasyAnalytics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27138: (follow-up) Embed host items when performing index from command line
Bug-27138-follow-up-Embed-host-items-when-performi.patch (text/plain), 1.60 KB, created by
Nick Clemens (kidclamp)
on 2025-07-28 13:52:22 UTC
(
hide
)
Description:
Bug 27138: (follow-up) Embed host items when performing index from command line
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-07-28 13:52:22 UTC
Size:
1.60 KB
patch
obsolete
>From 26dcdcc2ed3e75c01301e8a1691328b0358d0cb0 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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 <andrew@bywatersolutions.com> > >Signed-off-by: Michael Sutherland <sudrland@vt.edu> >--- > Koha/BiblioUtils.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/BiblioUtils.pm b/Koha/BiblioUtils.pm >index fa38faba568..c0d3e4db4f1 100644 >--- a/Koha/BiblioUtils.pm >+++ b/Koha/BiblioUtils.pm >@@ -152,8 +152,8 @@ sub get_all_biblios_iterator { > my $row = $rs->next(); > return if !$row; > my $next = eval { >- my $marc = $row->metadata_record( { embed_items => 1 } ); >- $class->new( $marc, $row->biblionumber ); >+ my $marc = $row->metadata->record({ embed_items => 1, embed_host_items => 1 }); >+ $class->new($marc, $row->biblionumber); > }; > if ($@) { > warn sprintf "Something went wrong reading record for biblio %s: %s\n", $row->biblionumber, $@; >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27138
:
114126
|
115158
|
117333
|
117334
|
117346
|
117347
|
122035
|
125698
|
125699
|
125700
|
125701
|
128175
|
128176
|
128177
|
128178
|
128179
|
139401
|
139402
|
139403
|
139404
|
144200
|
144201
|
144202
|
144203
|
184746
| 184747 |
184748
|
184749