Skip to content

Instantly share code, notes, and snippets.

@wwood
Created March 24, 2009 11:50
Show Gist options
  • Save wwood/84049 to your computer and use it in GitHub Desktop.
Save wwood/84049 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
names: ["texmed_pmid"],
arguments: [{role: 'object', nountype: noun_arb_text}],
homepage: "http://www.bioinformatics.org/texmed",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Retrieve the bibtex entry for a pubmed identifier.",
preview: "Retrieve the bibtex entry for a pubmed identifier.",
execute: function(args) {
var urlString = "";
var text = new String(args.object.text);
urlString = "http://www.bioinformatics.org/texmed/cgi-bin/list.cgi?PMID="+text;
Utils.openUrlInBrowser(urlString);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment