[EP-tech] FW: Citation Import Plugin Error

Mark Gregson mark.gregson at qut.edu.au
Tue Nov 6 00:24:39 GMT 2012



From: Mark Gregson
Sent: Tuesday, 6 November 2012 10:24 AM
To: 'Sheraaz Buksh'
Subject: RE: Citation Import Plugin Error

I'm glad you got that sorted out - I've committed that path change to trunk.

Regarding the Google Scholar plugin, we are not using ourselves so I don't know whether it is still working.  It's a fragile plugin since it is just screen-scraping. A quick test here suggests that the first request for a record will work, but the second will not, ironically because it scrapes from a different page (now changed) that was deemed to be a safer choice! That should be easily patched by the look of it.

The import plugins actually import data into the citation dataset.  A function in datasets.pl is hooked to the EP_TRIGGER_CREATED trigger and so is called on the creation of new citation data and inserts the latest citation count into the relevant eprint record.

The import script should output something like this when --verbose is used:
Starting EPrints Repository.
Connecting to DB ... done.
Item parsed.
Imported gscholar 129
Ending EPrints Repository.

You can confirm that no data has been imported by querying the citation table.

You're going to have to insert some debugging statements to see what path the code is following. I suggest starting at line 25 in import_citationdata to ensure that the plugin is not failing silently.

Mark


From: Sheraaz Buksh [mailto:sheraaz.a.buksh at usp.ac.fj]
Sent: Friday, 2 November 2012 2:09 PM
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Cc: Mark Gregson
Subject: RE: Citation Import Plugin Error

Hi

Thank you for your input. I have managed to fix the previous issue. the plugin was pointing to a /usr/local/eprints/perl_lib directory while my installation is at /opt/eprints3/perl_lib/. Anyway changing that fixed the issue.

However I am now stuck with something else. I try to run the import_citationdata command and it outs this for me;

Starting EPrints Repository.
Connecting to DB ... done.
Ending EPrints Repository.

I suppose this command will import the citation numbers from google scholar into the eprints table in the gscholar fields for eprint ids listed in a file. But when I run a query it gives NULL. I have also included the pin <epc:print expr="scopus_impact"/> in my summary_page.xml but nothing is shown there.

Any ideas will be greatly appreciated.


Regards

Sheraaz Buksh

IT Officer
Office of the Pro-Vice Chancellor (Research & International)
Research Office
The University of the South Pacific
Laucala Campus, Suva, Fiji Islands
Ph: (679) 323 2316
Fax: (679) 323 1504
Website: www.research.usp.ac.fj/research-staff

[cid:image002.jpg at 01CDBBFE.EBC73240]<http://www.psi2013.usp.ac.fj/>






From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Mark Gregson
Sent: 25 October 2012 6:45 PM
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Re: Citation Import Plugin Error

Hi Sheraaz

What version of EPrints are you running?

The first thing to check is that the plugin and its parent class are both in the correct location, e.g., /opt/eprints3/perl_lib/EPrints/Plugins/Import/ and /opt/eprints3/perl_lib/EPrints/Plugins/Import/CitationService/.

Then check that archive/cfg/cfg.d/gscholar.pl exists and defines search_cites and search_title functions.

You might want to check that the eprints user has permission to read all of those files.

After that check that WWW::Mechanize::Sleepy is installed.

Cheers
Mark

Mark Gregson | Applications and Development Team Leader
Library eServices | Queensland University of Technology
Level 3 | R Block | Kelvin Grove Campus | GPO Box 2434 | Brisbane 4001
Phone: +61 7 3138 3782 | Web: http://eprints.qut.edu.au/<http://www.qut.edu.au/>
ABN: 83 791 724 622
CRICOS No: 00213J


From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Sheraaz Buksh
Sent: Thursday, 25 October 2012 12:05 PM
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Citation Import Plugin Error

Hi there

I have setup the citation import plugin on my repository however when running the import_citationdata or update_citatationdata commands I ran into the following error

Starting EPrints Repository.
Connecting to DB ... done.
Plugin 'Import::CitationService::GScholar' not found.
Ending EPrints Repository.

I have tried to debug the import_citationdata  file and it seems it fails  at the below given code.

$plugin = $session->plugin(
                $pluginmap->{$datasetid},
                Handler => $handler,
                net_retry => {
                        max => $net_retry_max,
                        interval => $net_retry_interval,
                },
                parse_retry => {
                        max => $parse_retry_max,
                        interval => $parse_retry_interval,
                },
        );

Any ideas will be greatly appreciated.

Regards

Sheraaz Buksh

IT Officer
Office of the Pro-Vice Chancellor (Research & International)
Research Office
The University of the South Pacific
Laucala Campus, Suva, Fiji Islands
Ph: (679) 323 2316
Fax: (679) 323 1504
Website: www.research.usp.ac.fj/research-staff

[cid:image003.jpg at 01CDBBFE.EBC73240]<http://www.psi2013.usp.ac.fj/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20121106/85af5051/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 12361 bytes
Desc: image002.jpg
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20121106/85af5051/attachment-0002.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 12383 bytes
Desc: image003.jpg
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20121106/85af5051/attachment-0003.jpg 


More information about the Eprints-tech mailing list