314 |
type => $config->{$use_indexer}->{type}, |
type => $config->{$use_indexer}->{type}, |
315 |
) if ($indexer && $ds); |
) if ($indexer && $ds); |
316 |
|
|
317 |
$marc->add( |
if ($marc) { |
318 |
id => $mfn, |
my $i = 0; |
319 |
fields => [ WebPAC::Normalize::_get_marc_fields() ], |
|
320 |
leader => WebPAC::Normalize::marc_leader(), |
while (my $fields = WebPAC::Normalize::_get_marc_fields( fetch_next => 1 ) ) { |
321 |
row => $row, |
$marc->add( |
322 |
) if ($marc); |
id => $mfn . ( $i ? "/$i" : '' ), |
323 |
|
fields => $fields, |
324 |
|
leader => WebPAC::Normalize::marc_leader(), |
325 |
|
row => $row, |
326 |
|
); |
327 |
|
$i++; |
328 |
|
} |
329 |
|
|
330 |
|
$log->info("Created $i instances of MFN $mfn\n") if ($i > 1); |
331 |
|
} |
332 |
|
|
333 |
$total_rows++; |
$total_rows++; |
334 |
} |
} |