<div dir="ltr">Nice info..<br><span id="result_box" class="" lang="en"><span class="">We</span><span class="">'ve</span> <span class="">managed to</span> <span class="">edit </span></span> 'Latest Additions' page. <br><a href="http://idr.iain-antasari.ac.id/cgi/latest">http://idr.iain-antasari.ac.id/cgi/latest</a><br><br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><i>Powered by Telkomsel Blackberry<font face="Times New Roman">®</font></i></div></div>
<br><div class="gmail_quote">On Fri, Jul 10, 2015 at 9:13 AM, <span dir="ltr"><<a href="mailto:eprints-tech-request@ecs.soton.ac.uk" target="_blank">eprints-tech-request@ecs.soton.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Eprints-tech mailing list submissions to<br>
<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:eprints-tech-request@ecs.soton.ac.uk">eprints-tech-request@ecs.soton.ac.uk</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:eprints-tech-owner@ecs.soton.ac.uk">eprints-tech-owner@ecs.soton.ac.uk</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Eprints-tech digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. DataObj->render_citation options (Alan.Stiles)<br>
2. Re: Edit 'Latest Additions' page (Michael Street)<br>
3. Re: Edit 'Latest Additions' page (Adam Field)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 9 Jul 2015 11:21:29 +0000<br>
From: "Alan.Stiles" <<a href="mailto:alan.stiles@open.ac.uk">alan.stiles@open.ac.uk</a>><br>
Subject: [EP-tech] DataObj->render_citation options<br>
To: "<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>" <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>><br>
Message-ID: <<a href="mailto:794503398D03434AA2EB11513B5EBD020723642D@OAK.open.ac.uk">794503398D03434AA2EB11513B5EBD020723642D@OAK.open.ac.uk</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Can anyone point me to a wiki page or a .pm file that defines what the possible values for %opts are for DataObj->render_citation() ?<br>
<br>
I'm having a complete failure to figure out what they are or what the chain of functions is that finally leads to the Metafield->render_value function<br>
Thanks!<br>
Alan<br>
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150709/fd0e508c/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150709/fd0e508c/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 9 Jul 2015 15:42:50 -0400<br>
From: Michael Street <<a href="mailto:mstreet@yorku.ca">mstreet@yorku.ca</a>><br>
Subject: [EP-tech] Re: Edit 'Latest Additions' page<br>
To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
Cc: "'<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>'" <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>><br>
Message-ID:<br>
<<a href="mailto:OF2EC4328E.2B050ADB-ON85257E7D.006C4ABF-85257E7D.006C4AC4@yorku.ca">OF2EC4328E.2B050ADB-ON85257E7D.006C4ABF-85257E7D.006C4AC4@yorku.ca</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150709/2d07abd0/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150709/2d07abd0/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 10 Jul 2015 10:12:16 +0900<br>
From: Adam Field <<a href="mailto:af05v@ecs.soton.ac.uk">af05v@ecs.soton.ac.uk</a>><br>
Subject: [EP-tech] Re: Edit 'Latest Additions' page<br>
To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
Message-ID: <<a href="mailto:2A7BF334-73DE-408B-81B5-2436ADD5A77E@ecs.soton.ac.uk">2A7BF334-73DE-408B-81B5-2436ADD5A77E@ecs.soton.ac.uk</a>><br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
Hi Mike<br>
<br>
See line 73 of the cgi/latest script -- there's a block that looks like this:<br>
<br>
<a href="https://github.com/eprints/eprints/blob/3.3/cgi/latest#L73" rel="noreferrer" target="_blank">https://github.com/eprints/eprints/blob/3.3/cgi/latest#L73</a><br>
<br>
else<br>
{<br>
my $dow = (localtime(time-$d*86400))[6];<br>
$day = $session->html_phrase( "cgi/latest:day_".$dow );<br>
}<br>
<br>
If you look at the documentation for localtime ( <a href="http://perldoc.perl.org/functions/localtime.html" rel="noreferrer" target="_blank">http://perldoc.perl.org/functions/localtime.html</a> ), you'll see that it returns an array of 'bits' of the date (with the weekday at index 6, which is what is collected above).<br>
<br>
Something like this should work:<br>
<br>
my $date_string = EPrints::Time::human_time($time-$d*86400);<br>
<br>
OR<br>
<br>
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time-$d*86400);<br>
my $date_string = join('/', ($mday, $mon, $year)); #or however you want to build your date string.<br>
<br>
...then replicate the line that passes this value to a phrase (you should probably create a new one).<br>
<br>
(note that I've just typed these code fragments into my email, so they may not even compile)<br>
<br>
As a best practice, you should copy the script and modify in a different file (call it latest-6-months or something), and then link to it from your repository.<br>
<br>
--<br>
Adam Field<br>
Business Relationship Manager and Community Lead<br>
EPrints Services<br>
<br>
I am currently not working in the UK. Due to timezone differences (GMT -9) email responses may take longer.<br>
<br>
<br>
On 10 Jul 2015, at 04:42, Michael Street <<a href="mailto:mstreet@yorku.ca">mstreet@yorku.ca</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Thanks for the help everyone. Is it possible to have it show the full date of the submission as the section title, rather than just the day? We're going back 6 months so a proper date is needed.<br>
><br>
> Thanks,<br>
> Mike.<br>
><br>
><br>
> -----<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> wrote: -----<br>
> To: "'<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>'" <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>><br>
> From: John Salter<br>
> Sent by: <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a><br>
> Date: 07/07/2015 05:08AM<br>
> Subject: [EP-tech] Re: Edit 'Latest Additions' page<br>
><br>
> Hi Mike,<br>
><br>
> The code that is called is ~/cgi/latest<br>
><br>
><br>
><br>
> Instead of editing the copy there, make a copy:<br>
><br>
> ~/archives/ARCHIVEID/cgi/latest<br>
><br>
><br>
><br>
> Look for the line:<br>
><br>
> my $date = time() - 86400 * 7; # 7 days<br>
><br>
> you can change that to suit.<br>
><br>
> You?ll also need to change the line that starts:<br>
><br>
> for( my $d=0; $d<7; ++$d )<br>
><br>
> - which steps through the number of days and creates a section for each one.<br>
><br>
><br>
><br>
> There is also the ~/cgi/latest_tool script.<br>
><br>
> This reads the ?latest_tool_modes? from the archive config, which my default is in ~/archives/ARCHIVEID/cfg/cfg.d/<a href="http://latest_tool.pl" rel="noreferrer" target="_blank">latest_tool.pl</a><br>
><br>
> You can do some useful things with this ? as it allows you to specify a specific citation style to use, and to create a named mode that can be a filtered subset of items ? e.g. you could create a subject- or division-specific ?latest? list ? and create a citation style that embeds Altmetrics in it.<br>
><br>
><br>
><br>
> Cheers,<br>
><br>
> John<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> From: <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> [mailto:<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>] On Behalf Of Michael Street<br>
> Sent: 06 July 2015 21:55<br>
> To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
> Subject: [EP-tech] Edit 'Latest Additions' page<br>
><br>
><br>
><br>
> Hi,<br>
><br>
><br>
><br>
> Can someone point me to where I can edit the 'Latest Additions' to configure it go back further in time?<br>
><br>
><br>
> Thanks,<br>
><br>
> Mike<br>
><br>
> *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
> *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
> *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
> *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
> *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
> *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
> *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
> *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150710/75cf4c23/attachment.html" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150710/75cf4c23/attachment.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Eprints-tech mailing list<br>
<a href="mailto:Eprints-tech@ecs.soton.ac.uk">Eprints-tech@ecs.soton.ac.uk</a><br>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
<br>
<br>
End of Eprints-tech Digest, Vol 82, Issue 23<br>
********************************************<br>
</blockquote></div><br></div>