• People Directory
  • Feed Builder
Quick Search
  1. Dashboard
  2. Public Information
  3. …
  4. Home
  5. Software Documentation
  6. NameTag Documentation
  • Dashboard
  • Browse
    • Pages
    • Blog
    • Labels
    • Attachments
    • Bookmarks
    • Mail
    • Advanced
    • Activity
    • Confluence Gadgets
  • Log In
  • Tools
    • Attachments (0)
    • Page History
    • E-mail E-mail
    • Restrictions
    • Info
    • Link to this Page…
    • View Wiki Markup
Public Information

Collapse all
Expand all   Collapse all
  • Page restrictions apply
  • Added by Patrick Leary, last edited by Patrick Leary on May 26, 2009  (view change)
Comment:

NameTag Documentation

API Prefix: http://services.eol.org/namelink/doc/nametag_service.php


Paramaters:

callback
if specified, the response of this API will be a javascript function of the same name. The only argument of the function will be a JSON object representing the generated HTML.
callback=hello_world
hello_world({"html":""})
open_tag
if specified, HTML included here will be prepended to the found name string
a few variables can be included:
$ID : the position index of the name in the document
$FOUND_NAME : the string as appears in the document.  G. morhua will remain abbreviated for example
$COMPLETE_NAME : the unabbreviated form of the name

for example:
  open_tag = '<a ref="link_$ID" href="http://www.eol.org/search?q=$COMPLETE_NAME">';
  close_tag = '</a>';
close_tag
if specified, HTML included here will be appended to the found name string
a closing tag should be specified if an open_tag is provided - open tags will not be automatically closed
url
the URL of the page to be linked

Examples:

Add default tags around names in this document:

http://services.eol.org/namelink/doc/nametag_service.php?url=http://www.bioline.org.br/abstract?id=fb95003


Link names to Google Search:

http://services.eol.org/namelink/doc/nametag_service.php?open_tag=%3Ca+href%3D%27http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3D%24COMPLETE_NAME%27%3E&close_tag=%3C%2Fa%3E&url=http://www.bioline.org.br/abstract?id=fb95003


Try to find the Wikipedia page for a name:

http://services.eol.org/namelink/doc/nametag_service.php?open_tag=%3Ca+href%3D%27http%3A%2F%2Fen.wikipedia.org%2Fwiki%2F%24COMPLETE_NAME%27%3E&close_tag=%3C%2Fa%3E&url=http://www.bioline.org.br/abstract?id=fb95003





Labels parameters

Labels

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Powered by Atlassian Confluence, a Confluence theme by RefinedWiki