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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to