EPrints Technical Mailing List Archive
Message: #02310
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: thumbnails
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: thumbnails
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Wed, 16 Oct 2013 10:46:28 +0100
Derek, If you look at http://wiki.eprints.org/w/EPScript, and also at: ~/perl_lib/EPrints/Script.pm (try a perldoc on it). ~/perl_lib/EPrints/Script/Compiled.pm (don’t bother trying to do a perldoc on it – there’s no documentation ;o) You’ll see the commands available to you in the epc namespace. I think something like like <img src="" /> should work (look in ~/archives/ARCHIVEID/cfg/citations/eprint/summary_page.xml for an example of iterating through documents). There may be other properties of the document that you want to test first – if you render a non-public document, you’ll be prompted for a login when it tries to render the image (which isn’t nice). You may also want to create a new document citation e.g citations/document/canary.xml (see below – untested hacked together example) and call that from the eprint citation (again, once you have a $doc to play with): <epc:print expr="$doc.citation('canary')" /> Hope that makes some sense and gets you another step along your EPrints journey! Cheers, John ========== canary.xml ============ <?xml version="1.0" ?> <!-- Document citation style (canary) --> <cite:citation xmlns="http://www.w3.org/1999/xhtml" xmlns:cite="" xmlns:epc="http://eprints.org/ep3/control"> <!-- a comment here will be included in the xml output – useful to see where things come from to help debug. This is citations/document/canary.xml --> <span class="ep_document_canary"><img src=""> </cite:citation> =============================== From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Derek Lawrie
|
- References:
- [EP-tech] Re: thumbnails
- From: Derek Lawrie <d.lawrie@nua.ac.uk>
- [EP-tech] Re: thumbnails
- Prev by Date: [EP-tech] Re: Upgrading to EPrints 3.3.12
- Next by Date: [EP-tech] Re: Upgrading to EPrints 3.3.12
- Previous by thread: [EP-tech] Re: thumbnails
- Next by thread: [EP-tech] Re: thumbnails
- Index(es):