[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Re: Importing files and metadata with /bin/import



Hi John,

	It's in the url :
<!-- snip
grant = {INRIA grant},
  timestamp = {2012.11.09},
  url = {http://sofa.uqam.ca/users/naouel-moha/paper/2010/Sen10-SoSyM.pdf}
}
snip-->

Incidentally, files would be retrieved from http. The file that you refer to is for import from cgi and it is for just one file. We want to use /bin/import because it permit us to do bulk import (10-20 documents in one shot); it also allow us to attribute documents to a certain user (respectively to teachers that gave use BibTex files) and to put them directly in the archive (instead of the buffer user).

In /bin/import help we see : "=item B<--enable-web-imports>
Allow the imported data to import files from the Web. This can obviously be seen as a security hole if you don't trust the data you are importing.
This sets the "enable_web_imports" configuration option for this session only."

This works for imported file format EP3XML but not for BibTex format. How can we change this ?

Regards,

Pierre



-----Message d'origine-----
De?: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] De la part de John Salter
Envoy??: 25 janvier 2013 12:37
??: 'eprints-tech at ecs.soton.ac.uk'
Objet?: [EP-tech] Re: Importing files and metadata with /bin/import

Hi Pierre,
How are the file referenced in the BibTex files?
Is it in the URL field, or something else.

Do you have copies of the files stored locally, or would the files be retrieved over http?

You should be able to modify the BibTex import - if you look at the end of the file attached to this:
http://files.eprints.org/226/
It might help - although it's for EPrints 2 so will probably need some tweaking to get it working.

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 Nault, Pierre
Sent: 25 January 2013 15:59
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Importing files and metadata with /bin/import

Hi,

	We're trying to import metadata and files attach with /bin/import. So far we have been able to import metadata AND files with the XML plugin:

	./import name-of-repository --enable-web-imports --user 1184 inbox XML /home/eprints/IMPORTation-en-lot/ep3xml1.xml --verbose
	For that we have to make an xml file with the metadata containing ? link to the physical document.

	But the original metadata file is in BibTex format. We have to convert it into BibTexXML and then apply an xslt transformation to convert it into EP3XML format. That way eprints will digest it and import not only the metadata but also the files that are link. This process is complicated and depend on the quality of the metadata in the BibTeX file -xslt transformation as to be adapted from time to time.
	 We have tried to import metadata AND files with /bin/import from the BibTex file but this does not import any attach files :

	./import name-of-repository --enable-web-imports --user 1184 inbox BibTeX /home/eprints/IMPORTation-en-lot/naouel-certifie.bib --verbose

	I'm not a perl connoisseur, but is there a way we could modify the BibTeX plugin so that it would also import the files attach to a BibTeX file like the XML plugin do so nicely ?

	We are on eprint 3.1.

	Thanks for any advice,

pierre
#---------------------------------------------#
Pierre Nault
Biblioth?caire syst?mes
Technologies de l?information
Universit? du Qu?bec ? Montr?al
T?l?: 514-987-300 #4554



*** 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/

*** 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/