Bug 34478: (follow-up) patroncards: FIXMEs for op and missing script
Looks like create-csv never made it. Some op's look like GET to me. Creating a pdf is just downloading. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
195cccd4ef
commit
8eed84fe0b
3 changed files with 6 additions and 6 deletions
|
@ -45,7 +45,7 @@ my @label_template = ();
|
|||
|
||||
my $units = get_unit_values();
|
||||
|
||||
if ($op eq 'cud-edit') {
|
||||
if ($op eq 'cud-edit') { # FIXME This looks like edit_form ?
|
||||
$profile = C4::Patroncards::Profile->retrieve(profile_id => $profile_id);
|
||||
$template_list = get_all_templates({ fields => [ qw( template_id template_code profile_id ) ] });
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ my $profile_list = undef;
|
|||
|
||||
my $units = get_unit_values();
|
||||
|
||||
if ($op eq 'cud-edit') {
|
||||
if ($op eq 'cud-edit') { # FIXME This looks like edit_form
|
||||
$card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
|
||||
$profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, 0 ], creator => 'Patroncards'} } );
|
||||
}
|
||||
|
|
|
@ -56,11 +56,11 @@ my $multi_batch_count = scalar(@batch_ids);
|
|||
my $card_count = scalar(@label_ids);
|
||||
my $borrower_count = scalar(@borrower_numbers);
|
||||
|
||||
if ($op eq 'cud-export') {
|
||||
if ($op eq 'cud-export') { #FIXME Seems like a GET operation?
|
||||
if (@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'),
|
||||
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,
|
||||
layout_id => $layout_id,
|
||||
|
@ -77,7 +77,7 @@ if ($op eq 'cud-export') {
|
|||
elsif (@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'),
|
||||
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,
|
||||
layout_back_id => $layout_back_id,
|
||||
|
@ -92,7 +92,7 @@ if ($op eq 'cud-export') {
|
|||
}
|
||||
elsif (@batch_ids) {
|
||||
foreach my $batch_id (@batch_ids) {
|
||||
push (@batches, {create_script => ($output_format eq 'pdf' ? 'create-pdf.pl' : 'create-csv.pl'),
|
||||
push (@batches, {create_script => ($output_format eq 'pdf' ? 'create-pdf.pl' : 'create-csv.pl'), #FIXME csv not supported, no script?
|
||||
batch_id => $batch_id,
|
||||
template_id => $template_id,
|
||||
layout_id => $layout_id,
|
||||
|
|
Loading…
Reference in a new issue