Skip to content

Instantly share code, notes, and snippets.

@gaurav
Created July 18, 2010 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaurav/480177 to your computer and use it in GitHub Desktop.
Save gaurav/480177 to your computer and use it in GitHub Desktop.
Nature Preceedings plugin for CiteULike, partial fix
Index: plugins/python/naturepreceedings.py
===================================================================
--- plugins/python/naturepreceedings.py (revision 581)
+++ plugins/python/naturepreceedings.py (working copy)
@@ -107,7 +107,7 @@
abs = abstract.renderContents().strip()
abs = re.sub(r'<[^>]+>','',abs)
abs = unescape(abs)
- print "abstract\t%s" % abs
+ print "abstract\t%s" % abs.encode('utf-8')
print "doi\t%s" % doi
print "end_tsv"
Index: plugins/descr/naturepreceedings.cul
===================================================================
--- plugins/descr/naturepreceedings.cul (revision 581)
+++ plugins/descr/naturepreceedings.cul (working copy)
@@ -136,5 +136,19 @@
author {Lomax Jane J {Jane Lomax}}
status ok
}
+test {http://precedings.nature.com/documents/4583/version/1} {
+ linkout {DOI {} 10.1038/npre.2010.4583.1 {} {}}
+ linkout {NATPRE 4583 1 {} {}}
+ type JOUR
+ doi 10.1038/npre.2010.4583.1
+ publisher {Nature Publishing Group}
+ formatted_url {DOI http://dx.doi.org/10.1038/npre.2010.4583.1}
+ formatted_url {{Nature Precedings} http://precedings.nature.com/documents/4583/version/1}
+ issue 713
+ title {Phyloinformatics in the age of Wikipedia}
+ journal {Nature Precedings}
+ abstract {This talk describes a mapping between the NCBI taxonomy database and Wikipedia. These two databases were chosen because the NCBI taxonomy contains all the taxa for which sequences are publicly available, and for many taxa Wikipedia is the first site returned in a Google search on that taxon’s scientific name. The NCBI web pages for nearly 53,000 NCBI taxa now have a link to the corresponding page in Wikipedia.}
+ author {Page Roderic R {Roderic Page}}
+ status ok
+}
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment