EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02441
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] integrating IRStat on items page
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] integrating IRStat on items page
- From: Ranju Upadhyay <Ranju.Upadhyay@nuim.ie>
- Date: Mon, 25 Nov 2013 10:23:07 +0000
Hi all, I have been trying to integrate IRStat (1.3) to items page on eprints 3.3.12, on the instructions 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 ); but this code gives error saying Error in configuration: Global symbol "$session" requires explicit package name (having added the lines to the right place i.e. after declaration of $links) I realized that in this version the $session has to be replaced with $repository for it to work i.e. # IRSTATS CODE STARTS HERE if ($repository->get_repository->can_call('irstats_abstract_content')) { $page->appendChild($repository->get_repository->call('irstats_abstract_content', $repository, $eprint)); } # END IRSTATS ( in case anyone gets stuck with the same error!!) Thanks Ranju Upadhyay National University of Ireland Maynooth. |
- Follow-Ups:
- [EP-tech] Re: integrating IRStat on items page
- From: sf2 <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: integrating IRStat on items page
- Prev by Date: [EP-tech] Re: IRStats Install
- Next by Date: [EP-tech] Re: integrating IRStat on items page
- Previous by thread: [EP-tech] IRStats Install
- Next by thread: [EP-tech] Re: integrating IRStat on items page
- Index(es):