Bug 17600: Standardize our EXPORT_OK
[srvgit] / misc / cronjobs / stockrotation.pl
index 87d6a9e..1298921 100755 (executable)
@@ -4,18 +4,18 @@
 #
 # 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 3 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>.
 
 =head1 NAME
 
@@ -108,7 +108,7 @@ database updates have been performed.").
 =cut
 
 use Modern::Perl;
-use Getopt::Long qw/HelpMessage :config gnu_getopt/;
+use Getopt::Long qw( GetOptions HelpMessage );
 
 use Koha::Script -cron;
 use C4::Context;
@@ -295,6 +295,7 @@ individual branches.
 =over 2
 
 =item $report should be the return value of `investigate`
+
 =item $branch is optional and should be either 0 (to indicate 'all'), or a specific Koha::Library object.
 
 =back
@@ -362,7 +363,7 @@ sub _report_per_branch {
             letter_code            => "SR_SLIP",
             branchcode             => $branch->{code},
             message_transport_type => 'email',
-            substitute             => $branch
+            substitute             => { branch => $branch }
         )
       )
     {
@@ -392,7 +393,7 @@ sub _print_item {
     return sprintf "
     Title:           %s
     Author:          %s
-    Callnumber:      %s
+    Call number:     %s
     Location:        %s
     Barcode:         %s
     On loan?:        %s