X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=tools%2Fmanage-marc-import.pl;h=e7ff78e8b6100d5635df39c26ae75f76c3d088a3;hb=49e0a8fc786b61b56d15d77d79c180c60c595943;hp=97c4bababfd641d35a75feb7492025270e7d5a15;hpb=02822ac8051d1d13f87287b197478586af1473a0;p=koha_fer diff --git a/tools/manage-marc-import.pl b/tools/manage-marc-import.pl index 97c4bababf..e7ff78e8b6 100755 --- a/tools/manage-marc-import.pl +++ b/tools/manage-marc-import.pl @@ -13,9 +13,9 @@ # 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 +# 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. use strict; use warnings; @@ -24,7 +24,6 @@ use warnings; use CGI; use CGI::Cookie; use MARC::File::USMARC; -use Sys::Syslog qw(syslog); # Koha modules used use C4::Context; @@ -182,13 +181,13 @@ sub create_labelbatch_from_importbatch { my $batch = C4::Labels::Batch->new(branch_code => $branch_code); my @items = GetItemNumbersFromImportBatch($batch_id); if (grep{$_ == 0} @items) { - syslog("LOG_ERR", "tools/manage-marc-import.pl : create_labelbatch_from_importbatch() : Call to C4::ImportBatch::GetItemNumbersFromImportBatch returned no item number(s) from import batch #%s.", $batch_id); + warn sprintf('create_labelbatch_from_importbatch() : Call to C4::ImportBatch::GetItemNumbersFromImportBatch returned no item number(s) from import batch #%s.', $batch_id); return -1; } foreach my $item_number (@items) { $err = $batch->add_item($item_number); if ($err == -1) { - syslog("LOG_ERR", "tools/manage-marc-import.pl : create_labelbatch_from_importbatch() : Error attempting to add item #%s of import batch #%s to label batch.", $item_number, $batch_id); + warn sprintf('create_labelbatch_from_importbatch() : Error attempting to add item #%s of import batch #%s to label batch.', $item_number, $batch_id); return -1; } }