Skip to content

Instantly share code, notes, and snippets.

View rmzelle's full-sized avatar

Rintze M. Zelle, PhD rmzelle

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>American Psychological Association-no-doi</title>
<id>http://www.zotero.org/styles/APA-no-doi</id>
<link href="http://www.zotero.org/styles/apa"/>
<author>
<name>Simon Kornblith</name>
<email>simon@simonster.com</email>
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>Vancouver superscript</title>
<id>http://www.zotero.org/styles/vancouver-superscript</id>
<link href="http://www.zotero.org/styles/vancouver-superscript"/>
<author>
<name>Michael Berkowitz</name>
<email>mberkowi@gmu.edu</email>
function getPMID(co) {
var coParts = co.split("&");
for each(part in coParts) {
if(part.substr(0, 7) == "rft_id=") {
var value = unescape(part.substr(7));
if(value.substr(0, 10) == "info:pmid/") {
return value.substr(10);
}
}
}
15:31:01 '0' => "WDll8hA006AC"
15:31:01 http://books.google.com/books/feeds/volumes/WDll8hA006AC
15:31:02 ===><entry xmlns="http://www.w3.org/2005/Atom" xmlns:gbs="http://schemas.google.com/books/2008" xmlns:dc="http://purl.org/dc/terms" xmlns:gd="http://schemas.google.com/g/2005">
<id>http://www.google.com/books/feeds/volumes/WDll8hA006AC</id>
<updated>2009-04-18T13:30:46.000Z</updated>
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/books/2008#volume"/>
<title type="text">CRC Handbook of Chemistry and Physics</title>
<link rel="http://schemas.google.com/books/2008/thumbnail" type="image/x-unknown" href="http://bks3.books.google.com/books?id=WDll8hA006AC&amp;printsec=frontcover&amp;img=1&amp;zoom=5&amp;sig=ACfU3U1hOT1cNLdru3PlcTd7L_JP8ZknMQ&amp;source=gbs_gdata"/>
<link rel="http://schemas.google.com/books/2008/info" type="text/html" href="http://books.google.com/books?id=WDll8hA006AC&amp;
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gbs="http://schemas.google.com/books/2008" xmlns:dc="http://purl.org/dc/terms" xmlns:gd="http://schemas.google.com/g/2005">
<id>http://www.google.com/books/feeds/volumes/WDll8hA006AC</id>
<updated>2009-04-18T13:30:46.000Z</updated>
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/books/2008#volume"/>
<title type="text">CRC Handbook of Chemistry and Physics</title>
<link rel="http://schemas.google.com/books/2008/thumbnail" type="image/x-unknown" href="http://bks3.books.google.com/books?id=WDll8hA006AC&amp;printsec=frontcover&amp;img=1&amp;zoom=5&amp;sig=ACfU3U1hOT1cNLdru3PlcTd7L_JP8ZknMQ&amp;source=gbs_gdata"/>
<link rel="http://schemas.google.com/books/2008/info" type="text/html" href="http://books.google.com/books?id=WDll8hA006AC&amp;ie=ISO-8859-1&amp;source=gbs_gdata"/>
<link rel="http://schemas.google.com/books/2008/annotation" type="applicati
function lookupPMIDs(ids, doc) {
Zotero.wait();
var newUri = "http://books.google.com/books/feeds/volumes/"+ids;
Zotero.debug(newUri);
Zotero.Utilities.HTTP.doGet(newUri, function(text) {
// Remove xml parse instruction and doctype
text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, "");
var xml = new XML(text);
//Zotero.debug(xml);
14:43:36 '0' => "TFXua_jm8T0C"
14:43:36 http://books.google.com/books/feeds/volumes/TFXua_jm8T0C
14:43:37 ===>http://www.google.com/books/feeds/volumes/TFXua_jm8T0C<===(xml)
14:43:37 1999
14:43:37 '0' => "<dc:creator xmlns="http://www.w3.org/2005/Atom" xmlns:gbs="http://schemas.google.com/books/2008" xmlns:dc="http://purl.org/dc/terms" xmlns:gd="http://schemas.google.com/g/2005">Herbert Meislich</dc:creator>
<dc:creator xmlns="http://www.w3.org/2005/Atom" xmlns:gbs="http://schemas.google.com/books/2008" xmlns:dc="http://purl.org/dc/terms" xmlns:gd="http://schemas.google.com/g/2005">Mark S. Meier</dc:creator>
<dc:creator xmlns="http://www.w3.org/2005/Atom" xmlns:gbs="http://schemas.google.com/books/2008" xmlns:dc="http://purl.org/dc/terms" xmlns:gd="http://schemas.google.com/g/2005">Jennifer L. Muzyka</dc:creator>
<dc:creator xmlns="http://www.w3.org/2005/Atom" xmlns:gbs="http://schemas.google.com/books/2008" xmlns:dc="http://purl.org/dc/terms" xmlns:gd="http://sche
REPLACE INTO translators VALUES ('3e684d82-73a3-9a34-095f-19b112d88bbf', '1.0.0b3.r1', '', '2009-04-20 17:59:23', '1', '100', '4', 'Google Books', 'Simon Kornblith, Michael Berkowitz and Rintze Zelle', '^http://(books|www)\.google\.[a-z]+(\.[a-z]+)?/books\?(.*id=.*|.*q=.*)',
'function detectWeb(doc, url) {
var re = new RegExp(''^http://(books|www)\\.google\\.[a-z]+(\.[a-z]+)?/books\\?id=([^&]+)'', ''i'');
if(re.test(doc.location.href)) {
return "book";
} else {
return "multiple";
}
}',
'function doWeb(doc, url) {
function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
if (prefix == 'x') return namespace; else return null;
} : null;
if (url.indexOf("/action/showBook") != -1 || url.indexOf("/toc/") != -1) {
return "multiple";
} else if (url.indexOf("/doi/") != -1) {
var links = doc.evaluate("//a[@href]", doc, nsResolver, XPathResult.ANY_TYPE, null);
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >
<info>
<title>Harvard Reference format 1 (Author-Date) - no disambiguation by adding names</title>
<id>http://www.zotero.org/styles/harvard1-nodisambiguatebynames</id>
<link href="http://www.zotero.org/styles/harvard1"/>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>