+ BatchCommitRecords({
+ batch_id => $batch_id,
+ framework => $framework
+ }) if lc($import_mode) eq 'direct';
+
+ my $dbh = C4::Context->dbh();
+ my $sth = $dbh->prepare("SELECT matched_biblionumber FROM import_biblios WHERE import_record_id =?");
+ $sth->execute($import_record_id);
+ my $biblionumber=$sth->fetchrow_arrayref->[0] || '';
+ $sth = $dbh->prepare("SELECT overlay_status FROM import_records WHERE import_record_id =?");
+ $sth->execute($import_record_id);
+ my $match_status = $sth->fetchrow_arrayref->[0] || 'no_match';
+ my $url = C4::Context->preference('staffClientBaseURL') .'/cgi-bin/koha/catalogue/detail.pl?biblionumber='. $biblionumber;