Lines 125-142
sub create_order_lines_from_file {
Link Here
|
125 |
} |
125 |
} |
126 |
); |
126 |
); |
127 |
|
127 |
|
128 |
while ( my $import_record = $import_records->next ) { |
128 |
while( my $import_record = $import_records->next ){ |
129 |
my $result = add_biblio_from_import_record( |
129 |
my $result = add_biblio_from_import_record({ |
130 |
{ |
130 |
import_batch_id => $import_batch_id, |
131 |
import_batch_id => $import_batch_id, |
131 |
import_record => $import_record, |
132 |
import_record => $import_record, |
132 |
matcher_id => $params->{matcher_id}, |
133 |
matcher_id => $params->{matcher_id}, |
133 |
overlay_action => $params->{overlay_action}, |
134 |
overlay_action => $params->{overlay_action}, |
134 |
agent => $agent, |
135 |
agent => $agent, |
135 |
}); |
136 |
} |
136 |
warn "Duplicates found in $result->{duplicates_in_batch}, record was skipped." if $result->{duplicates_in_batch}; |
137 |
); |
|
|
138 |
warn "Duplicates found in $result->{duplicates_in_batch}, record was skipped." |
139 |
if $result->{duplicates_in_batch}; |
140 |
next if $result->{skip}; |
137 |
next if $result->{skip}; |
141 |
|
138 |
|
142 |
my $order_line_details = add_items_from_import_record( |
139 |
my $order_line_details = add_items_from_import_record( |
Lines 417-423
sub _verify_number_of_fields {
Link Here
|
417 |
$tags_count; # All counts of various fields should be equal if they exist |
414 |
$tags_count; # All counts of various fields should be equal if they exist |
418 |
} |
415 |
} |
419 |
} |
416 |
} |
420 |
|
|
|
421 |
return { error => 0, count => $tags_count }; |
417 |
return { error => 0, count => $tags_count }; |
422 |
} |
418 |
} |
423 |
|
419 |
|
Lines 1214-1220
sub _create_item_fields_from_syspref {
Link Here
|
1214 |
push @uris, $infoset->{uri}; |
1210 |
push @uris, $infoset->{uri}; |
1215 |
push @copynos, $infoset->{copyno}; |
1211 |
push @copynos, $infoset->{copyno}; |
1216 |
push @budget_codes, $item_budget_id; |
1212 |
push @budget_codes, $item_budget_id; |
1217 |
push @itemprices, $infoset->{itemprice}; |
1213 |
push @itemprices, $infoset->{price}; |
1218 |
push @replacementprices, $infoset->{replacementprice}; |
1214 |
push @replacementprices, $infoset->{replacementprice}; |
1219 |
push @itemcallnumbers, $infoset->{itemcallnumber}; |
1215 |
push @itemcallnumbers, $infoset->{itemcallnumber}; |
1220 |
} |
1216 |
} |