Lines 139-146
if ($quantityrec > $origquantityrec ) {
Link Here
|
139 |
my @field_values = $input->multi_param('field_value'); |
139 |
my @field_values = $input->multi_param('field_value'); |
140 |
my @serials = $input->multi_param('serial'); |
140 |
my @serials = $input->multi_param('serial'); |
141 |
my @itemid = $input->multi_param('itemid'); |
141 |
my @itemid = $input->multi_param('itemid'); |
142 |
my @ind_tag = $input->multi_param('ind_tag'); |
|
|
143 |
my @indicator = $input->multi_param('indicator'); |
144 |
#Rebuilding ALL the data for items into a hash |
142 |
#Rebuilding ALL the data for items into a hash |
145 |
# parting them on $itemid. |
143 |
# parting them on $itemid. |
146 |
my %itemhash; |
144 |
my %itemhash; |
Lines 153-168
if ($quantityrec > $origquantityrec ) {
Link Here
|
153 |
push @{$itemhash{$itemid[$i]}->{'tags'}},$tags[$i]; |
151 |
push @{$itemhash{$itemid[$i]}->{'tags'}},$tags[$i]; |
154 |
push @{$itemhash{$itemid[$i]}->{'subfields'}},$subfields[$i]; |
152 |
push @{$itemhash{$itemid[$i]}->{'subfields'}},$subfields[$i]; |
155 |
push @{$itemhash{$itemid[$i]}->{'field_values'}},$field_values[$i]; |
153 |
push @{$itemhash{$itemid[$i]}->{'field_values'}},$field_values[$i]; |
156 |
push @{$itemhash{$itemid[$i]}->{'ind_tag'}},$ind_tag[$i]; |
|
|
157 |
push @{$itemhash{$itemid[$i]}->{'indicator'}},$indicator[$i]; |
158 |
} |
154 |
} |
159 |
my $new_order = Koha::Acquisition::Orders->find( $new_ordernumber ); |
155 |
my $new_order = Koha::Acquisition::Orders->find( $new_ordernumber ); |
160 |
foreach my $item (keys %itemhash){ |
156 |
foreach my $item (keys %itemhash){ |
161 |
my $xml = TransformHtmlToXml( $itemhash{$item}->{'tags'}, |
157 |
my $xml = TransformHtmlToXml( $itemhash{$item}->{'tags'}, |
162 |
$itemhash{$item}->{'subfields'}, |
158 |
$itemhash{$item}->{'subfields'}, |
163 |
$itemhash{$item}->{'field_values'}, |
159 |
$itemhash{$item}->{'field_values'}, |
164 |
$itemhash{$item}->{'indicator'}, |
160 |
undef, |
165 |
$itemhash{$item}->{'ind_tag'}, |
161 |
undef, |
166 |
'ITEM' ); |
162 |
'ITEM' ); |
167 |
my $record=MARC::Record::new_from_xml($xml, 'UTF-8'); |
163 |
my $record=MARC::Record::new_from_xml($xml, 'UTF-8'); |
168 |
my (undef,$bibitemnum,$itemnumber) = AddItemFromMarc($record,$biblionumber); |
164 |
my (undef,$bibitemnum,$itemnumber) = AddItemFromMarc($record,$biblionumber); |