Lines 177-190
sub additional_report {
Link Here
|
177 |
my $job = Koha::BackgroundJobs->find( $args->{job_id} ); |
177 |
my $job = Koha::BackgroundJobs->find( $args->{job_id} ); |
178 |
|
178 |
|
179 |
my $itemnumbers = $job->report->{modified_itemnumbers}; |
179 |
my $itemnumbers = $job->report->{modified_itemnumbers}; |
180 |
my $items_table = |
180 |
if ( scalar(@$itemnumbers) > C4::Context->preference('MaxItemsToDisplayForBatchMod') ) { |
181 |
Koha::UI::Table::Builder::Items->new( { itemnumbers => $itemnumbers } ) |
181 |
return { too_many_items_display => 1 }; |
182 |
->build_table; |
182 |
} else { |
183 |
|
183 |
my $items_table = |
184 |
return { |
184 |
Koha::UI::Table::Builder::Items->new( { itemnumbers => $itemnumbers } ) |
185 |
items => $items_table->{items}, |
185 |
->build_table; |
186 |
item_header_loop => $items_table->{headers}, |
186 |
|
187 |
}; |
187 |
return { |
|
|
188 |
items => $items_table->{items}, |
189 |
item_header_loop => $items_table->{headers}, |
190 |
}; |
191 |
} |
188 |
} |
192 |
} |
189 |
|
193 |
|
190 |
1; |
194 |
1; |