bug_7613: OCLC Connexion gateway
authorSrdjan <srdjan@catalyst.net.nz>
Thu, 29 Mar 2012 03:04:50 +0000 (16:04 +1300)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 6 Apr 2012 15:26:20 +0000 (17:26 +0200)
commit12ff7355bb21a30d472e987f05f1da35f00a53a5
treeca9203872f4270b3b552af1254d60e934b27d6d8
parentd1dc3c0c2e7064880efc807ed35a09f7fa8b24bb
bug_7613: OCLC Connexion gateway

svc/import_bib:
* takes POST request with parameters in url and MARC XML as DATA
* pushes MARC XML to an impoort bach queue of type 'webservice'
* returns status and imported record XML
* is a drop-in replacement for svc/new_bib

misc/cronjobs/import_webservice_batch.pl:
* a cron job for processing impoort bach queues of type 'webservice'
* batches can also be processed through the UI

misc/bin/connexion_import_daemon.pl:
* a daemon that listens for OCLC Connexion requests and is compliant
  with OCLC Gateway spec
* takes request with MARC XML
* takes import batch params from a config file and forwards the lot to
  svc/import_bib
* returns status

ImportBatches:
* Added new import batch type of 'webservice'
* Changed interface to AddImportBatch() - now it takes a hashref
* Replaced batch_type = 'batch' with
  batch_type IN ( 'batch', 'webservice' ) in some SELECTs

Signed-off-by: MJ Ray <mjr@phonecoop.coop>
12 files changed:
C4/Breeding.pm
C4/ImportBatch.pm
C4/Matcher.pm
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
misc/bin/connexion_import_daemon.pl [new file with mode: 0755]
misc/cronjobs/import_webservice_batch.pl [new file with mode: 0755]
svc/import_bib [new file with mode: 0755]
t/db_dependent/lib/KohaTest/ImportBatch.pm
t/db_dependent/lib/KohaTest/ImportBatch/AddImportBatch.pm [deleted file]
t/db_dependent/lib/KohaTest/ImportBatch/GetImportBatch.pm
tools/manage-marc-import.pl