Files/HackParacite

From EPrints Documentation
Revision as of 08:49, 30 May 2007 by Tajoli (Talk | contribs)

Jump to: navigation, search

A better Paracite (the 'SEEK' botton)

Eprints 2 tries to parse citation to search the citeted work into internet. The pieces of code used are the cgi paracite (the file your_basic_Eprints2_dir/cgi/paracite) and

the Paratools modules (the modules in  your_basic_Eprints2_dir/perl_lib/ParaTools).

You see the result clicking the 'SEEK' botton near the citation

Parse a citation is a very difficult task and many times the results is poor and you don't find anything. So we thing that is a good option to extract the web link from the citation (if present) and to insert the link under the 'SEEK' botton.


You can download hack from from here: http://files.eprints.org/48/1/Cilea_paratools.tar.gz

Inside you find:

- TugnoliCilea.pm Use it:

The package inherits Standard.pm and overrides parse() method in order to return a hash with 2 keys: type and value.
If type field=0 the value field contains a metadata hash, else if type field=1 the value field contains a url


To install it:
This package is under the ParaTools::CiteParser so you have to copy it under the CiteParser directory in your Perl installation


- TugnoliCileaOpenURL.pm

Use it:
This package is like the Paratools::OpenURL package but it has some features:
a) returns a URL if the reference contains a URL, otherwise it will return an OpenURL 1.0
b) returns an OpenURL using the identifier found in the metadata

This package is compatible with TugnoliCilea.pm, in fact it uses the $metadata obtained using the parse() method of the module TugnoliCilea.pm


To install it:
This package is under the ParaTools so you have to copy it under the Paratools directory in your Perl installation


-tugno.pl It is a script to check the modules.

To install: this script need the you set the -I parameter with your Eprints perl library.