X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=svc%2Fimport_bib;h=b02e5f2671114f16009ccb74e9ae24029ffb40dd;hb=8e9f89e92b48f1aac786e9b5608338a14603f52f;hp=3e43339fded44c567844387f946d0400fe79506d;hpb=ee3eee451d2c36ff58f9443c86a8522ef905eca1;p=koha.git diff --git a/svc/import_bib b/svc/import_bib index 3e43339fde..b02e5f2671 100755 --- a/svc/import_bib +++ b/svc/import_bib @@ -4,24 +4,24 @@ # # 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 . # use strict; use warnings; -use CGI; +use CGI qw ( -utf8 ); use C4::Auth qw/check_api_auth/; use C4::Context; use C4::ImportBatch; @@ -86,7 +86,7 @@ sub import_bib { my $matcher = C4::Matcher->new($params->{record_type} || 'biblio'); $matcher = C4::Matcher->fetch($params->{matcher_id}); - my $number_of_matches = BatchFindBibDuplicates($batch_id, $matcher); + my $number_of_matches = BatchFindDuplicates($batch_id, $matcher); # XXX we are ignoring the result of this; BatchCommitRecords($batch_id, $framework) if lc($import_mode) eq 'direct';