# download the complete CSV
if ($op eq 'csv') {
warn "BRANCH : $branchfilter";
- my $csv = `../misc/cronjobs/overduenotices-csv.pl -c -n -b $branchfilter`;
+ my $lib = $branchfilter ? "-library $branchfilter" :'';
+ my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n $lib`;
print $input->header(-type => 'application/vnd.sun.xml.calc',
-encoding => 'utf-8',
-attachment=>"overdues.csv",
C4::Context->userenv->{branch};
my $branches = GetBranches($onlymine);
my @branchloop;
-my @selectflags;
-push @selectflags, " ";#
-push @selectflags,"gonenoaddress";#
-push @selectflags,"debarred";#
-push @selectflags,"lost";#
-my $CGIflags=CGI::scrolling_list( -name => 'borflags',
- -id =>'borflags',
- -values => \@selectflags,
- -size => 1,
- -multiple => 0 );
foreach my $thisbranch ( sort keys %$branches ) {
my %row = (
$template->param(borcatloop=> \@borcatloop,
itemtypeloop => \@itemtypeloop,
branchloop=> \@branchloop,
- CGIflags => $CGIflags,
borname => $bornamefilter,
order => $order,
showall => $showall);