koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/tools holidays.pl [rel_3_0]


From: Antoine Farnault
Subject: [Koha-cvs] koha/tools holidays.pl [rel_3_0]
Date: Tue, 31 Oct 2006 17:28:45 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_3_0
Changes by:     Antoine Farnault <toins>        06/10/31 17:28:45

Modified files:
        tools          : holidays.pl 

Log message:
        adding GPL and removing some warn.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/tools/holidays.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1&r2=1.1.2.1

Patches:
Index: holidays.pl
===================================================================
RCS file: /sources/koha/koha/tools/holidays.pl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -b -r1.1 -r1.1.2.1
--- holidays.pl 3 Mar 2006 16:35:21 -0000       1.1
+++ holidays.pl 31 Oct 2006 17:28:45 -0000      1.1.2.1
@@ -1,4 +1,20 @@
 #!/usr/bin/perl
+
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA  02111-1307 USA
+
 #####Sets holiday periods for each branch. Datedues will be extended if branch 
is closed -TG
 use strict;
 use CGI;
@@ -48,12 +64,12 @@
 $branches->finish;
 
 # Get all the holidays
-warn "BRANCH : $branch";
+# warn "BRANCH : $branch";
 my $calendar = C4::Calendar->new(branchcode => $branch);
 my $week_days_holidays = $calendar->get_week_days_holidays();
 my @week_days;
 foreach my $weekday (keys %$week_days_holidays) {
-warn "WEEK DAY : $weekday";
+# warn "WEEK DAY : $weekday";
        my %week_day;
        %week_day = (KEY => $weekday,
                         TITLE => $week_days_holidays->{$weekday}{title},




reply via email to

[Prev in Thread] Current Thread [Next in Thread]