Extension:Mwncbi
|
|
WARNING: the code or configuration described here poses a major security risk.
Problem: Vulnerable to Cross-site scripting attacks, because it passes user input directly to the browser. This may lead to user accounts being hijacked, among other things. |
|
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 |
|
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
- http://plindenbaum.blogspot.com/2010/08/mwncbi-mediawiki-extension-loading.html. My blog post (todo)
