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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt (-11 / +12 lines)
Lines 417-432 Link Here
417
                })
417
                })
418
            });
418
            });
419
            [% IF job_enqueued %]
419
            [% IF job_enqueued %]
420
                updateProgress([% job_id | html %], function(){
420
                updateProgress([% job_id | html %], {
421
                    $.getJSON('/api/v1/jobs/[% job_id | html %]', function(job){
421
                    finish_callback : function(){
422
                        let import_batch_id = job.data.report.import_batch_id;
422
                        $.getJSON('/api/v1/jobs/[% job_id | html %]', function(job){
423
                        $('<p><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=%s">%s</a></p>'.format(import_batch_id, _("View batch"))).appendTo("#job_callback");
423
                            let import_batch_id = job.data.report.import_batch_id;
424
                        let basket_id = job.data.report.basket_id;
424
                            $('<p><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=%s">%s</a></p>'.format(import_batch_id, _("View batch"))).appendTo("#job_callback");
425
                        let vendor_id = job.data.report.vendor_id;
425
                            let basket_id = job.data.report.basket_id;
426
                        if ( basket_id && vendor_id ) {
426
                            let vendor_id = job.data.report.vendor_id;
427
                            $('<p><a id="addtobasket" class="btn btn-default" href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=%s&basketno=%s&booksellerid=%s">%s</a></p>'.format(import_batch_id, basket_id, vendor_id, _("Add staged files to basket"))).appendTo("#job_callback");
427
                            if ( basket_id && vendor_id ) {
428
                        }
428
                                $('<p><a id="addtobasket" class="btn btn-default" href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=%s&basketno=%s&booksellerid=%s">%s</a></p>'.format(import_batch_id, basket_id, vendor_id, _("Add staged files to basket"))).appendTo("#job_callback");
429
                    });
429
                            }
430
                        });
431
                    }
430
                });
432
                });
431
            [% END %]
433
            [% END %]
432
        });
434
        });
433
- 

Return to bug 34468