Lines 24-29
use Koha::SearchEngine::Indexer;
Link Here
|
24 |
|
24 |
|
25 |
use C4::Context; |
25 |
use C4::Context; |
26 |
use C4::Biblio; |
26 |
use C4::Biblio; |
|
|
27 |
use C4::Items; |
27 |
use C4::MarcModificationTemplates; |
28 |
use C4::MarcModificationTemplates; |
28 |
|
29 |
|
29 |
use base 'Koha::BackgroundJob'; |
30 |
use base 'Koha::BackgroundJob'; |
Lines 86-91
sub process {
Link Here
|
86 |
my $record = $biblio->metadata->record; |
87 |
my $record = $biblio->metadata->record; |
87 |
C4::MarcModificationTemplates::ModifyRecordWithTemplate( $mmtid, $record ); |
88 |
C4::MarcModificationTemplates::ModifyRecordWithTemplate( $mmtid, $record ); |
88 |
my $frameworkcode = C4::Biblio::GetFrameworkCode( $biblionumber ); |
89 |
my $frameworkcode = C4::Biblio::GetFrameworkCode( $biblionumber ); |
|
|
90 |
my $biblioitemnumber = Koha::Biblios->find($biblionumber)->biblioitem->biblioitemnumber; |
91 |
C4::Items::AddItemFromMarc( $record, $biblionumber, { biblioitemnumber => $biblioitemnumber } ); |
92 |
|
89 |
C4::Biblio::ModBiblio( $record, $biblionumber, $frameworkcode, { |
93 |
C4::Biblio::ModBiblio( $record, $biblionumber, $frameworkcode, { |
90 |
overlay_context => $args->{overlay_context}, |
94 |
overlay_context => $args->{overlay_context}, |
91 |
skip_record_index => 1, |
95 |
skip_record_index => 1, |
92 |
- |
|
|