From 9b92e6d8f3cf2234d511f8ebdf0b562f72479266 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Apr 2015 11:48:37 +0200 Subject: [PATCH] Bug 6520: Display items for staged record - diff view This patchs adds the item information in the diff view. Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 1d46802d1be22d39df1599eb1392e2e3df5f38f9) Signed-off-by: Chris Cormack --- tools/showdiffmarc.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/showdiffmarc.pl b/tools/showdiffmarc.pl index 33881bac41..488f39ef24 100755 --- a/tools/showdiffmarc.pl +++ b/tools/showdiffmarc.pl @@ -65,7 +65,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); -$recordBiblionumber =GetMarcBiblio($biblionumber); +$recordBiblionumber = GetMarcBiblio($biblionumber, 'embed_items'); if( $recordBiblionumber ) { $formatted1 = $recordBiblionumber->as_formatted; my $data = GetBiblioData($biblionumber); @@ -74,9 +74,8 @@ if( $recordBiblionumber ) { $errorFormatted1 = 1; } -my ($marc,$encoding) = GetImportRecordMarc($importid); -if( $marc ) { - $recordImportid = MARC::Record->new_from_usmarc($marc) ; +if( $importid ) { + $recordImportid = C4::ImportBatch::GetRecordFromImportBiblio( $importid, 'embed_items' ); $formatted2 = $recordImportid->as_formatted; my $biblio = GetImportBiblios($importid); $importTitle = $biblio->[0]->{'title'}; -- 2.39.5