<HTML><BODY>
<br />
<br />
Hi,<BR>
Seb and John helped me enormously yesterday with getting the latest<BR>
additions onto the page, but no I'd like to customise the output of those<BR>
additions, giving more importance (slightly different styling) to one or<BR>
more items to distinguish them.<BR>
I see in latest_tool where it loops through the items, is it ok for me to<BR>
alter that? It's not going to break something on another page?<BR>
I'm also presuming that I can pull other content about the abstract into<BR>
this as well, I was thinking of using thumbnails on the homepage along<BR>
with the title text.<BR>
<BR>
Does any of that make sense?<BR>
<BR>
Thanks<BR>
Derek<BR>
<BR>
<BR>
<BR>
From: Sebastien Francois <<a href="mailto:sf2@ecs.soton.ac.uk">sf2@ecs.soton.ac.uk</a>> <BR>
Reply-To: Eprints <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>> <BR>
Date: Wednesday, October 30, 2013 11:16 AM<BR>
To: Eprints <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>> <BR>
Subject: [EP-tech] Re: last additions rather than latest<BR>
<BR>
<BR>
Hi Derek,<BR>
<BR>
No need for SSI (but feel free to use that trick), a simple Ajax request<BR>
will do:<BR>
<BR>
<script type="text/javascript"><BR>
new Ajax.Updater( 'fplatest', '/cgi/latest_tool', { parameters: {<BR>
"mode":"fplatest", "mainonly":"yes" } } );<BR>
</script><BR>
<BR>
This would insert the latest additions to the element whose ID is<BR>
"fplatest" (the 1st param of Ajax.Updater).<BR>
<BR>
Just adapt the code above just note the use of "mainonly = yes" to ask the<BR>
cgi to return only the page fragment/content rather than the entire html<BR>
document.<BR>
<BR>
Seb.<BR>
<BR>
On 30/10/13 11:11, Derek Lawrie wrote:<BR>
<BR>
<BR>
<BR>
<BR>
Thanks John, before I could even get a reply in asking how you would use<BR>
it!<BR>
Is it possible to then use that on the index/homepage?<BR>
I've read another entry on here with someone using php SSi's to do that,<BR>
wasn't sure if it was possible without that method?<BR>
(http://www.eprints.org/tech.php/thread-14164.html)<BR>
<BR>
Thanks<BR>
Derek<BR>
<BR>
<BR>
Derek Lawrie<BR>
Web Developer and Administrator<BR>
T: 01603 751498 | Ext: 6498<BR>
w: <a href="http://www.nua.ac.uk" target="_blank">www.nua.ac.uk</a> <<a href="http://www.nua.ac.uk" target="_blank">http://www.nua.ac.uk</a>> <://www.nua.ac.uk> <BR>
<BR>
<BR>
<BR>
<BR>
Norwich University of the Arts, Francis House, 3-7 Redwell Street,<BR>
Norwich, NR2 4SN<BR>
<BR>
<BR>
<BR>
<BR>
From: John Salter <<a href="mailto:J.Salter@leeds.ac.uk">J.Salter@leeds.ac.uk</a>> <BR>
<BR>
Reply-To: Eprints <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>> <BR>
<BR>
Date: Wednesday, October 30, 2013 10:56 AM<BR>
To: Eprints <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>> <BR>
<BR>
Subject: [EP-tech] Re: last additions rather than latest<BR>
<BR>
<BR>
Bad form replying to myself (twice in a row too ­ sorry!).<BR>
<BR>
For completeness,<BR>
<a href="http://your.repository/cgi/latest_tool?n=5" target="_blank">http://your.repository/cgi/latest_tool?n=5</a> will show the 5 latest. <BR>
<BR>
<BR>
You can also configure some other defaults in<BR>
~/archives/ARCHIVEID/cfg/cfg.d/latest_tool.pl which are then called like<BR>
<a href="http://your.repository/cgi/latest_tool?mode=articles&n=5" target="_blank">http://your.repository/cgi/latest_tool?mode=articles&n=5</a> <BR>
(for the commented example in latest_tool.pl).<BR>
<BR>
Cheers,<BR>
John<BR>
<BR>
From: John Salter<BR>
<BR>
Sent: 30 October 2013 10:31<BR>
To: 'eprints-tech@ecs.soton.ac.uk'<BR>
Subject: RE: last additions rather than latest<BR>
<BR>
<BR>
<BR>
Try<BR>
<a href="http://your.repository/cgi/latest_tool" target="_blank">http://your.repository/cgi/latest_tool</a> - which displays the most recent 20 <BR>
<BR>
items by default (I think).<BR>
It¹s in here: ~/cgi/latest_tool<BR>
If you¹re running multiple repositories on one server, you can copy it to<BR>
~/archives/ARCHIVEID/cgi/ to create a repository-specific version of it.<BR>
<BR>
Cheers,<BR>
John<BR>
<BR>
From:eprints-tech-bounces@ecs.soton.ac.uk<BR>
[mailto:eprints-tech-bounces@ecs.soton.ac.uk]<BR>
On Behalf Of Derek Lawrie<BR>
Sent: 30 October 2013 09:25<BR>
To: Eprints<BR>
Subject: [EP-tech] last additions rather than latest<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
Hi,<BR>
Is it possible (I presume it is, just don't know how) to change the<BR>
"Latest Additions" to "Last Additions", I can't quite often go weeks<BR>
without anything being added and would prefer something was shown on the<BR>
page rather than leaving it empty.<BR>
<BR>
Thanks<BR>
Derek<BR>
<BR>
Rated top Specialist Arts Institution in the UK (National Student Survey<BR>
2013) and best Specialist Institution in Art and Design (Complete<BR>
University Guide 2014)<BR>
<BR>
Internet communications cannot be guaranteed to be secure or error-free as<BR>
information could be intercepted, corrupted, lost, destroyed, arrive late<BR>
or incomplete, or contain viruses.<BR>
Therefore, we do not accept responsibility for any errors or omissions<BR>
that are present in this message, or any attachment, that have arisen as a<BR>
result of e-mail transmission. If verification is required, please request<BR>
a hard-copy version. Any views or opinions<BR>
presented are solely those of the author and do not necessarily represent<BR>
those of the University.<BR>
<BR>
<BR>
This email and any files sent with it are intended only for the named<BR>
recipient and may be confidential. If you are not the named recipient<BR>
please email the sender immediately then delete this message. You should<BR>
not disclose the content, distribute or retain<BR>
any copies of this message.<BR>
<BR>
<BR>
Norwich University of the Arts,<BR>
Francis House,<BR>
3-7 Redwell Street,<BR>
Norwich, NR2 4SN.<BR>
Tel: 01603 610561<BR>
Fax: 01603 615728<BR>
<a href="http://www.nua.ac.uk" target="_blank">www.nua.ac.uk</a> <<a href="http://www.nua.ac.uk" target="_blank">http://www.nua.ac.uk</a>> <<a href="http://www.nua.ac.uk" target="_blank">http://www.nua.ac.uk</a>> <BR>
<BR>
<BR>
NUA Business Limited<BR>
Registered office:<BR>
Francis House,<BR>
3-7 Redwell Street,<BR>
Norwich, NR2 4SN.<BR>
Registered in England & Wales number 3001912<BR>
<BR>
Rated top Specialist Arts Institution in the UK (National Student Survey<BR>
2013) and best Specialist Institution in Art and Design (Complete<BR>
University<BR>
Guide 2014) <BR>
<BR>
Internet communications cannot be guaranteed to be secure or error-free as<BR>
information could be intercepted, corrupted, lost, destroyed, arrive late<BR>
or incomplete, or contain viruses.<BR>
Therefore, we do not accept responsibility for any errors or omissions<BR>
that are present in this message, or any attachment, that have arisen as a<BR>
result of e-mail transmission. If verification is required, please request<BR>
a hard-copy version. Any views or opinions<BR>
presented are solely those of the author and do not necessarily represent<BR>
those of the University.<BR>
<BR>
<BR>
This email and any files sent with it are intended only for the named<BR>
recipient and may be confidential. If you are not the named recipient<BR>
please email the sender immediately then delete this message. You should<BR>
not disclose the content, distribute or retain<BR>
any copies of this message.<BR>
<BR>
<BR>
Norwich University of the Arts,<BR>
Francis House,<BR>
3-7 Redwell Street,<BR>
Norwich, NR2 4SN.<BR>
Tel: 01603 610561<BR>
Fax: 01603 615728<BR>
<a href="http://www.nua.ac.uk" target="_blank">www.nua.ac.uk</a> <<a href="http://www.nua.ac.uk" target="_blank">http://www.nua.ac.uk</a>> <BR>
<BR>
NUA Business Limited<BR>
Registered office:<BR>
Francis House,<BR>
3-7 Redwell Street,<BR>
Norwich, NR2 4SN.<BR>
Registered in England & Wales number 3001912<BR>
<BR>
<BR>
<BR>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a> <BR>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a> <BR>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a> <BR>
<br /> <span style="font-size:11.0pt; font-family:"Arial","sans-serif"; color:#0000cc; font-weight:bold">
Rated top Specialist Arts Institution in the UK (National Student Survey 2013) and best Specialist Institution in Art and Design (Complete University Guide 2014)</span>
<br /><br />
<font color="black" size="1" face="Verdana, Arial, Helvetica, sans-serif">
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.
<br /><br />
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.
<br /><br /><br />
Norwich University of the Arts, <br />Francis House,<br />3-7 Redwell Street, <br />Norwich, NR2 4SN.<br />
Tel: 01603 610561<br />
Fax: 01603 615728<br />
<a href="http://www.nua.ac.uk" target="_blank">www.nua.ac.uk</a><br />
<br />
NUA Business Limited<br />
Registered office:<br />
Francis House,<br />
3-7 Redwell Street,<br />
Norwich, NR2 4SN.<br />
Registered in England & Wales number 3001912<br />
</font>
<br />
<span>
</span></BODY></HTML>