Bug 9908 - Fixing OCLC Connexion Client
authorThatcher Rea <thatcher.rea@bywatersolutions.com>
Fri, 22 Mar 2013 21:51:15 +0000 (10:51 +1300)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 30 Mar 2013 01:29:10 +0000 (21:29 -0400)
Fix issue where exporting a bib from the OCLC Connexion client
or web interface to a Koha database would always result in
an "Unsuccessful request" error.

To Test:

[1] Apply patch
[2] Start the Connexion import daemon.
[3] Start the Connexion client or web interface (requires that you
    you posses OCLC cataloging credentials).
[4] Locate a bib and use Connexion to export it to the Koha database.
[5] Verify that the bib is successfully added.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass.
Logical change and trusting sign off here as I don't have
access to WorldCat for testing this.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
svc/import_bib

index 3e43339..f93428d 100755 (executable)
@@ -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';