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

(-)a/C4/Biblio.pm (-11 / +9 lines)
Lines 206-225 sub AddBiblio { Link Here
206
        $defer_marc_save = 1;
206
        $defer_marc_save = 1;
207
    }
207
    }
208
208
209
    if (C4::Context->preference('BiblioAddsAuthorities')) {
210
        BiblioAutoLink( $record, $frameworkcode );
211
    }
212
213
    my ( $biblionumber, $biblioitemnumber, $error );
214
    my $dbh = C4::Context->dbh;
215
216
    # transform the data into koha-table style data
217
    SetUTF8Flag($record);
218
    my $olddata = TransformMarcToKoha( $record, $frameworkcode );
219
    my $schema = Koha::Database->schema;
209
    my $schema = Koha::Database->schema;
210
    my ( $biblionumber, $biblioitemnumber );
220
    try {
211
    try {
221
        $schema->txn_do(sub {
212
        $schema->txn_do(sub {
222
213
214
            if (C4::Context->preference('BiblioAddsAuthorities')) {
215
                BiblioAutoLink( $record, $frameworkcode );
216
            }
217
218
            # transform the data into koha-table style data
219
            SetUTF8Flag($record);
220
            my $olddata = TransformMarcToKoha( $record, $frameworkcode );
221
223
            my $biblio = Koha::Biblio->new(
222
            my $biblio = Koha::Biblio->new(
224
                {
223
                {
225
                    frameworkcode => $frameworkcode,
224
                    frameworkcode => $frameworkcode,
226
- 

Return to bug 26518