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

(-)a/acqui/addorderiso2709.pl (-1 / +7 lines)
Lines 51-56 use Koha::Acquisition::Baskets; Link Here
51
use Koha::Acquisition::Currencies;
51
use Koha::Acquisition::Currencies;
52
use Koha::Acquisition::Orders;
52
use Koha::Acquisition::Orders;
53
use Koha::Acquisition::Booksellers;
53
use Koha::Acquisition::Booksellers;
54
use Koha::ImportBatches;
54
use Koha::Import::Records;
55
use Koha::Import::Records;
55
use Koha::Patrons;
56
use Koha::Patrons;
56
57
Lines 135-140 if ($op eq ""){ Link Here
135
136
136
    # retrieve the file you want to import
137
    # retrieve the file you want to import
137
    my $import_batch_id = $cgiparams->{'import_batch_id'};
138
    my $import_batch_id = $cgiparams->{'import_batch_id'};
139
    my $import_batch = Koha::ImportBatches->find( $import_batch_id );
140
    my $overlay_action = $import_batch->overlay_action;
138
    my $import_records = Koha::Import::Records->search({
141
    my $import_records = Koha::Import::Records->search({
139
        import_batch_id => $import_batch_id,
142
        import_batch_id => $import_batch_id,
140
    });
143
    });
Lines 171-176 if ($op eq ""){ Link Here
171
        # Insert the biblio, or find it through matcher
174
        # Insert the biblio, or find it through matcher
172
        if ( $biblionumber ) { # If matched during staging we can continue
175
        if ( $biblionumber ) { # If matched during staging we can continue
173
            $import_record->status('imported')->store;
176
            $import_record->status('imported')->store;
177
            if( $overlay_action eq 'replace' ){
178
                my $biblio = Koha::Biblios->find( $biblionumber );
179
                $import_record->replace({ biblio => $biblio });
180
            }
174
        } else { # Otherwise we check for duplicates, and skip if they exist
181
        } else { # Otherwise we check for duplicates, and skip if they exist
175
            if ($matcher_id) {
182
            if ($matcher_id) {
176
                if ( $matcher_id eq '_TITLE_AUTHOR_' ) {
183
                if ( $matcher_id eq '_TITLE_AUTHOR_' ) {
177
- 

Return to bug 32437