@@ -, +, @@ --- .../prog/en/includes/acquisitions-add-to-basket.inc | 1 + .../intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt | 7 +++++++ tools/stage-marc-import.pl | 12 ++++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-add-to-basket.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-add-to-basket.inc @@ -16,6 +16,7 @@
  • From a subscription
  • From a new (empty) record
  • From an external source
  • +
  • From a new file
  • From a staged file
  • [% IF ( CAN_user_circulate ) %]
  • From titles with highest hold ratios
  • [% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt @@ -41,6 +41,9 @@
  • [% total | html %] records in file
  • [% import_errors | html %] records not staged because of MARC error
  • [% staged | html %] records staged
  • +[% IF basketno && booksellerid %] +
  • Add staged files to basket
  • +[% END %] [% IF ( checked_matches ) %]
  • [% matched | html %] records with at least one match in catalog per matching rule "[% matcher_code | html %]"
  • @@ -90,6 +93,10 @@
    +[% IF basketno && booksellerid %] + + +[% END %]
    --- a/tools/stage-marc-import.pl +++ a/tools/stage-marc-import.pl @@ -58,6 +58,8 @@ my $record_type = $input->param('record_type'); 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( { @@ -74,6 +76,8 @@ $template->param( 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); @@ -181,7 +185,9 @@ if ($completedJobID) { 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); @@ -195,7 +201,9 @@ if ($completedJobID) { 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 ); } --