Lines 430-438
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
Link Here
|
430 |
FROM `marc_breeding`"); |
430 |
FROM `marc_breeding`"); |
431 |
|
431 |
|
432 |
$dbh->do("INSERT INTO `import_records` |
432 |
$dbh->do("INSERT INTO `import_records` |
433 |
(`import_batch_id`, `record_sequence`, `marc`, `record_type`, `status`, |
433 |
(`import_batch_id`, `import_record_id`, `record_sequence`, `marc`, `record_type`, `status`, |
434 |
`encoding`, `z3950random`, `marcxml`, `marcxml_old`) |
434 |
`encoding`, `z3950random`, `marcxml`, `marcxml_old`) |
435 |
SELECT `import_batch_id`, 1, `marc`, 'biblio', 'staged', `encoding`, `z3950random`, '', '' |
435 |
SELECT `import_batch_id`, `id`, 1, `marc`, 'biblio', 'staged', `encoding`, `z3950random`, '', '' |
436 |
FROM `marc_breeding` |
436 |
FROM `marc_breeding` |
437 |
JOIN `import_batches` ON (`file_name` = `file`)"); |
437 |
JOIN `import_batches` ON (`file_name` = `file`)"); |
438 |
|
438 |
|
Lines 440-446
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
Link Here
|
440 |
(`import_record_id`, `title`, `author`, `isbn`) |
440 |
(`import_record_id`, `title`, `author`, `isbn`) |
441 |
SELECT `import_record_id`, `title`, `author`, `isbn` |
441 |
SELECT `import_record_id`, `title`, `author`, `isbn` |
442 |
FROM `marc_breeding` |
442 |
FROM `marc_breeding` |
443 |
JOIN `import_records` USING (`z3950random`)"); |
443 |
JOIN `import_records` ON (`import_record_id` = `id`)"); |
444 |
|
444 |
|
445 |
$dbh->do("UPDATE `import_batches` |
445 |
$dbh->do("UPDATE `import_batches` |
446 |
SET `num_biblios` = ( |
446 |
SET `num_biblios` = ( |
447 |
- |
|
|