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

(-)a/admin/background_jobs.pl (+17 lines)
Lines 79-82 $template->param( Link Here
79
    op       => $op,
79
    op       => $op,
80
);
80
);
81
81
82
my @plugins = Koha::Plugins::GetPlugins(
83
    {
84
        method => 'background_tasks',
85
    }
86
);
87
my @plugin_job_types;
88
for my $plugin (@plugins) {
89
    my $tasks = $plugin->background_tasks;
90
    for my $id ( keys %$tasks ) {
91
        push @plugin_job_types, {
92
            id  => 'plugin_' . $plugin->get_metadata->{namespace} . "_$id",
93
            str => $tasks->{$id},
94
        };
95
    }
96
}
97
$template->param( plugin_job_types => \@plugin_job_types );
98
82
output_html_with_http_headers $input, $cookie, $template->output;
99
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt (-1 / +6 lines)
Lines 227-232 Link Here
227
                '_id': 'import_from_kbart_file',
227
                '_id': 'import_from_kbart_file',
228
                '_str': _("Import titles from a KBART file")
228
                '_str': _("Import titles from a KBART file")
229
            },
229
            },
230
            [% FOR job_type IN plugin_job_types %]
231
            {
232
                '_id': '[% job_type.id %]',
233
                '_str': '[% job_type.str %]'
234
            },
235
            [% END %]
230
        ];
236
        ];
231
237
232
        function get_job_type (job_type) {
238
        function get_job_type (job_type) {
233
- 

Return to bug 39772