View | Details | Raw Unified | Return to bug 28445
Collapse All | Expand All

(-)a/Koha/BackgroundJob/BatchUpdateItem.pm (-8 / +12 lines)
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;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc (-2 / +5 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
2
1
[% BLOCK report %]
3
[% BLOCK report %]
2
    [% SET report = job.report %]
4
    [% SET report = job.report %]
3
    [% IF report %]
5
    [% IF report %]
Lines 30-36 Link Here
30
        </div>
32
        </div>
31
    [% END %]
33
    [% END %]
32
34
33
    [% IF items.size %]
35
    [% IF too_many_items_display %]
36
        <p>Too many items ([% too_many_items_display | html %]): You have edited more than [% Koha.Preference('MaxItemsToDisplayForBatchMod') | html %] items in a batch, items will not be shown.</p>
37
    [% ELSIF items.size %]
34
        [% PROCESS items_table_batchmod headers => item_header_loop, items => items, display_columns_selection => 1 %]
38
        [% PROCESS items_table_batchmod headers => item_header_loop, items => items, display_columns_selection => 1 %]
35
    [% END %]
39
    [% END %]
36
[% END %]
40
[% END %]
37
- 

Return to bug 28445