diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt index 2ce35c8789..5282c640e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt @@ -61,9 +61,8 @@ [% IF ( multi_batch_count == 1 ) %]1 batch to export[% ELSE %][% multi_batch_count | html %] batches to export[% END %] [% END %] -
- [% INCLUDE 'csrf-token.inc' %] - + + [% FOREACH batch_id IN batch_ids %] diff --git a/patroncards/print.pl b/patroncards/print.pl index 14c99e5387..c45e91a945 100755 --- a/patroncards/print.pl +++ b/patroncards/print.pl @@ -56,10 +56,10 @@ my $multi_batch_count = scalar(@batch_ids); my $card_count = scalar(@label_ids); my $borrower_count = scalar(@borrower_numbers); -if ($op eq 'cud-export') { #FIXME Seems like a GET operation? +if ($op eq 'export') { if (@label_ids) { - my $label_id_param = '&label_id='; - $label_id_param .= join ('&label_id=',@label_ids); + my $label_id_param = '&label_id='; + $label_id_param .= join ('&label_id=',@label_ids); push (@batches, {create_script => ($output_format eq 'pdf' ? 'create-pdf.pl' : 'create-csv.pl'), #FIXME csv not supported, no script? batch_id => $batch_ids[0], template_id => $template_id, @@ -75,8 +75,8 @@ if ($op eq 'cud-export') { #FIXME Seems like a GET operation? ); } elsif (@borrower_numbers) { - my $borrower_number_param = '&borrower_number='; - $borrower_number_param .= join ('&borrower_number=',@borrower_numbers); + my $borrower_number_param = '&borrower_number='; + $borrower_number_param .= join ('&borrower_number=',@borrower_numbers); push (@batches, {create_script => ($output_format eq 'pdf' ? 'create-pdf.pl' : 'create-csv.pl'), #FIXME csv not supported, no script? template_id => $template_id, layout_id => $layout_id,