EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #05255


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

[EP-tech] Re: IRStats2 embedding stats in abstract?


Hi Christer,

And thanks for your answer! Sorry it took me so long to reply, but I was very busy. I tried your solution of commenting out the <epc> from my summary_pagel.xml and adding the appropriate stuff in my z_irstats2.pl and it seems to work a bit better, but I'm still getting some warnings when generating abstracts:

Use of uninitialized value $sec in numeric ge (>=) at /usr/share/perl/5.20/Time/Local.pm line 119.
Use of uninitialized value $sec in numeric lt (<) at /usr/share/perl/5.20/Time/Local.pm line 119.
Use of uninitialized value $sec in addition (+) at /usr/share/perl/5.20/Time/Local.pm line 134.
Use of uninitialized value $sec in numeric ge (>=) at /usr/share/perl/5.20/Time/Local.pm line 119.
Use of uninitialized value $sec in numeric lt (<) at /usr/share/perl/5.20/Time/Local.pm line 119.
Use of uninitialized value $sec in addition (+) at /usr/share/perl/5.20/Time/Local.pm line 134.

And the stats shown are not the same as those in my /cgi/stats/report. At least, though, in one desposit that has 2 downloads in my report (due to the fact that it has two files that I downloaded), the download section of the summary shows 1. The rest (which are have a download value of 1 in my report because it's a test repo where I only have access to) are shown to have 0 downloads, so I guess that something is very wrong in my config.

Thanks again for your help and any other help is more than welcome!

George.

On 04/12/2015 11:49 πμ, Christer Enkvist wrote:

Hi,

 

I encountered the same problem when adding <epc> into abstr.xml, an alternative is adding:

 

$c->{plugins}->{"Screen::EPrint::Box::Stats"}->{params}->{disable} = 0; #enable Stats boxes

$c->{plugins}->{"Screen::EPrint::Box::Stats"}->{appears}->{summary_bottom} = 100; # show them at the bottom of the summary page (in position '100' - see the link below for more details)

$c->{plugins}->{"Screen::EPrint::Box::Stats"}->{appears}->{summary_right} = undef; # not in their default location on the right

$c->{plugins}->{"Screen::EPrint::Box::Stats"}->{params}->{render_collapsed} = 1; #by default hide content with

 

Into the cfg/cfg.d/z_irstats2.pl file populates a nice download box at the bottom of every summary page.

 

/christer

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of George Mamalakis
Sent: den 30 november 2015 16:24
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] IRStats2 embedding stats in abstract?

 

Hi all,

I'm following the wiki wrt IRStats2 configuration and I have a few questions. The one that is concerning me right now is that I don't seem to manage displaying the stats in my abstract page (aka embedding stats in summary page). I've followed the "Embedding Stats on Abstract Pages" section where it says to include:

<epc:phrase ref="lib/irstats2:embedded:summary_page:eprint:downloads"/>

somewhere at the bottom of summary_page.xml, I've done it but, I restarted apache, regenerated abstracts, etc., and when I access my pages I see a new "Downloads" section, that -sadly- only contains the phrase "Downloads per month over past year" without any numbers in it. When regenerating abstracts (manually) I get the message:

missing parameter "eprintid" when making phrase "lib/irstats2:embedded:summary_page:eprint:downloads"

which is kind of strange, but I'm not even sure that the irstats2 database is correctly populated, since even though I specifically access eprints and their documents in order to change stats and run the script manually to update them, I see no differences in my cgi/stats/report/ which makes me think that something goes terribly wrong...but that's my other question... :).

Thanks for any help in advance,

George

PS. It's an EPrints 3.3.14 installation on a Debian box, IRStats2 is installed via the bazaar package, as instructed in the wiki and irstats2 github page (going by the book).
PS2. I haven't change IRstats2 default config in cfg/cfg.d yet

-- 
George Mamalakis
 
IT and Security Officer, 
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)
 
School of Electrical and Computer Engineering
Aristotle University of Thessaloniki
 
phone number : +30 (2310) 994379
 
 


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


-- 
George Mamalakis

IT and Security Officer, 
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)

School of Electrical and Computer Engineering
Aristotle University of Thessaloniki

phone number : +30 (2310) 994379