<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Derek,<br>
<br>
No need for SSI (but feel free to use that trick), a simple Ajax
request will do:<br>
<br>
<script type="text/javascript"><br>
new Ajax.Updater( 'fplatest', '/cgi/latest_tool', {
parameters: { "mode":"fplatest", "mainonly":"yes" } } );<br>
</script><br>
<br>
This would insert the latest additions to the element whose ID is
"fplatest" (the 1st param of Ajax.Updater).<br>
<br>
Just adapt the code above just note the use of "mainonly = yes" to
ask the cgi to return only the page fragment/content rather than
the entire html document.<br>
<br>
Seb.<br>
<br>
On 30/10/13 11:11, Derek Lawrie wrote:<br>
</div>
<blockquote cite="mid:CE96990F.138E2%25d.lawrie@nua.ac.uk"
type="cite"> <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>
(<a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/thread-14164.html">http://www.eprints.org/tech.php/thread-14164.html</a>)<br>
<br>
Thanks<br>
Derek<br>
<br>
<br>
Derek Lawrie<br>
Web Developer and Administrator<br>
T: 01603 751498 | Ext: 6498<br>
w: <a moz-do-not-send="true" href="http://www.nua.ac.uk"
target="_blank">www.nua.ac.uk</a> <://www.nua.ac.uk> <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 moz-do-not-send="true"
href="mailto:J.Salter@leeds.ac.uk">J.Salter@leeds.ac.uk</a>>
<br>
Reply-To: Eprints <<a moz-do-not-send="true"
href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>>
<br>
Date: Wednesday, October 30, 2013 10:56 AM<br>
To: Eprints <<a moz-do-not-send="true"
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>
Bad form replying to myself (twice in a row too ­ sorry!).<br>
<br>
For completeness,<br>
<a moz-do-not-send="true"
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>
You can also configure some other defaults in<br>
~/archives/ARCHIVEID/cfg/cfg.d/latest_tool.pl which are then
called like<br>
<a moz-do-not-send="true"
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: '<a class="moz-txt-link-abbreviated" href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>'<br>
Subject: RE: last additions rather than latest<br>
<br>
<br>
<br>
Try<br>
<a moz-do-not-send="true"
href="http://your.repository/cgi/latest_tool" target="_blank">http://your.repository/cgi/latest_tool</a>
- which displays the most recent 20 <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>
<a class="moz-txt-link-abbreviated" href="mailto:From:eprints-tech-bounces@ecs.soton.ac.uk">From:eprints-tech-bounces@ecs.soton.ac.uk</a><br>
[<a class="moz-txt-link-freetext" href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]<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 moz-do-not-send="true" href="http://www.nua.ac.uk"
target="_blank">www.nua.ac.uk</a> <<a moz-do-not-send="true"
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>
<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" face="Verdana, Arial, Helvetica, sans-serif"
size="1">
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 moz-do-not-send="true" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
</pre>
</blockquote>
<br>
</body>
</html>