From 773d66518d60133e727c0332b244c5b5d67532f5 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. --- tools/showdiffmarc.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/showdiffmarc.pl b/tools/showdiffmarc.pl index 33881ba..488f39e 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.1.0