[EP-tech] IRStats installation problem -- how to update eprint_render.pl to add IRStats summary graphs to item summary pages?
Alex Birchall
a.birchall at mdx.ac.uk
Wed Mar 7 09:35:01 GMT 2012
Hi,
I am using EPrints 3.2.8 (Apple Crumble).
In the installation instructions for IRStats, it says:
5 Integrating IRStats (optional)
----------------------------------
i) Add IRStats download graphs to individual item summary pages
Add the following to archives/ARCHIVEID/cfg/cfg.d/eprint_render.pl:
if( !$preview )
{
# IRSTATS CODE STARTS HERE
if ($session->get_repository->can_call('irstats_abstract_content'))
{
$page->appendChild($session->get_repository->call('irstats_abstract_content', $session, $eprint));
}
# END IRSTATS
$links->appendChild( $session->plugin( "Export::Simple" )->dataobj_to_html_header( $eprint ) );
$links->appendChild( $session->plugin( "Export::DC" )->dataobj_to_html_header( $eprint ) );
}
return( $page, $title, $links );
To enable, run the following command and then restart apache:
$ cd /opt/eprints3
$ bin/epadmin refresh_abstracts ARCHIVEID
__
But the output from bin/epadmin refresh_abstracts ARCHIVEID is as follows:
eprints at zeprints:~/bin$ ./epadmin refresh_abstracts mdxrep1
------------------------------------------------------------------
---------------- EPrints System Warning --------------------------
------------------------------------------------------------------
Failed to load config module for mdxrep1
------------------------------------------------------------------
error in /usr/share/eprints3/archives/mdxrep1/cfg/cfg.d/eprint_render.pl:
Global symbol "$links" requires explicit package name at /usr/share/eprints3/archives/mdxrep1/cfg/cfg.d/eprint_render.pl line 400.
Global symbol "$links" requires explicit package name at /usr/share/eprints3/archives/mdxrep1/cfg/cfg.d/eprint_render.pl line 401.
Global symbol "$title" requires explicit package name at /usr/share/eprints3/archives/mdxrep1/cfg/cfg.d/eprint_render.pl line 404.
Global symbol "$links" requires explicit package name at /usr/share/eprints3/archives/mdxrep1/cfg/cfg.d/eprint_render.pl line 404.
------------------------------------------------------------------
Use of uninitialized value in concatenation (.) or string at /usr/share/eprints3/perl_lib/EPrints/Repository.pm line 391.
Use of uninitialized value in concatenation (.) or string at /usr/share/eprints3/perl_lib/EPrints/Repository.pm line 644.
Could not open /workflows at /usr/share/eprints3/perl_lib/EPrints/Workflow.pm line 494.
eprints at zeprints:~/bin$
Any suggestions on how to resolve this issue most gratefully received.
Thank you.
Alex Birchall
Library Systems Manager
Ext 5235
Mob 07765 237 570
More information about the Eprints-tech
mailing list