EPrints Technical Mailing List Archive

Message: #03747


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Antwort: API IRStats2


Hi Martin,

thanks ! you're right.

Jean-Marie

Le 07/01/2015 13:04, martin.braendle@id.uzh.ch a écrit :

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,

Martin

--
Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Winterthurerstr. 190
CH-8057 Zürich

mail: martin.braendle@id.uzh.ch
phone: +41 44 63 56705
fax: +41 44 63 54505
http://www.id.uzh.ch

Inactive hide details for Jean-Marie Le Bechec
          ---05/01/2015 12:46:16---hello all and best wishes for 2015! I
          try to show some Jean-Marie Le Bechec ---05/01/2015 12:46:16---hello all and best wishes for 2015! I try to show some statistics on the home page of my Eprints but

Von: Jean-Marie Le Bechec <Jean-Marie.LeBechec@inp-toulouse.fr>
An: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Datum: 05/01/2015 12:46
Betreff: [EP-tech]  API IRStats2
Gesendet von: eprints-tech-bounces@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_">
document.observe("dom:loaded",function(){
         new EPJS_Stats_GoogleGraph( {
                'context': { 'datatype': 'downloads' },
                'options': { 'graph_type': 'column', 'container_id': 'mygraph', 'view': 'Google::Graph', 'show_average': '1', 'date_resolution': 'month' }
        });
});
</script>


and

<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>



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

Thanks,

Jean-Marie

--

***********************************************
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@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/



*** 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/

-- 

***********************************************
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@inp-toulouse.fr
***********************************************