Skip to content

Instantly share code, notes, and snippets.

View rmzelle's full-sized avatar

Rintze M. Zelle, PhD rmzelle

View GitHub Profile
// Hide styles that don't match the search text
if (show) {
if (name.replace(/-/g," ").indexOf(valLower) == -1 && $(this).text().toLowerCase().indexOf(valLower) == -1) {
show = false;
}
}
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US">
<info>
<title>Example Style</title>
<id>http://www.zotero.org/styles/example-style</id>
<link href="http://www.zotero.org/styles/example-style" rel="self"/>
<author>
<name>Jane Doe</name>
</author>
<category citation-format="author-date"/>
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="in-text">
<info>
<title>SEI International Style (Author-Date)</title>
<id>SEI International Style</id>
<link href="http://www.sei-international.org" rel="self"/>
<category citation-format="author-date"/>
<category field="generic-base"/>
<updated>2012-02-03T12:14:40+00:00</updated>
</info>
C:\Documents and Settings\zelle\My Documents\CSL\franks-schema\mlz-styles\mlz-wi
sconsin-court.csl:47:26: error: value of attribute "name" is invalid; must be a
string matching the regular expression "(chapter\-number|collection\-number|edit
ion|issue|note|number|number\-of\-volumes|page|section|volume|)\-\d{2}", must be
a string matching the regular expression "ordinal\-\d{2,4}" or must be equal to
"accessed", "ad", "and", "and others", "anonymous", "anthropology", "astronomy"
, "at", "author", "authority", "bc", "biology", "book", "botany", "by", "chapter
", "chapter-number", "chemistry", "circa", "cited", "close-inner-quote", "close-
quote", "collection-editor", "collection-number", "column", "communications", "c
omposer", "container-author", "edition", "editor", "editorial-director", "editor
# Python script for additional style validation
# Author: Rintze M. Zelle
# Version: 2011-12-17
# * Requires lxml library (http://lxml.de/)
#
# Add CC by-sa license
import os, glob, re, cgi
from lxml import etree
@rmzelle
rmzelle / test.rnc
Created May 20, 2012 15:38
test.rnc
start = test
test = element test { one | two }
## One
one =
attribute one { "1" }
two =
## Two
## Specify the journal's ISSN(s) for journal-specific styles. An ISSN
## must consist of four digits, a hyphen, three digits, and a check
## digit (a numeral digit or roman X), e.g. "1234-1231".
element cs:issn { issn }
info.eissn =
## Specify the journal's eISSN for journal-specific styles.
element cs:eissn { issn }
info.issnl =
<style class="in-text" demote-non-dropping-particle="sort-only" page-range-format="minimal" version="1.0">
<info>
<title>Vancouver no et al</title>
<id>http://www.zotero.org/styles/vancouver_no_et_al</id>
<link href="http://www.zotero.org/styles/vancouver_no_et_al" rel="self" />
<author>
<name>Michael Berkowitz</name>
<email>[email protected]</email>
</author>
<contributor>
<?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>General and Comparative Endocrinology (IEEE)</title>
<id>http://www.zotero.org/styles/ieee</id>
<link href="http://www.zotero.org/styles/ieee"/>
<author>
<name>Michael Berkowitz</name>
<email>[email protected]</email>
p.fixed {
position: fixed;
top: 0;
right: 0;
padding-right: 0.5em;
padding-left: 0.5em;
margin-right: 0.5em;
border: solid black 1px;
background: white;
}