$start_date = dt_from_string($start_date);
$end_date = dt_from_string($end_date);
my @branches = Koha::Libraries->search( {}, { order_by => ['branchcode'] } );
my @branches = Koha::Libraries->search( {}, { order_by => ['branchcode'] } )->as_list;
my $calendar;
foreach my $branch ( @branches ) {
-