EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02314
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] {Disarmed} Re: Re: thumbnails
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] {Disarmed} Re: Re: thumbnails
- From: Derek Lawrie <d.lawrie@nua.ac.uk>
- Date: Wed, 16 Oct 2013 10:14:27 +0000
Thanks John that's given me plenty to be trying.
Derek Lawrie
Web Developer and Administrator
T: 01603 751498 | Ext: 6498 W: MailScanner has detected a possible fraud attempt from "www.nuca.ac.uk" claiming to be www.nua.ac.uk Norwich University of the Arts, Francis House, 3-7 Redwell Street, Norwich, NR2 4SN
From: John Salter <J.Salter@leeds.ac.uk>
Reply-To: Eprints <eprints-tech@ecs.soton.ac.uk> Date: Wednesday, October 16, 2013 10:46 AM To: Eprints <eprints-tech@ecs.soton.ac.uk> Subject: [EP-tech] Re: thumbnails 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="" href="http://eprints.org/ep3/citation">http://eprints.org/ep3/citation"
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
Rated top Specialist Arts Institution in the UK (National Student Survey 2013) and best Specialist Institution in Art and Design (Complete University Guide 2014) Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the University. This email and any files sent with it are intended only for the named recipient and may be confidential. If you are not the named recipient please email the sender immediately then delete this message. You should not disclose the content, distribute or retain any copies of this message. Norwich University of the Arts, Francis House, 3-7 Redwell Street, Norwich, NR2 4SN. Tel: 01603 610561 Fax: 01603 615728 www.nua.ac.uk NUA Business Limited Registered office: Francis House, 3-7 Redwell Street, Norwich, NR2 4SN. Registered in England & Wales number 3001912 |
- 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] Upgrading to EPrints 3.3.12
- Next by thread: [EP-tech] Showing file metadata on upload
- Index(es):