[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Re: Importing files from another system
Hi John,
Might your XML be missing the "documents" level of nesting?
e.g.:
<eprints>
<eprint>
<documents>
<document>
<files>
<file>
<datasetid>document</datasetid>
<filename>...</filename>
<mime_type>...</mime_type>
<url>...</url>
</file>
</files>
</document>
</documents>
</eprint>
</eprints>
Cheers,
Casey
-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of John Salter
Sent: June-21-12 11:25 AM
To: 'eprints-tech at ecs.soton.ac.uk'
Subject: [EP-tech] Re: Importing files from another system
Yep - that didn't work either :o\
According to this:
http://wiki.eprints.org/w/Import_From_URL
I was also missing a <files> around the <file>.
I've added that and re-tried all the options, so far none work :o\
Any other suggestions?
Cheers,
John
-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Jose Martin
Sent: 21 June 2012 14:40
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: Importing files from another system
Have you tried for local files
<url>file:///path_to_file</url>
?
-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of John Salter
Sent: 21 June 2012 14:24
To: 'eprints-tech at ecs.soton.ac.uk'
Subject: [EP-tech] Re: Importing files from another system
Nothing silly in the verbose output.
I can wget the file over http (when trying the http method), but even using the file from the local filesystem doesn't work :o\
-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Yuri
Sent: 21 June 2012 13:48
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: Importing files from another system
run the command with --verbose --verbose and try to see what happen. Can you go to port 80 from the server to another server? Check your firewall settings.
Il 21/06/2012 14:22, John Salter ha scritto:
> Hi,
> I'm trying to import files from another system, into EPrints.
> I can either copy the files onto the server, or make them available over http.
>
> In the XML, I've tried specifying (in an<eprints><eprint> node)
> <document>
> <file href="/path/to/my.pdf" />
> </document>
> - or -
> <document>
> <file>
> <url>http://url.of/my.pdf</url>
> </file>
> </document>
>
> And importing with:
>> bin/import ARCHIVENAME --enable-file-imports --enable-web-imports
>> --user 1 archive XML test.xml
> Both import the metadata from the XML OK, but neither option attaches the file to the eprint.
>
> What am I doing wrong - or will this even work?
>
> Cheers,
> John
> *** Options:
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php