EPrints Technical Mailing List Archive

Message: #02053


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

[EP-tech] Re: IRStats2 Beta


Hi Seb,

 

we also installed IRStats2 Beta at http://epub.ub.uni-muenchen.de/cgi/stats/report/. Here are my remarks:

 

1.       I am wondering about the results. Looking at the report you see “Gottfried Keller: Kleider machen Leute” (Author: Rolf Selbmann) is one of the most downloaded publications. But the author should also occur in the “Top author” list. But his name cannot be found in that list. The set is defined as follows:

       {

                    'name' => 'authors',

                    'field' => 'creators_name',

       },

       because most of the creators have no populated ID-field.

2.       If you go to “Filter items” you will get a lot of author names several times. I suppose it depends on the number of the publication the author has published in the archive. It makes it nearly impossible to get all the downloads of one author in one report.

3.       Just cosmetic: If a name contains a hyphen like “Hans-ulrich” the name part after the hyphen is changed to lower case.

 

Hope this remarks are helpful for you.

 

Cheers,

Volker

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Sebastien Francois
Sent: Tuesday, June 25, 2013 5:10 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: IRStats2 Beta

 

Jose,

Does your trigger looks like the block of code below (I know there were a few different versions hanging around):

$c->add_trigger( EP_TRIGGER_DYNAMIC_TEMPLATE , sub
{
    my( %args ) = @_;

    my( $repo, $pins ) = @args{qw/ repository pins/};

    $pins->{"utf-8.head"} = "" if( !exists $pins->{"utf-8.head"} );

    my $protocol = $repo->get_secure ? 'https':'http';

    $pins->{"utf-8.head"} .= <<GCHARTS;

<!-- IRStats2 -->
<script type="text/_javascript_" src="" <!-- No script --></script>
<script type="text/_javascript_">google.load("visualization", "1", {packages:["corechart", "geochart"]});</script>
<!-- end IRStats2 -->
GCHARTS

    return EP_TRIGGER_OK;
} );



If not, could you replace with the code above & re-try please?

Thanks again!
Seb


On 25/06/13 15:47, Jose Martin wrote:

Hi Seb,
 
1- Yes, I did restart Apache
 
2- The <epc:pin ref="head"/> is in place. I am using a template inside a theme, but that should not interfere, I guess.
 
3- Yes, it is, but when loading the cgi/stats/report page a Dumper($pins) outputs:
 
  $VAR1 = {
          'head' => bless( do{\(my $o = '47743427226608')}, 'XML::LibXML::DocumentFragment' ),
          'page' => bless( do{\(my $o = '47743215127744')}, 'XML::LibXML::DocumentFragment' ),
          'languages' => bless( do{\(my $o = '47743427226496')}, 'XML::LibXML::DocumentFragment' ),
          'title' => bless( do{\(my $o = '47743215188816')}, 'XML::LibXML::DocumentFragment' ),
          'login_status' => bless( do{\(my $o = '47743427161872')}, 'XML::LibXML::Element' )
        };
 
   so it seems to never get into the if block that writes the IRStats2 scripts.
 
Any other useful debugging that might help?
 
My pleasure testing IRStats 2...   It looks great!
 
Thanks,
 
  Jose
 
 
-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Sebastien Francois
Sent: 25 June 2013 15:33
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: IRStats2 Beta
 
Hi Jose,
 
A few pointers:
 
1- did you restart Apache? this is necessary for the trigger to be loaded
 
2- in your template file(s) (usually under archives/<id>/cfg/lang/en/templates), do you have the following line:
 
<epc:pin ref="head"/>
 
in your <head> section?
 
That "pin" was added in 3.3 but may be missing on some repositories upgraded from older EPrints version.
 
3- is the trigger called by EPrints? You could for instance add a "print STDERR" debug message inside the trigger to see if it's properly called.
 
 
Thanks to everyone for testing IRStats2, I will be updating the 
code/writing a FAQ soon to tackle those issues.
 
Kind regards,
Seb.
 
 
On 25/06/13 15:14, Jose Martin wrote:
Hi Seb,
 
I have installed IRStats2 on a 3.3.10 and it does not show the Charts (keeps displaying the "Loading..." image).
 
I used the irstats2-0.0.3.epm package and upgraded Prototype to 1.7.1 applying https://github.com/eprints/eprints/commit/f7a9088aae29b8732cb5d8edd83d17e94f069e63
 
The browser reports no network or console errors, although I have noticed that it does not request "jsapi" from Google as does http://files.eprints.org/cgi/stats/report. This looks like should be triggered in z_irstats2.pl, but does not seem to happen. Any ideas?
 
BTW, irstats2-0.0.3.epm did not include the images/irstats2/datepicker folder.
 
Thanks,
 
   Jose
 
 
-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Sebastien Francois
Sent: 30 May 2013 16:18
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] IRStats2 Beta
 
Hi all,
 
I have added IRStats2 to the eprints GitHub so you may now download and use/test it.
 
EPrints 3.3 users may use the bazaar package available from there:
https://github.com/eprints/irstats2/blob/master/epm/irstats2-0.0.2.epm
(note that it's not yet live on the Bazaar-store). Even so you can install the package easily this way, you still need to run a script to process the stats. That is not yet automated.
 
EPrints 3.2 users will have to copy files by hand, it's pretty straight-forward and the INSTALL file contains some instructions.
 
It's not quite the final/stable release yet but it has been thoroughly tested on a few "real" repositories and it's unlikely to break a repository anyway.
 
I hope you'll enjoy, please contribute (ideas / comments / bugs etc) directly to me or to GitHub.
 
Seb.
 
PS: yes, it can run in parallel to IRStats1.
*** 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/
 
*** 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/
 
*** 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/
 
*** 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/