Extension:Mwncbi

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Mwncbi

Release status: stable

Implementation Tag
Description Downloads asynchronously some records from the NCBI
Author(s) Pierre Lindenbaum
Last version 1.0 (2010-08-10)
MediaWiki Tested on 1.13.3
License No license specified
Download Project page

Git [Help]
Commit history

Check usage (experimental)


This Mediawiki extension downloads asynchronously some records from NCBI Gene, NCBI Pubmed and dbSNP

Contents

[edit] About

This extension creates a new handler for three new tags :<ncbigene/> , <ncbisnp> and <ncbipubmed>

Each of those tags download asynchronously a XML record from the NCBI (Gene, NCBI Pubmed or dbSNP) using NCBI-EFetch. The XML is then transformed to HTML on the client side using a XSLT transformation and inserted in the mediawiki page. As the XSLT processor is specific from Firefox I'm afraid this extension won't run for the other browsers. As I'm using XSLT, the stylesheets are easily modifiable and hence, the HTML rendering is truly customizable.

Warning: this extension currently only works for the Firefox Browser (tested with 3.6)

[edit] Screenshots

[edit] Usage

 <ncbigene id="112"/>
 <ncbisnp id="25"/>
 <ncbipubmed id="20686574"/>


[edit] Source

The source is available here: http://github.com/lindenb/mw4bio

[edit] Installation

Add...

require_once("$IP/extensions/mwncbi/mwncbi.php");

...to your LocalSettings.php file.

and copy the source content of http://github.com/lindenb/mw4bio/tree/master/extensions/mwncbi/ to

 $IP/extensions/mwncbi

[edit] Reference

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox