Bug 20535: ModZebra called with $record with items stripped

ModZebra called with $record with items stripped in
ModBiblioMarc. Remove $record argument to force
record to be loaded again from database with items
embedded.

How to test:
1) Make sure biblios are indexed (with
   rebuild_elastic_search.pl).
2) Perform a search that will produce a sample result
   containing at least one biblio with items.
3) Edit and save a biblio with items.
4) Perform the same search again, the updated biblio
   should now have no items when viewed in the search
   results (No items).
5) Apply patch.
6) Repeat step 1-3.
7) The updated biblio should now have items when viewed
   in the search results.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
David Gustafsson 2018-04-06 11:15:07 +02:00 committed by Nick Clemens
parent 926d7c4ba1
commit 5ebf1a26da
1 changed files with 1 additions and 1 deletions

View File

@ -3348,7 +3348,7 @@ sub ModBiblioMarc {
$m_rs->metadata( $record->as_xml_record($encoding) );
$m_rs->store;
ModZebra( $biblionumber, "specialUpdate", "biblioserver", $record );
ModZebra( $biblionumber, "specialUpdate", "biblioserver" );
return $biblionumber;
}