[EP-tech] Re: Creating new citation formats....
John Salter
J.Salter at leeds.ac.uk
Tue Feb 4 12:09:13 GMT 2014
[On our install] If you stick a new line in the citation, it comes out as a new line in the output.
Do you want an html new line instead?
If you look in ~/perl_lib/EPrints/Script/Compiled.pm it will show you what you can do in EPScript - I don’t think there's a magic 'export' function in there - so you could:
- make one by writing into that package ('run_render_export_link' maybe)
- do it manually in the citation
- something else that someone cleverer than I will no doubt suggest in a minute :o)
Does any of that help?
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 Ian Stuart
Sent: 04 February 2014 11:35
To: eprints
Subject: [EP-tech] Creating new citation formats....
I'm creating a new citation for my repository.
(EPrints 3.2 - if it makes a difference)
The basics are fairly easy:
<PATH_TO_ARCHIVE_ID>/cfg/plugins/EPrints/Plugin/Export/MyExporter.pm
is basically a copy of an existing exporter (try text.pm)
and
<PATH_TO_ARCHIVE_ID>/cfg/citations/eprint/my_cite.xml
describes the format (using EPrint EP3 Control codes)
I've two questions:
1) Can I force a newline without having to use a phrase?
<print expr="\n" /> doesn't work
2) Can I generate a link to export the eprint in a specific format, to
be included in the citation?
What I want to be able to do is create a list of records something like:
Picus viridis, Yaffle and Stuart, Ian (2012) A test article. Nature.
ISSN 12775
<http://repo.example.com/1783/>
<http://repo.example.com/cgi/export/eprint/1783/REM_Atom/broker-eprint-1783.xml>
I can get the first two lines, nice and easy - though only on one line...
--
Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.
http://edina.ac.uk/
This email was sent via the University of Edinburgh.
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
*** 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/
*** EPrints developers Forum: http://forum.eprints.org/
More information about the Eprints-tech
mailing list