IUBio GIL .. BIOSCI/Bionet News .. Biosequences .. Software .. FTP

html in SRS

Tim Cutts timc at chiark.greenend.org.uk
Mon Oct 4 03:46:41 EST 1999

In article <1999Oct2.102038 at wehi>,
Janice Coventry, Walter and Eliza Hall Institute <janice at wehi.edu.au> wrote:
>Hello all
>I am trying to add a new database where I want the results to appear as a table
>but when the individual entries are chosen I want to define the html for their
>appearance.  Is there any way to do this, because as soon as I define the html
>the fields do not appear in the table?

You need to add parsers to your .is file which describe how to rewrite
fields and format them.  You do this by specifying the 't' attribute to
$In.  Take, for example, the rule which generates medline links in
Genbank entries:

  h_medline:~ {$In:[fields c:refmed t:html]}
                tag /[0-9]+/ {$Rep:{$ParStr:medlineR $Ct $Ct}} ~

This replaces the text for the medline ID with a hotlink to the Medline
WWW server.

If you wanted just to change the formatting, you could do something

  h_medline:~ {$In:[fields c:refmed t:html]}
  		tag /[0-9]+/ {$Rep:"<B><I>$Ct</I></B>"} ~

I think the input token table needs to be fields for this to work, but
I'm not sure why.


More information about the Bio-srs mailing list

Send comments to us at archive@iubioarchive.bio.net