Bug 7688: (follow-up) update license statements
[koha.git] / C4 / Serials / Frequency.pm
index d5c1cbd..d71df7a 100644 (file)
@@ -1,21 +1,21 @@
 package C4::Serials::Frequency;
 
-# Copyright 2000-2002 Biblibre SARL
+# Copyright 2011-2013 Biblibre SARL
 #
 # 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 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 3 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.
+# 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.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# You should have received a copy of the GNU General Public License
+# along with Koha; if not, see <http://www.gnu.org/licenses>.
 
 use strict;
 use warnings;
@@ -40,7 +40,14 @@ BEGIN {
     );
 }
 
-=head3 GetSubscriptionFrequencies
+
+=head1 NAME
+
+C4::Serials::Frequency - Serials Frequency module
+
+=head1 FUNCTIONS
+
+=head2 GetSubscriptionFrequencies
 
 =over 4
 
@@ -66,7 +73,7 @@ sub GetSubscriptionFrequencies {
     return @$results;
 }
 
-=head3 GetSubscriptionFrequency
+=head2 GetSubscriptionFrequency
 
 =over 4
 
@@ -93,7 +100,7 @@ sub GetSubscriptionFrequency {
     return $sth->fetchrow_hashref;
 }
 
-=head3 AddSubscriptionFrequency
+=head2 AddSubscriptionFrequency
 
 =over 4
 
@@ -129,7 +136,7 @@ sub AddSubscriptionFrequency {
     my $frequency = shift;
 
     unless(ref($frequency) eq 'HASH' && defined $frequency->{'description'} && $frequency->{'description'} ne '') {
-        return undef;
+        return;
     }
 
     my @keys;
@@ -155,7 +162,7 @@ sub AddSubscriptionFrequency {
     return $rv;
 }
 
-=head3 ModSubscriptionFrequency
+=head2 ModSubscriptionFrequency
 
 =over 4
 
@@ -201,7 +208,7 @@ sub ModSubscriptionFrequency {
         || !defined $frequency->{'description'}
       )
     ) {
-        return undef;
+        return;
     }
 
     my @keys;
@@ -222,7 +229,7 @@ sub ModSubscriptionFrequency {
     return $sth->execute(@values, $frequency->{'id'});
 }
 
-=head3 DelSubscriptionFrequency
+=head2 DelSubscriptionFrequency
 
 =over 4
 
@@ -246,7 +253,7 @@ sub DelSubscriptionFrequency {
     $sth->execute($frequencyid);
 }
 
-=head3 GetSubscriptionsWithFrequency
+=head2 GetSubscriptionsWithFrequency
 
     my @subs = GetSubscriptionsWithFrequency($frequencyid);