EPrints Technical Mailing List Archive
Message: #00119
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: IRStats installation problem -- how to update
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: IRStats installation problem -- how to update
- From: Jon Hallett <Jon.Hallett@uwe.ac.uk>
- Date: Wed, 7 Mar 2012 10:45:17 +0000
Hi Alex, The trick is that that code snippet has to be added to eprint_render.pl at a very specific place to ensure that $links has already been declared. If you have a look at eprint_render.pl, you should see these lines near the bottom: my $links = $session->make_doc_fragment(); $links->appendChild( $session->plugin( "Export::Simple" )->dataobj_to_html_header( $eprint ) ); $links->appendChild( $session->plugin( "Export::DC" )->dataobj_to_html_header( $eprint ) ); Add that code snippet immediately after those and you should be good. Thanks, Jon Hallett Library IT Manager Library Services UWE Bristol jon.hallett@uwe.ac.uk -----Original Message----- Message: 6 Date: Wed, 07 Mar 2012 09:35:01 +0000 From: Alex Birchall <a.birchall@mdx.ac.uk> Subject: [EP-tech] IRStats installation problem -- how to update eprint_render.pl to add IRStats summary graphs to item summary pages? To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk> Message-ID: <FC5D3834842C2945916F894F40C7B21B865DEDACDE@WGFP-EXMAV1.uni.mdx.ac.uk> Content-Type: text/plain; charset=us-ascii 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@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@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 ------------------------------ _______________________________________________ Eprints-tech mailing list Eprints-tech@ecs.soton.ac.uk http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech End of Eprints-tech Digest, Vol 42, Issue 19 ********************************************
- Prev by Date: [EP-tech] import of valid(!) PMID: 22058585 [PubMed] fails
- Next by Date: [EP-tech] Re: REF2014 Plug-in installation failed because of duplicate fields
- Previous by thread: [EP-tech] import of valid(!) PMID: 22058585 [PubMed] fails
- Next by thread: [EP-tech] Re: IRStats installation problem -- how to update
- Index(es):