From: Hayden Y. <hay...@wi...> - 2012-04-18 18:36:08
|
I have successfully developed a deposit tool in Joomla using a PackagerMetsSwap package and SWORDAPPClient to deposit a SWORD package into DSpace via Swordv2. The next step is to use SWORD to update an existing deposit, in particular when a user's item is rejected from the workflow. However, from what I can see in the PHP Sword client lib is that one cannot update an existing item using a METS package; rather, the deposit would need to be packaged as AtomMultipart. I have successfully created a package using PackagerAtomMultipart but when I attempt to deposit it using $client->depositMultipart (where $client is an instance of SWORDAPPClient) an exception is thrown with the cryptic error: Error parsing response entry (String could not be parsed as XML) There are no errors in my Tomcat logs and DSpace logs aren't reporting anything unusual. Next, I tried $response->deposit(...) and the deposit was successful. However, the first letter is dropped off of the deposited zip file, the title of the item is Untitled: name-of-deposited-zip.zip and all of the metadata is missing, including anything set using $package->addEntryAuthor(). So, for example, if my atom package is called atom_multipart_package.zip, I get the following record in my workflow list: - Title: Untitled: tom_multipart_package.zip - no metadata - no author information set by addEntryAuthor() - if I configure sword to save the deposited package, the file name is tom_multipart_package.zip, without the "a" at the front. I have tested my own atom packages as well as the test ones bundled with the PHP Sword client libs and I get the same exception. I've attached both atom packages as well as my DSpace swordv2-server config in case they may be of help. Cheers Hayden -- Hayden Young Managing Director Wijiti Pty Ltd p. +61 (0) 08 6398 5010 e. hay...@wi... w. www.wijiti.com vcard. www.wijiti.com/vcard/haydenyoung.vcf NOTICE This e-mail and any attachments are intended for the addressee(s) only and may be confidential. They may contain legally privileged or copyright material. You should not read, copy, use or disclose them without authorization. If you are not the intended recipient please contact the sender as soon as possible by return e-mail and then please delete both messages. This notice should not be removed. |