|
Lines 9-18
use C4::Biblio;
Link Here
|
| 9 |
|
9 |
|
| 10 |
use base 'Koha::BackgroundJob'; |
10 |
use base 'Koha::BackgroundJob'; |
| 11 |
|
11 |
|
|
|
12 |
=head1 NAME |
| 13 |
|
| 14 |
Koha::BackgroundJob::BatchDeleteBiblio - Batch delete bibliographic records |
| 15 |
|
| 16 |
This is a subclass of Koha::BackgroundJob. |
| 17 |
|
| 18 |
=head1 API |
| 19 |
|
| 20 |
=head2 Class methods |
| 21 |
|
| 22 |
=head3 job_type |
| 23 |
|
| 24 |
Define the job type of this job: batch_biblio_record_deletion |
| 25 |
|
| 26 |
=cut |
| 27 |
|
| 12 |
sub job_type { |
28 |
sub job_type { |
| 13 |
return 'batch_biblio_record_deletion'; |
29 |
return 'batch_biblio_record_deletion'; |
| 14 |
} |
30 |
} |
| 15 |
|
31 |
|
|
|
32 |
=head3 process |
| 33 |
|
| 34 |
Process the job. |
| 35 |
|
| 36 |
=cut |
| 37 |
|
| 16 |
sub process { |
38 |
sub process { |
| 17 |
my ( $self, $args ) = @_; |
39 |
my ( $self, $args ) = @_; |
| 18 |
|
40 |
|
|
Lines 141-146
sub process {
Link Here
|
| 141 |
$job->store; |
163 |
$job->store; |
| 142 |
} |
164 |
} |
| 143 |
|
165 |
|
|
|
166 |
=head3 enqueue |
| 167 |
|
| 168 |
Enqueue the new job |
| 169 |
|
| 170 |
=cut |
| 171 |
|
| 144 |
sub enqueue { |
172 |
sub enqueue { |
| 145 |
my ( $self, $args) = @_; |
173 |
my ( $self, $args) = @_; |
| 146 |
|
174 |
|
| 147 |
- |
|
|