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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/stage_marc_for_import.inc (-2 / +2 lines)
Lines 38-46 Link Here
38
        <p>
38
        <p>
39
            <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% report.import_batch_id | uri %]">View batch</a>
39
            <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% report.import_batch_id | uri %]">View batch</a>
40
        </p>
40
        </p>
41
        [% IF report.basketno && report.booksellerid %]
41
        [% IF report.basket_id && report.vendor_id %]
42
        <p>
42
        <p>
43
            <a id="addtobasket" class="btn btn-default" href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% report.import_batch_id | html %]&basketno=[% report.basketno | html %]&booksellerid=[% report.booksellerid | html %]">Add staged files to basket</a>
43
            <a id="addtobasket" class="btn btn-default" href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% report.import_batch_id | html %]&basketno=[% report.basket_id | html %]&booksellerid=[% report.vendor_id | html %]">Add staged files to basket</a>
44
        </p>
44
        </p>
45
        [% END %]
45
        [% END %]
46
    [% END %]
46
    [% END %]
(-)a/tools/stage-marc-import.pl (-1 / +2 lines)
Lines 93-98 if ($fileID) { Link Here
93
        overlay_action             => $overlay_action,
93
        overlay_action             => $overlay_action,
94
        nomatch_action             => $nomatch_action,
94
        nomatch_action             => $nomatch_action,
95
        item_action                => $item_action,
95
        item_action                => $item_action,
96
        basket_id                  => $basketno,
97
        vendor_id                  => $booksellerid,
96
    };
98
    };
97
    try {
99
    try {
98
        my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue( $params );
100
        my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue( $params );
99
- 

Return to bug 31711