EPrints Technical Mailing List Archive

Message: #05183


< 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


Hi George,

I think I might be that maintainer, although "maintainer" seems a bit too active a word. I'm not in at work today, so I won't be able to look into your warnings and error until after the weekend. In the meantime, though, I should probably point you towards the GitHub repository of the citation-import plugin: https://github.com/QUTlib/citation-import

Things have changed a great deal since the plugin was uploaded to file.eprints.org (not least being the release of EPrints 3.3 and all its concomitant framework changes); I may have to look into engineering an updated release.

Cheers
-- 
Matthew Kerwin  |  Senior Web Developer  |  Applications & Development Team  |  Library eServices  |  Queensland University of Technology  |  Level 3, R Block, Kelvin Grove  |  ph 3138 3910  |  matthew.kerwin@qut.edu.au  |  CRICOS No 00213J
________________________________________
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of George Mamalakis <mamalos@eng.auth.gr>
Sent: 26 November 2015 21:53
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: Citation count plugin

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



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