@@ -, +, @@ modification --- tools/batch_delete_records.pl | 12 +++++++++--- tools/batch_record_modification.pl | 6 ++++++ 2 files changed, 15 insertions(+), 3 deletions(-) --- a/tools/batch_delete_records.pl +++ a/tools/batch_delete_records.pl @@ -45,13 +45,19 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user({ flagsrequired => { tools => 'records_batchdel' }, }); -$template->param( lists => scalar Koha::Virtualshelves->search([{ category => 1, owner => $loggedinuser }, { category => 2 }]) ); - my @records; my @messages; if ( $op eq 'form' ) { # Display the form - $template->param( op => 'form' ); + $template->param( + op => 'form', + lists => scalar Koha::Virtualshelves->search( + [ + { category => 1, owner => $loggedinuser }, + { category => 2 } + ] + ) + ); } elsif ( $op eq 'list' ) { # List all records to process my @record_ids; --- a/tools/batch_record_modification.pl +++ a/tools/batch_record_modification.pl @@ -82,6 +82,12 @@ if ( $op eq 'form' ) { # Display the form $template->param( view => 'form', + lists => scalar Koha::Virtualshelves->search( + [ + { category => 1, owner => $loggedinuser }, + { category => 2 } + ] + ) ); } elsif ( $op eq 'list' ) { # List all records to process --