SHARE
TWEET

Charl van Niekerk

a guest Jan 24th, 2010 68 Never
  1. <?php
  2.  
  3. ini_set('include_path', 'resources/swordapp-php-library-0.9');
  4.  
  5. require_once 'packager_mets_swap.php';
  6. require_once 'swordappclient.php';
  7.  
  8. $package = new PackagerMetsSwap('tmp', 'test', 'tmp', 'test.zip');
  9. $package->addCreator('Charl van Niekerk');
  10. $package->setTitle('Test Title');
  11. $package->setAbstract('Test Abstract');
  12. $package->create();
  13.  
  14. $client = new SWORDAPPClient();
  15. $client->deposit('http://localhost:8080/sword', 'fedoraAdmin', 'charlvn', 'Charl van Niekerk', 'tmp/test.zip', 'http://purl.org/net/sword-types/METSDSpaceSIP', 'application/zip', false, true);
RAW Paste Data
Top