<div dir="ltr">Nice info..<br><span id="result_box" class="" lang="en"><span class="">We</span><span class="">&#39;ve</span> <span class="">managed to</span> <span class="">edit </span></span> &#39;Latest Additions&#39; 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">&lt;<a href="mailto:eprints-tech-request@ecs.soton.ac.uk" target="_blank">eprints-tech-request@ecs.soton.ac.uk</a>&gt;</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 &#39;help&#39; 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 &quot;Re: Contents of Eprints-tech digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1.  DataObj-&gt;render_citation options (Alan.Stiles)<br>
   2.   Re: Edit &#39;Latest Additions&#39; page (Michael Street)<br>
   3. Re: Edit &#39;Latest Additions&#39; page (Adam Field)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 9 Jul 2015 11:21:29 +0000<br>
From: &quot;Alan.Stiles&quot; &lt;<a href="mailto:alan.stiles@open.ac.uk">alan.stiles@open.ac.uk</a>&gt;<br>
Subject: [EP-tech]  DataObj-&gt;render_citation options<br>
To: &quot;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
Message-ID: &lt;<a href="mailto:794503398D03434AA2EB11513B5EBD020723642D@OAK.open.ac.uk">794503398D03434AA2EB11513B5EBD020723642D@OAK.open.ac.uk</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<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-&gt;render_citation() ?<br>
<br>
I&#39;m having a complete failure to figure out what they are or what the chain of functions is that finally leads to the Metafield-&gt;render_value function<br>
Thanks!<br>
Alan<br>
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England &amp; 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 &lt;<a href="mailto:mstreet@yorku.ca">mstreet@yorku.ca</a>&gt;<br>
Subject: [EP-tech]   Re: Edit &#39;Latest Additions&#39; page<br>
To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
Cc: &quot;&#39;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&#39;&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:OF2EC4328E.2B050ADB-ON85257E7D.006C4ABF-85257E7D.006C4AC4@yorku.ca">OF2EC4328E.2B050ADB-ON85257E7D.006C4ABF-85257E7D.006C4AC4@yorku.ca</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<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 &lt;<a href="mailto:af05v@ecs.soton.ac.uk">af05v@ecs.soton.ac.uk</a>&gt;<br>
Subject: [EP-tech] Re: Edit &#39;Latest Additions&#39; page<br>
To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
Message-ID: &lt;<a href="mailto:2A7BF334-73DE-408B-81B5-2436ADD5A77E@ecs.soton.ac.uk">2A7BF334-73DE-408B-81B5-2436ADD5A77E@ecs.soton.ac.uk</a>&gt;<br>
Content-Type: text/plain; charset=&quot;windows-1252&quot;<br>
<br>
Hi Mike<br>
<br>
        See line 73 of the cgi/latest script -- there&#39;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-&gt;html_phrase( &quot;cgi/latest:day_&quot;.$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&#39;ll see that it returns an array of &#39;bits&#39; 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(&#39;/&#39;, ($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&#39;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 &lt;<a href="mailto:mstreet@yorku.ca">mstreet@yorku.ca</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; 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&#39;re going back 6 months so a proper date is needed.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Mike.<br>
&gt;<br>
&gt;<br>
&gt; -----<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> wrote: -----<br>
&gt; To: &quot;&#39;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&#39;&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
&gt; From: John Salter<br>
&gt; Sent by: <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a><br>
&gt; Date: 07/07/2015 05:08AM<br>
&gt; Subject: [EP-tech] Re: Edit &#39;Latest Additions&#39; page<br>
&gt;<br>
&gt; Hi Mike,<br>
&gt;<br>
&gt; The code that is called is ~/cgi/latest<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Instead of editing the copy there, make a copy:<br>
&gt;<br>
&gt; ~/archives/ARCHIVEID/cgi/latest<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Look for the line:<br>
&gt;<br>
&gt; my $date = time() - 86400 * 7; # 7 days<br>
&gt;<br>
&gt; you can change that to suit.<br>
&gt;<br>
&gt; You?ll also need to change the line that starts:<br>
&gt;<br>
&gt; for( my $d=0; $d&lt;7; ++$d )<br>
&gt;<br>
&gt; - which steps through the number of days and creates a section for each one.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; There is also the ~/cgi/latest_tool script.<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; John<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 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>
&gt; Sent: 06 July 2015 21:55<br>
&gt; To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
&gt; Subject: [EP-tech] Edit &#39;Latest Additions&#39; page<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Can someone point me to where I can edit the &#39;Latest Additions&#39; to configure it go back further in time?<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Mike<br>
&gt;<br>
&gt; *** 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>
&gt; *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
&gt; *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
&gt; *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
&gt; *** 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>
&gt; *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
&gt; *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
&gt; *** 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>