Skip to content

Instantly share code, notes, and snippets.

View rmzelle's full-sized avatar

Rintze M. Zelle, PhD rmzelle

View GitHub Profile
REPLACE INTO translators VALUES ('83d71ab9-ca73-473d-9f36-9b9ce7a765f0', '1.0.0b4.r5', '', '2009-05-17 11:43:47', '0', '101', '4', 'BioOne Redux', 'Michael Berkowitz and Rintze Zelle', 'http://[^/]*www.bioone.org[^/]*/',
'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/doSearch") != -1 || url.indexOf("/action/showBook") != -1 || url.indexOf("/toc/") != -1) {
return "multiple";
} else if (url.indexOf("/doi/") != -1) {
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en">
<info>
<title>
german-law-style
</title>
<id>
@rmzelle
rmzelle / gist:115663
Created May 21, 2009 19:21
royalsocietypublishing
REPLACE INTO translators VALUES ('027f1b68-4f4b-4644-b6ee-f6f06bd56746', '1.0.0b4.r5', '', '2009-05-22 14:16:02', '0', '1', '4', 'Royal Society Publishing redux', 'Michael Berkowitz and Rintze Zelle', 'http://[a-z]+\.royalsocietypublishing.org/',
'function detectWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = namespace ? function(prefix) {
if (prefix == ''x'') return namespace; else return null;
} : null;
try {
var pageType = doc.evaluate(''/html/body/div'', doc, null, XPathResult.ANY_TYPE, null).iterateNext().id;
if (pageType == "pageid-content") {
<?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>Diabetes Care</title>
<id>http://www.zotero.org/styles/diabetes-care</id>
<link href="http://www.zotero.org/styles/diabetes-care"/>
<author>
<name>Michael Berkowitz</name>
<email>[email protected]</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>American Psychological Association - schizophrenia_research</title>
<id>http://www.zotero.org/styles/apa_schizophrenia_research</id>
<link href="http://www.zotero.org/styles/apa_schizophrenia_research"/>
<author>
<name>Simon Kornblith</name>
<email>[email protected]</email>
@rmzelle
rmzelle / PLoS Journals translator
Created May 30, 2009 17:17
PLoS Journals Redux
function detectWeb(doc, url) {
if (url.indexOf("Search.action") != -1 || url.indexOf("browse.action") != -1 || url.indexOf("browseIssue.action") != -1) {
return "multiple";
} else if (url.indexOf("article/info") != -1) {
return "journalArticle";
}
}
function getSelectedItems(doc, articleRegEx) {
var items = new Object();
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="RelaxNG-Compact" version="0.2" kateversion="2.4" section="Markup" extensions="*.rnc" casesensitive="1" author="Rintze Zelle" license="LGPL">
<highlighting>
<list name="Keywords">
<item> default </item>
<item> datatypes </item>
<item> div </item>
<item> empty </item>
<item> external </item>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
><head
><title
>Citation Style Language v. 0.8</title
><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/><meta name="generator" content="pandoc"
/><meta name="author" content="Bruce D'Arcus"
/><meta name="date" content="March 21, 2009"
/><style type="text/css"
{
"translatorID":"176948f7-9df8-4afc-ace7-4c1c7318d426",
"label":"ESpacenet",
"creator":"Gilles Poulain and Rintze Zelle",
"target":"http://v3.espacenet.com/",
"minVersion":"1.0.0b4.r5",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,
{
"translatorID":"176948f7-9df8-4afc-ace7-4c1c7318d426",
"label":"ESpacenet",
"creator":"Gilles Poulain and Rintze Zelle",
"target":"http://v3.espacenet.com/",
"minVersion":"1.0.0b4.r5",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,