Difference between revisions of "Files/HackParacite"

From EPrints Documentation
Jump to: navigation, search
Line 16: Line 16:
 
Inside you find:
 
Inside you find:
  
- TugnoliCilea.pm
+
1)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 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:
+
To install it:  this package is under the ParaTools::CiteParser so you have to copy it under the CiteParser directory in your Perl installation
  This package is under the ParaTools::CiteParser so you have to copy it under the CiteParser directory in your Perl installation
+
  
  
- TugnoliCileaOpenURL.pm
+
2)TugnoliCileaOpenURL.pm
Use it:
+
To use it:This package is like the Paratools::OpenURL package but it has some features:
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
 
  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
+
  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.
  
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
  
  
To install it:
+
3)tugno.pl
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.
 
It is a script to check the modules.
 
 
To install: this script need the you set the -I parameter with your Eprints perl library.
 
To install: this script need the you set the -I parameter with your Eprints perl library.

Revision as of 08:57, 30 May 2007

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:

1)TugnoliCilea.pm

To 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


2)TugnoliCileaOpenURL.pm To 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


3)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.