View | Details | Raw Unified | Return to bug 26632
Collapse All | Expand All

(-)a/svc/import_bib (-1 / +1 lines)
Lines 80-86 sub import_bib { Link Here
80
        return $result;
80
        return $result;
81
    }
81
    }
82
82
83
    my $import_record_id = AddBiblioToBatch($batch_id, 0, $marc_record, "utf8", int(rand(99999)));
83
    my $import_record_id = AddBiblioToBatch($batch_id, 0, $marc_record, "utf8", 1);
84
    my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 'UPDATE COUNTS');
84
    my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 'UPDATE COUNTS');
85
85
86
    my $matcher = C4::Matcher->new($params->{record_type} || 'biblio');
86
    my $matcher = C4::Matcher->new($params->{record_type} || 'biblio');
(-)a/t/db_dependent/ImportBatch.t (-2 / +1 lines)
Lines 122-128 my @fields = ( Link Here
122
);
122
);
123
$record->append_fields(@fields);
123
$record->append_fields(@fields);
124
$original_record->append_fields(@fields);
124
$original_record->append_fields(@fields);
125
my $import_record_id = AddBiblioToBatch( $id_import_batch1, 0, $record, 'utf8', int(rand(99999)), 0 );
125
my $import_record_id = AddBiblioToBatch( $id_import_batch1, 0, $record, 'utf8', 0 );
126
AddItemsToImportBiblio( $id_import_batch1, $import_record_id, $record, 0 );
126
AddItemsToImportBiblio( $id_import_batch1, $import_record_id, $record, 0 );
127
127
128
my $record_from_import_biblio_with_items = C4::ImportBatch::GetRecordFromImportBiblio( $import_record_id, 'embed_items' );
128
my $record_from_import_biblio_with_items = C4::ImportBatch::GetRecordFromImportBiblio( $import_record_id, 'embed_items' );
129
- 

Return to bug 26632