|
Lines 300-311
sub AddBiblio {
Link Here
|
| 300 |
C4::OAI::Sets::UpdateOAISetsBiblio($biblionumber, $record); |
300 |
C4::OAI::Sets::UpdateOAISetsBiblio($biblionumber, $record); |
| 301 |
} |
301 |
} |
| 302 |
|
302 |
|
| 303 |
_after_biblio_action_hooks({ action => 'create', biblio_id => $biblionumber }); |
|
|
| 304 |
|
| 305 |
logaction( "CATALOGUING", "ADD", $biblionumber, "biblio" ) if C4::Context->preference("CataloguingLog"); |
303 |
logaction( "CATALOGUING", "ADD", $biblionumber, "biblio" ) if C4::Context->preference("CataloguingLog"); |
| 306 |
|
304 |
|
| 307 |
}); |
305 |
}); |
| 308 |
# We index now, after the transaction is committed |
306 |
|
|
|
307 |
_after_biblio_action_hooks({ action => 'create', biblio_id => $biblionumber }); |
| 308 |
|
| 309 |
# We index now, after the transaction is committed |
| 309 |
unless ( $skip_record_index ) { |
310 |
unless ( $skip_record_index ) { |
| 310 |
my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); |
311 |
my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); |
| 311 |
$indexer->index_records( $biblionumber, "specialUpdate", "biblioserver" ); |
312 |
$indexer->index_records( $biblionumber, "specialUpdate", "biblioserver" ); |
| 312 |
- |
|
|