Lines 137-147
sub process {
Link Here
|
137 |
my ( $self, $args ) = @_; |
137 |
my ( $self, $args ) = @_; |
138 |
|
138 |
|
139 |
my $job_type = $self->type; |
139 |
my $job_type = $self->type; |
140 |
return $job_type eq 'batch_biblio_record_modification' |
140 |
my $class = "Koha::BackgroundJob::${job_type}"; |
141 |
? Koha::BackgroundJob::BatchUpdateBiblio->process($args) |
141 |
try{ |
142 |
: $job_type eq 'batch_authority_record_modification' |
142 |
return $class->process( $args ); |
143 |
? Koha::BackgroundJob::BatchUpdateAuthority->process($args) |
143 |
} catch { |
144 |
: Koha::Exceptions::Exception->throw('->process called without valid job_type'); |
144 |
Koha::Exceptions::Exception->throw('->process called without valid job_type'); |
|
|
145 |
}; |
146 |
|
147 |
|
145 |
} |
148 |
} |
146 |
|
149 |
|
147 |
=head3 job_type |
150 |
=head3 job_type |