EPrints Technical Mailing List Archive

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




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
Sent: 16 October 2013 10:07
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: thumbnails

 



Someone must know how to do just pull the abstracts associated thumbnails
into the page without all of the extra html (tables , hover previews etc.)
All I want is an <img> tag.
I've looked at summary_page.xml, eprint_render.pl and quite a few others
but I'm tearing my hair out, there must be a way to get something so
simple surely?

I found this page
(http://wiki.eprints.org/w/How_to_Create_Cover_Images_in_EPrints_3) but
theta isn't quite what I want and it does appear to be out of date?

Thanks
Derek


From: Derek Lawrie <d.lawrie@nua.ac.uk>
Reply-To: Eprints <eprints-tech@ecs.soton.ac.uk>
Date: Tuesday, October 15, 2013 10:57 AM
To: Eprints <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Re: thumbnails




I don't understand how the alternative URL gives me different image types?
I've already edited summary_page.xml to output slightly different content,
but what I want to do is to change:

<epc:print expr="$doc.icon('HoverPreview','noNewWindow')}" />

To actually just print out an image tag with my selected image size (I've
already got it generating some custom image sizes)

I would assume that would go something like:

<epc:print expr="$doc.icon('myCustomSize')}" />

But obviously I have no real idea what the syntax would be.

Thanks
Derek





From: Sebastien Francois <sf2@ecs.soton.ac.uk>

Reply-To: Eprints <eprints-tech@ecs.soton.ac.uk>

Date: Monday, October 14, 2013 4:46 PM
To: Eprints <eprints-tech@ecs.soton.ac.uk>

Subject: [EP-tech] Re: thumbnails


Hi,

You can by editing archives/<id>/cfg/citations/eprint/summary_page.xml

Look where the documents/thumbnails are rendered and replace with your
code. You should be able to use the document's "alternative" URL
(your-repo-url.com/id/document/{docid})

Seb

On 14/10/13 15:53, Derek Lawrie wrote:




Hi,
When viewing the abstract is it possible to output the actual image
instead of the thumbnail?
I don't want to use the lightbox effect to get the lrger version, just the
image that it's using.
Thanks

Derek Lawrie
Web Developer and Administrator
T: 01603 751498 | Ext: 6498
W: www.nua.ac.uk <http://www.nua.ac.uk> <http://www.nua.ac.uk>
<http://www.nuca.ac.uk/>

<http://www.nuca.ac.uk/>




Norwich University of the Arts, Francis House, 3-7 Redwell Street,
Norwich, NR2 4SN

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 <http://www.nua.ac.uk> <http://www.nua.ac.uk>


NUA Business Limited
Registered office:
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Registered in England & Wales number 3001912



*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
<http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech>
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

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 <http://www.nua.ac.uk>

NUA Business Limited
Registered office:
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Registered in England & Wales number 3001912

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


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