Bug 17196: [QA Follow-up] Additional fix on acqui/basketgroup
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 13 Jan 2017 10:27:08 +0000 (11:27 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Jan 2017 13:49:30 +0000 (13:49 +0000)
acqui/basketgroup calls GetOrders and expects marcxml in the results.
Fixing it by an additional call of GetXmlBiblio.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
acqui/basketgroup.pl

index bd4c6bf..9ca84e9 100755 (executable)
@@ -183,6 +183,7 @@ sub printbasketgrouppdf{
             # Editor Number
             my $en;
             my $edition;
+            my $ord->{marcxml} = C4::Biblio::GetXmlBiblio( $ord->{biblionumber} );
             my $marcrecord=eval{MARC::Record::new_from_xml( $ord->{marcxml},'UTF-8' )};
             if ($marcrecord){
                 if ( C4::Context->preference("marcflavour") eq 'UNIMARC' ) {