<li><a href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">From a subscription</a></li>
<li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">From a new (empty) record</a></li>
<li><a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">From an external source</a></li>
+ <li><a href="/cgi-bin/koha/tools/stage-marc-import.pl?basketno=[% basketno | html %]&booksellerid=[% booksellerid | html %]"> From a new file</a></li>
<li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]"> From a staged file</a></li>
[% IF ( CAN_user_circulate ) %]<li><a href="/cgi-bin/koha/circ/reserveratios.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">From titles with highest hold ratios</a></li>[% END %]
</ul>
<li>[% total | html %] records in file</li>
<li>[% import_errors | html %] records not staged because of MARC error</li>
<li>[% staged | html %] records staged</li>
+[% IF basketno && booksellerid %]
+ <li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% import_batch_id | html %]&basketno=[% basketno | html %]&booksellerid=[% booksellerid | html %]">Add staged files to basket</a></li>
+[% END %]
[% IF ( checked_matches ) %]
<li>[% matched | html %] records with at least one match in catalog per matching rule
"[% matcher_code | html %]"</li>
</form>
<form method="post" id="processfile" action="[% SCRIPT_NAME | html %]" enctype="multipart/form-data">
+[% IF basketno && booksellerid %]
+ <input type="hidden" name="basketno" id="basketno" value="[% basketno | html %]" />
+ <input type="hidden" name="booksellerid" id="booksellerid" value="[% booksellerid | html %]" />
+[% END %]
<fieldset class="rows">
<input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
<input type="hidden" name="runinbackground" id="runinbackground" value="" />
my $encoding = $input->param('encoding') || 'UTF-8';
my $format = $input->param('format') || 'ISO2709';
my $marc_modification_template = $input->param('marc_modification_template_id');
+my $basketno = $input->param('basketno');
+my $booksellerid = $input->param('booksellerid');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
SCRIPT_NAME => '/cgi-bin/koha/tools/stage-marc-import.pl',
uploadmarc => $fileID,
record_type => $record_type,
+ basketno => $basketno,
+ booksellerid => $booksellerid,
);
my %cookies = parse CGI::Cookie($cookie);
checked_matches => $checked_matches,
matcher_failed => $matcher_failed,
matcher_code => $matcher_code,
- import_batch_id => $batch_id
+ import_batch_id => $batch_id,
+ booksellerid => $booksellerid,
+ basketno => $basketno
};
if ($runinbackground) {
$job->finish($results);
checked_matches => $checked_matches,
matcher_failed => $matcher_failed,
matcher_code => $matcher_code,
- import_batch_id => $batch_id
+ import_batch_id => $batch_id,
+ booksellerid => $booksellerid,
+ basketno => $basketno
);
}