[Koha-bugs] [Bug 7613] New: OCLC Connexion Gateway

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 28 01:04:32 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7613

             Bug #: 7613
           Summary: OCLC Connexion Gateway
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Cataloging
        AssignedTo: gmcharlt at gmail.com
        ReportedBy: srdjan at catalyst.net.nz
         QAContact: koha.sekjal at gmail.com


Work to be done:
* C4::ImportBatch: create sub GetImportBatchByFilename($filename) which will
get the last import_batches record with the filename
* Create svc/import_bib
  -  POST request structure:
param1: val
param2: val
<?xml version="1.0" encoding="UTF-8"?>
<record ...
</record>
  -  call C4::ImportBatch::GetImportBatchByFilename("webservice"); if in
'stage' status use it, otherwise create new one AddImportBatch() using POST
param
  -  call C4::ImportBatch::AddBiblioToBatch() and AddItemsToImportBiblio()
  -  if import mode = 'direct' call C4::ImportBatch::BatchCommitBibRecords()
* misc/cronjobs/import_webservice_batch.pl:
  -  input params: framework (default 'default')
  -  call C4::ImportBatch::GetImportBatchByFilename("webservice"); if in
'stage' status
  -  call C4::ImportBatch::BatchCommitBibRecords()
* create OCLC requests listening daemon connexion_import.pl
  -  base on HTTP::Server or similar
  -  command line params: config file
  -  config values as per spec
  -  first get the auth cooki from auth url, then make request to import url

How to test:
* using some tool (wget or curl) make a request with some MARC xml to OCLC
daemon
* check koha import batches that a webservice batch is created with params as
in the config file
* run cron job from the command line and check the batch status

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list