<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">Hello,<br>
<br>
From lib/defaultcfg/cfg.d/latest_tool.pl:<br>
<br>
$c->{latest_tool_modes} = {<br>
default => { citation => "result" }<br>
};<br>
<br>
# Example of a latest_tool mode. This makes a mode=articles option<br>
# which only lists eprints who's type equals "article".<br>
# <br>
# articles => {<br>
# citation => undef,<br>
# filters => [<br>
# { meta_fields => [ "type" ], value
=> "article" }<br>
# ],<br>
# max => 20<br>
# }<br>
<br>
<br>
You can see the "default" mode uses the "result" citation (i.e.
lib/citations/eprint/result.xml).<br>
<br>
(but don't change this file directly, change your local copy in
archives/<id>/cfg/cfg.d/latest_tool.pl instead).<br>
<br>
Seb.<br>
<br>
<br>
On 31/10/13 11:42, Derek Lawrie wrote:<br>
</div>
<blockquote cite="mid:CE97F226.13981%25d.lawrie@nua.ac.uk"
type="cite"> <br>
<br>
Looking at latest_tool I have no idea how I would create another
mode or<br>
how I would use it?<br>
I can create a new citation easily enough, but again not really
sure how<br>
latest_tool would use it.<br>
Not really sure what citation it's getting by default currently!<br>
(assuming that it is)<br>
<br>
Thanks<br>
Derek<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: Thursday, October 31, 2013 11:22 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>
I’d look at the latest_tool.pl, making a new mode, and using a new<br>
citation style.<br>
<a moz-do-not-send="true"
href="http://wiki.eprints.org/w/Citation_Format" target="_blank">http://wiki.eprints.org/w/Citation_Format</a>
<br>
Have a poke about in ~/archives/ARCHIVEID/cfg/citations/ (both
eprint and<br>
document).<br>
<br>
Let us know how you get on!<br>
Cheers,<br>
John<br>
<br>
From: <a moz-do-not-send="true"
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">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: 31 October 2013 10:34<br>
To: <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>
<br>
<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 moz-do-not-send="true"
href="mailto:sf2@ecs.soton.ac.uk">sf2@ecs.soton.ac.uk</a>> <br>
<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>
<br>
Date: Wednesday, October 30, 2013 11:16 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>
<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>
(<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> <<a moz-do-not-send="true"
href="http://www.nua.ac.uk" target="_blank">http://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>
<://www.nua.ac.uk><br>
<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 moz-do-not-send="true"
href="mailto:J.Salter@leeds.ac.uk">J.Salter@leeds.ac.uk</a>>
<br>
<br>
<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>
<br>
<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>
<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 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>
<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>
<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>
<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>>
<<a moz-do-not-send="true" href="http://www.nua.ac.uk"
target="_blank">http://www.nua.ac.uk</a>> <br>
<<a moz-do-not-send="true" href="http://www.nua.ac.uk"
target="_blank">http://www.nua.ac.uk</a>> <br>
<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 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>>
<<a moz-do-not-send="true" 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>
<br>
<br>
*** Options: <br>
<a moz-do-not-send="true"
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>
<<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a>
<br>
*** EPrints community wiki: <a moz-do-not-send="true"
href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a>
<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>