diff --git a/C4/Items.pm b/C4/Items.pm index 004631af235..62bb0c4686a 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1578,10 +1578,12 @@ sub _find_value { =head2 PrepareItemrecordDisplay - PrepareItemrecordDisplay($itemrecord,$bibnum,$itemumber,$frameworkcode); + PrepareItemrecordDisplay($bibnum,$itemumber,$defaultvalues,$frameworkcode); Returns a hash with all the fields for Display a given item data in a template +$defaultvalues should either contain a hashref of values for the new item, or be undefined. + The $frameworkcode returns the item for the given frameworkcode, ONLY if bibnum is not provided =cut diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index 0e3df3ba043..eb414150c12 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -105,11 +105,11 @@ import_biblios_list($template, $cgiparams->{'import_batch_id'}); if ( $basket->effective_create_items eq 'ordering' && !$basket->is_standing ) { # prepare empty item form - my $cell = PrepareItemrecordDisplay( '', '', '', 'ACQ' ); + my $cell = PrepareItemrecordDisplay( '', '', undef, 'ACQ' ); # warn "==> ".Data::Dumper::Dumper($cell); unless ($cell) { - $cell = PrepareItemrecordDisplay( '', '', '', '' ); + $cell = PrepareItemrecordDisplay( '', '', undef, '' ); $template->param( 'NoACQframework' => 1 ); } my @itemloop;