From: Antony C. [awc] <aw...@ab...> - 2008-02-14 15:58:56
|
It seems that this problem is caused by check for mime types in perl_lib/EPrints/Sword/Utils.pm Any type that is text/xml (found via xml declaration) is assumed to be the mets metadata file so an attempt is made to parse it. This means that xml files (which include an xml declaration) can not be ingested by Eprints via SWORD. Regards, Antony -- Antony Corfield ROAD Project http://road.aber.ac.uk tel. 01970 628724 From: swo...@li... [mailto:swo...@li...] On Behalf Of Antony Corfield [awc] Sent: 14 February 2008 09:21 To: EPrints.org Technical List; swo...@li... Subject: [sword-app-tech] SWORD ingest error Hi, I'm successfully depositing a zip via SWORD which contains pdf, html, txt and xml files along with METS metadata. However, if I include an xml declaration in the xml files i.e. <?xml version="1.0" encoding="UTF-8" ?> I get the following error in the log Executing command: /usr/bin/unzip 1>/dev/null 2>&1 -qq -o -d /tmp/Udg0JVIPu8/content /tmp/Udg0JVIPu8/item_1.zip [SWORD-METS] [ERROR] I couldnt open the file: because No such file or directory Any ideas? Regards, Antony -- Antony Corfield ROAD Project http://road.aber.ac.uk tel. 01970 628724 |