From: bortzmeyer@pasteur.fr (Stephane Bortzmeyer)
Subject: Small contribution: two scripts
Date: 14 Feb 1996 16:02:37 GMT
Organization: Institut Pasteur, Paris, France
I wrote a small bit of Perl code to transform url-references attributes
in selectable hyperlinks. If you want to have url-references as
hyperlinks, modify your BrokerQuery.cf this way:
s/^Matched line:\s*//;
# Make URL-references selectable
/^url-references\#\s*(.*)/;
$url_references = $1;
if ($url_references =~ m#(http|ftp|gopher)://([A-Za-z\-\.0-9]+)(:[0-9]+|)#) {
s/^url-references\#\s*.*/url-references\# $url_references<\/A>/i;
}
# indent four spaces
s/^.*/ $&/;
You can check the result on our broker
. Try "Ebola" (the famous
virus) for instance. Do not forget to ask for "Display matched lines".
References : "5.4 Customizing the Broker's Query Result Set"