[EP-tech] Antwort: API IRStats2

martin.braendle at id.uzh.ch martin.braendle at id.uzh.ch
Wed Jan 7 12:04:18 GMT 2015

Bonjour Jean-Marie,

you need to add a

'range': '_ALL_',

before 'datatype': 'downloads', then it should work. Don't forget to carry
out generate_static .

Best regards,


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

Von:	Jean-Marie Le Bechec <Jean-Marie.LeBechec at inp-toulouse.fr>
An:	"eprints-tech at ecs.soton.ac.uk" <eprints-tech at ecs.soton.ac.uk>
Datum:	05/01/2015 12:46
Betreff:	[EP-tech]  API IRStats2
Gesendet von:	eprints-tech-bounces at ecs.soton.ac.uk

hello all and best wishes for 2015!

I try to show some statistics on the home page of my Eprints but without
success.. I tried this code:

<div id="mygraph" class="irstats2_googlegraph"/>

<script type="text/javascript">
         new EPJS_Stats_GoogleGraph( {
                'context': { 'datatype': 'downloads' },
                'options': { 'graph_type': 'column', 'container_id':
'mygraph', 'view': 'Google::Graph', 'show_average': '1', 'date_resolution':
'month' }


<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' }
        } );


but it does not find a resulting output : "No data found". or it draws a
blank graph. Has anyone tried to insert these codes?



Jean Marie Le Bechec
Service Commun de la Documentation
Responsable ingenierie documentaire
Direction du Systeme d'Information
Referent Etudes

Institut National Polytechnique de Toulouse
6 allee Emile Monso - bp 34038 -
31029 Toulouse cedex 4
Tel : 05 34 32 31 16
Mail : lebechec at inp-toulouse.fr
*** 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/20150107/5a998ce0/attachment.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/20150107/5a998ce0/attachment.gif 

More information about the Eprints-tech mailing list