EPrints Technical Mailing List Archive
Message: #05180
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Citation count plugin
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Citation count plugin
- From: George Mamalakis <mamalos@eng.auth.gr>
- Date: Thu, 26 Nov 2015 13:53:17 +0200
OK,I found the problem, the configuration files of the plugin don't enable it anywhere, so I had to add the relevant code manually. More specifically, I added:
$c->{plugins}{"Import::CitationService::Scopus"}{params}{disable} = 0; $c->{plugins}{"Import::CitationService::WoS"}{params}{disable} = 0; $c->{plugins}{"Import::CitationService::GScholar"}{params}{disable} = 0;in file archives/myrepo/cfg/cfg.d/datasets_citation-count.pl, after the first "use" statement.
The problem now is that after enabling the plugins, I get a new error: $ ~/lib/epm/citation-count/bin/import_citationdata --verbose myrepo scopus"my" variable $mesg masks earlier declaration in same scope at (eval 156) line 114, <DATA> line 751. Possible attempt to put comments in qw() list at (eval 162) line 18, <DATA> line 751. defined(@array) is deprecated at /usr/share/eprints3/lib/plugins/EPrints/Plugin/Screen/BulkAction/Remove.pm line 46.
(Maybe you should just omit the defined()?) Starting EPrints Repository. Connecting to DB ... done.Use of uninitialized value in subroutine entry at /usr/share/eprints3/perl_lib/EPrints/MetaField/Id.pm line 50. Use of uninitialized value in subroutine entry at /usr/share/eprints3/perl_lib/EPrints/MetaField/Id.pm line 50.
[myrepo scopus] Warning: No records found for EPrint ID 11.Use of uninitialized value in subroutine entry at /usr/share/eprints3/perl_lib/EPrints/MetaField/Id.pm line 50. Use of uninitialized value in subroutine entry at /usr/share/eprints3/perl_lib/EPrints/MetaField/Id.pm line 50. [myrepo scopus] Error: Unhandled exception in Import::CitationService::Scopus: Can't locate object method "epdata_to_dataobj" via package "EPrints::LogHandler" at /usr/share/eprints3/perl_lib/EPrints/Plugin/Import.pm line 310.
Ending EPrints Repository.I'll try to ask the plugin's maintainer about what to do with this error, but any advise is more than welcome!
George. On 25/11/2015 06:00 μμ, George Mamalakis wrote:
Hi all, I'm trying to install and configure the citation-count plugin in my EPrints 3.3.14 from: http://files.eprints.org/815/ I've tried to make things more tidy when installing it, so in my system, the files I added looked like this: ~eprints/archives/myrepo/cfg/cfg.d/datasets_citation-count.pl ~eprints/archives/myrepo/cfg/cfg.d/eprint_fields_citation-count.pl ~eprints/archives/myrepo/cfg/cfg.d/gscholar.pl ~eprints/archives/myrepo/cfg/cfg.d/scapi.pl ~eprints/archives/myrepo/cfg/cfg.d/scapi.pl~ ~eprints/archives/myrepo/cfg/cfg.d/user_roles_citation-count.pl ~eprints/archives/myrepo/cfg/cfg.d/wos.pl ~eprints/archives/myrepo/cfg/citations/citation/default.xml ~eprints/archives/myrepo/cfg/citations/eprint/summary_page.xml~ ~eprints/lib/epm/citation-count/bin/import_citationdata ~eprints/lib/epm/citation-count/bin/import_citationdata~ ~eprints/lib/epm/citation-count/bin/update_citationdata ~eprints/lib/epm/citation-count/bin/update_citationdata~ ~eprints/lib/epm/citation-count/cfg/lang/en/phrases/citations.xml ~eprints/lib/plugins/EPrints/DataObj/CitationDatum.pm ~eprints/lib/plugins/EPrints/LogHandler.pm ~eprints/lib/plugins/EPrints/Plugin/Import/CitationService.pm ~eprints/lib/plugins/EPrints/Plugin/Import/CitationService/GScholar.pm ~eprints/lib/plugins/EPrints/Plugin/Import/CitationService/Scopus.pm ~eprints/lib/plugins/EPrints/Plugin/Import/CitationService/WoS.pm I've configured scopus (scapi.pl) with the codes that I was given. The difference from what the plugin's installation instructions (found in http://files.eprints.org/815/2/README) directed me to do is that I haven't copied the files from the plugin's /lib directly to ~eprints/lib folder, instead I've copied them in folders ~eprints/lib/epm/citation-count and ~eprints/lib/plugins. When I tried to run: $ ./lib/epm/citation-count/bin/import_citationdata --verbose myrepo scopus I got no error message, but the command returned in a couple of seconds, which is way too fast for my repo's size (~15K of eprints). So I inserted a few print commands inside ~eprints/lib/epm/citation-count/bin/import_citationdata only to find out that no $session->plugin is getting defined (line 232), so the code goes into the condition of line 244 (if ( !defined( $plugin ) )) without printing any message. I've copied ~eprints/lib/plugins/EPrints/Plugin/Import/CitationService* to ~eprints/perl_lib/EPrints/Plugin/ in case this was the problem without any luck. Any help will be greatly appreciated! Thanks all in advance! George.
-- 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
- References:
- [EP-tech] Citation count plugin
- From: George Mamalakis <mamalos@eng.auth.gr>
- [EP-tech] Citation count plugin
- Prev by Date: [EP-tech] Re: Permission denied error installing plugin
- Next by Date: [EP-tech] Training Video: Browse View Configuration
- Previous by thread: [EP-tech] Citation count plugin
- Next by thread: [EP-tech] Re: Citation count plugin
- Index(es):