Russian prefs
[koha_fer] / labels / label-create-csv.pl
index f86f55a..10593d1 100755 (executable)
@@ -4,16 +4,12 @@ use strict;
 use warnings;
 
 use CGI;
-use Sys::Syslog qw(syslog);
 use Text::CSV_XS;
 use Data::Dumper;
 
 use C4::Debug;
-use C4::Labels::Batch 1.000000;
-use C4::Labels::Template 1.000000;
-use C4::Labels::Layout 1.000000;
-use C4::Labels::PDF 1.000000;
-use C4::Labels::Label 1.000000;
+use C4::Creators 1.000000;
+use C4::Label 1.000000;
 
 =head
 
@@ -71,7 +67,7 @@ foreach my $item (@$items) {
         print $csv->string() . "\n";
     }
     else {
-        syslog("LOG_ERR", "labels/label-create-csv.pl : Text::CSV_XS->combine() returned the following error: %s", $csv->error_input);
+        warn sprintf('Text::CSV_XS->combine() returned the following error: %s', $csv->error_input);
         next CSV_ITEMS;
     }
 }
@@ -97,7 +93,7 @@ Copyright 2009 Foundations Bible College.
 =head1 LICENSE
 
 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.