Lines 45-57
my ($template, $loggedinuser, $cookie) = get_template_and_user({
Link Here
|
45 |
flagsrequired => { tools => 'records_batchdel' }, |
45 |
flagsrequired => { tools => 'records_batchdel' }, |
46 |
}); |
46 |
}); |
47 |
|
47 |
|
48 |
$template->param( lists => scalar Koha::Virtualshelves->search([{ category => 1, owner => $loggedinuser }, { category => 2 }]) ); |
|
|
49 |
|
50 |
my @records; |
48 |
my @records; |
51 |
my @messages; |
49 |
my @messages; |
52 |
if ( $op eq 'form' ) { |
50 |
if ( $op eq 'form' ) { |
53 |
# Display the form |
51 |
# Display the form |
54 |
$template->param( op => 'form' ); |
52 |
$template->param( |
|
|
53 |
op => 'form', |
54 |
lists => scalar Koha::Virtualshelves->search( |
55 |
[ |
56 |
{ category => 1, owner => $loggedinuser }, |
57 |
{ category => 2 } |
58 |
] |
59 |
) |
60 |
); |
55 |
} elsif ( $op eq 'list' ) { |
61 |
} elsif ( $op eq 'list' ) { |
56 |
# List all records to process |
62 |
# List all records to process |
57 |
my @record_ids; |
63 |
my @record_ids; |