[EP-tech] Re: Eprints-tech Digest, Vol 82, Issue 23

Ery Sitorus ery.sitorus at gmail.com
Fri Jul 10 03:07:13 BST 2015


Nice info..
We've managed to edit 'Latest Additions' page.
http://idr.iain-antasari.ac.id/cgi/latest



*Powered by Telkomsel Blackberry®*

On Fri, Jul 10, 2015 at 9:13 AM, <eprints-tech-request at ecs.soton.ac.uk>
wrote:

> Send Eprints-tech mailing list submissions to
>         eprints-tech at ecs.soton.ac.uk
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> or, via email, send a message with subject or body 'help' to
>         eprints-tech-request at ecs.soton.ac.uk
>
> You can reach the person managing the list at
>         eprints-tech-owner at ecs.soton.ac.uk
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Eprints-tech digest..."
>
>
> Today's Topics:
>
>    1.  DataObj->render_citation options (Alan.Stiles)
>    2.   Re: Edit 'Latest Additions' page (Michael Street)
>    3. Re: Edit 'Latest Additions' page (Adam Field)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 9 Jul 2015 11:21:29 +0000
> From: "Alan.Stiles" <alan.stiles at open.ac.uk>
> Subject: [EP-tech]  DataObj->render_citation options
> To: "eprints-tech at ecs.soton.ac.uk" <eprints-tech at ecs.soton.ac.uk>
> Message-ID: <794503398D03434AA2EB11513B5EBD020723642D at OAK.open.ac.uk>
> Content-Type: text/plain; charset="us-ascii"
>
> 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() ?
>
> 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
> Thanks!
> Alan
> -- 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.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150709/fd0e508c/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Thu, 9 Jul 2015 15:42:50 -0400
> From: Michael Street <mstreet at yorku.ca>
> Subject: [EP-tech]   Re: Edit 'Latest Additions' page
> To: eprints-tech at ecs.soton.ac.uk
> Cc: "'eprints-tech at ecs.soton.ac.uk'" <eprints-tech at ecs.soton.ac.uk>
> Message-ID:
>         <
> OF2EC4328E.2B050ADB-ON85257E7D.006C4ABF-85257E7D.006C4AC4 at yorku.ca>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL:
> http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150709/2d07abd0/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Fri, 10 Jul 2015 10:12:16 +0900
> From: Adam Field <af05v at ecs.soton.ac.uk>
> Subject: [EP-tech] Re: Edit 'Latest Additions' page
> To: eprints-tech at ecs.soton.ac.uk
> Message-ID: <2A7BF334-73DE-408B-81B5-2436ADD5A77E at ecs.soton.ac.uk>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi Mike
>
>         See line 73 of the cgi/latest script -- there's a block that looks
> like this:
>
>         https://github.com/eprints/eprints/blob/3.3/cgi/latest#L73
>
>         else
>         {
>                 my $dow = (localtime(time-$d*86400))[6];
>                 $day = $session->html_phrase( "cgi/latest:day_".$dow );
>         }
>
>         If you look at the documentation for localtime (
> http://perldoc.perl.org/functions/localtime.html ), 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).
>
>         Something like this should work:
>
>                 my $date_string =
> EPrints::Time::human_time($time-$d*86400);
>
>         OR
>
>                 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
> localtime(time-$d*86400);
>                 my $date_string = join('/', ($mday, $mon, $year)); #or
> however you want to build your date string.
>
>         ...then replicate the line that passes this value to a phrase (you
> should probably create a new one).
>
>         (note that I've just typed these code fragments into my email, so
> they may not even compile)
>
>         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.
>
> --
> Adam Field
> Business Relationship Manager and Community Lead
> EPrints Services
>
> I am currently not working in the UK.  Due to timezone differences (GMT
> -9) email responses may take longer.
>
>
> On 10 Jul 2015, at 04:42, Michael Street <mstreet at yorku.ca> wrote:
>
> > Hi,
> >
> > 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.
> >
> > Thanks,
> > Mike.
> >
> >
> > -----eprints-tech-bounces at ecs.soton.ac.uk wrote: -----
> > To: "'eprints-tech at ecs.soton.ac.uk'" <eprints-tech at ecs.soton.ac.uk>
> > From: John Salter
> > Sent by: eprints-tech-bounces at ecs.soton.ac.uk
> > Date: 07/07/2015 05:08AM
> > Subject: [EP-tech] Re: Edit 'Latest Additions' page
> >
> > Hi Mike,
> >
> > The code that is called is ~/cgi/latest
> >
> >
> >
> > Instead of editing the copy there, make a copy:
> >
> > ~/archives/ARCHIVEID/cgi/latest
> >
> >
> >
> > Look for the line:
> >
> > my $date = time() - 86400 * 7; # 7 days
> >
> > you can change that to suit.
> >
> > You?ll also need to change the line that starts:
> >
> > for( my $d=0; $d<7; ++$d )
> >
> > - which steps through the number of days and creates a section for each
> one.
> >
> >
> >
> > There is also the ~/cgi/latest_tool script.
> >
> > This reads the ?latest_tool_modes? from the archive config, which my
> default is in ~/archives/ARCHIVEID/cfg/cfg.d/latest_tool.pl
> >
> > 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.
> >
> >
> >
> > Cheers,
> >
> > John
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:
> eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Michael Street
> > Sent: 06 July 2015 21:55
> > To: eprints-tech at ecs.soton.ac.uk
> > Subject: [EP-tech] Edit 'Latest Additions' page
> >
> >
> >
> > Hi,
> >
> >
> >
> > Can someone point me to where I can edit the 'Latest Additions' to
> configure it go back further in time?
> >
> >
> > Thanks,
> >
> > Mike
> >
> > *** Options:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> > *** Archive: http://www.eprints.org/tech.php/
> > *** EPrints community wiki: http://wiki.eprints.org/
> > *** EPrints developers Forum: http://forum.eprints.org/
> > *** Options:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> > *** Archive: http://www.eprints.org/tech.php/
> > *** EPrints community wiki: http://wiki.eprints.org/
> > *** EPrints developers Forum: http://forum.eprints.org/
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150710/75cf4c23/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Eprints-tech mailing list
> Eprints-tech at ecs.soton.ac.uk
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>
>
> End of Eprints-tech Digest, Vol 82, Issue 23
> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150710/6c38478f/attachment.html 


More information about the Eprints-tech mailing list