# along with Koha; if not, see <http://www.gnu.org/licenses>.
#####Sets holiday periods for each branch. Datedues will be extended if branch is closed -TG
-use strict;
-use warnings;
+use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Auth;
use C4::Output;
-use C4::Branch; # GetBranches
use C4::Calendar;
use Koha::DateUtils;
my $branch= $input->param('branch') || C4::Context->userenv->{'branch'};
-# branches calculated - put branch codes in a single string so they can be passed in a form
-my $branchcodes = join '|', keys %{$branches};
-
# Get all the holidays
my $calendar = C4::Calendar->new(branchcode => $branch);
DAY_MONTH_HOLIDAYS_LOOP => \@day_month_holidays,
calendardate => $calendardate,
keydate => $keydate,
- branchcodes => $branchcodes,
branch => $branch,
);