Difference between revisions of "Files/HackParacite"

From EPrints Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
== A better Paracite (the 'SEEK' botton) ==
 
== A better Paracite (the 'SEEK' botton) ==
  
If you write an e-mail on a static web page, you are sure to recive a huge ammount of spam.
+
Eprints 2 tries to parse citation to search the citeted work into internet.
But we want to allow authors to write to the editor of his country.
+
The pieces of code used are the cgi paracite (the file your_basic_Eprints2_dir/cgi/paracite) and
To do this, Josep-Manuel Rodríguez-Gairín wrote a PHP form to 'protect' editors e-mail addresses.
+
the Paratools modules (the modules in  your_basic_Eprints2_dir/perl_lib/ParaTools).
  
The script sends a mail to a list of addresses defined in a config file (for
+
You see the result clicking the 'SEEK' botton near the citation
general purposes as main page) but also can send mail to a specific editor
+
searching your email in users table of eprints database.
+
It can use the SQL 'users' table and also an extra
+
list of e-mail.
+
  
The syntax is
+
Parse a citation is a very difficult task and many times the results is poor and you don't find
http://xxx.yyy.kk/contact.php?editor=id_of_the_editor
+
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.
  
There is a  javascript email pre-validation and php post-validation.
 
There is also a check against spam robots.
 
  
You can download the script from here: http://eprints.rclis.org/fixsoft/eprints_contact_form.zip
+
You can download hack from from here: http://files.eprints.org/48/1/Cilea_paratools.tar.gz
  
You can ask help to Josep-Manuel Rodríguez-Gairín, http://bd.ub.es/pub/rzgairin
+
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.

Revision as of 08:49, 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:

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