[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Re: Antwort: inserting irstats on abstract/detail page



I already open archives/{repo}/cfg/cfg.d/eprint_render.pl and at bottom
page, there is a code like this :
 # IRSTATS CODE STARTS HERE
                if
($repository->get_repository->can_call('irstats_abstract_content'))
                {

$page->appendChild($repository->get_repository->call('irstats_abstract_content',
$repository, $eprint));
                }
                # END IRSTATS

But, when I removed the # and run generate, there nothing graph except text
"Document Downloads".
Is it okay if I insert this script at that line :

<div id="mytable" class="irstats_table"/>

<script type="text/javascript">
document.observe( "dom:loaded", function() {

        new EPJS_Stats_Table( {
                'context': { 'datatype': 'downloads' },
                'options': { 'container_id': 'mytable', 'top':
'eprint', 'view': 'Table', 'limit': '5' }
        } );

});
</script>

I'm don't know about perl :(

Any help very appreciate.

Thank you

Best regards

Agung



On Fri, Nov 28, 2014 at 1:41 PM, <martin.braendle at id.uzh.ch> wrote:

> Hi,
>
> the abstract/detail page is rendered by archives/{repo}/cfg/cfg.d/
> eprint_render.pl
>
> http://eprints.github.io/irstats2/api.html describes the functions to
> obtain statistics data and gives some examples.
>
> Best regards,
>
> Martin
>
> --
> Dr. Martin Br?ndle
> Zentrale Informatik
> Universit?t Z?rich
> Winterthurerstr. 190
> CH-8057 Z?rich
>
> mail: martin.braendle at id.uzh.ch
> phone: +41 44 63 56705
> fax: +41 44 63 54505
> http://www.id.uzh.ch
>
> [image: Inactive hide details for Ajunk Pracetio ---28/11/2014
> 04:43:23---Hi, I'd like to insert irstats on abstract/detail page. Is th]Ajunk
> Pracetio ---28/11/2014 04:43:23---Hi, I'd like to insert irstats on
> abstract/detail page. Is there any guide hoq
>
> Von: Ajunk Pracetio <prazetyo at gmail.com>
> An: "eprints-tech at ecs.soton.ac.uk" <eprints-tech at ecs.soton.ac.uk>
> Datum: 28/11/2014 04:43
> Betreff: [EP-tech]  inserting irstats on abstract/detail page
> Gesendet von: eprints-tech-bounces at ecs.soton.ac.uk
> ------------------------------
>
>
>
> Hi,
>
> I'd like to insert irstats on abstract/detail page. Is there any guide hoq
> to make it?
>
> Thank you
>
> Best Regards,
> Agung P.W
>
> --
> Life isn't valuable if you don't have someone to care*** 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/
>
>


-- 
Life isn't valuable if you don't have someone to care
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20141205/94fbbaa3/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20141205/94fbbaa3/attachment-0001.gif