First style to use the new number/datatype directives to more properly format edition

This commit is contained in:
Julian Onions 2007-12-18 23:03:38 +00:00
parent f55654ca34
commit 1ec7927cc8

View File

@ -1,195 +1,215 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" > <style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >
<info> <info>
<title>Chicago Manual of Style (Author-Date format)</title> <title>Chicago Manual of Style (Author-Date format)</title>
<id>http://www.zotero.org/styles/chicago-author-date</id> <id>http://www.zotero.org/styles/chicago-author-date</id>
<author> <author>
<name>Julian Onions</name> <name>Julian Onions</name>
<email>julian.onions@gmail.com</email> <email>julian.onions@gmail.com</email>
</author> </author>
<category term="author-date"/> <category term="author-date"/>
<category term="generic-base"/> <category term="generic-base"/>
<updated/> <updated/>
<summary>The author-date variant of the Chicago style</summary> <summary>The author-date variant of the Chicago style</summary>
<link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/> <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
</info> </info>
<macro name="editor"> <macro name="editor">
<names variable="editor"> <names variable="editor">
<label form="short" text-case="capitalize-first" suffix=". "/> <label form="short" text-case="capitalize-first" suffix=". "/>
<name and="text" delimiter=", "/> <name and="text" delimiter=", "/>
</names> </names>
</macro> </macro>
<macro name="series-editor"> <macro name="series-editor">
<names variable="original-author"> <names variable="original-author">
<label form="short" text-case="capitalize-first" suffix=". "/> <label form="short" text-case="capitalize-first" suffix=". "/>
<name and="text" delimiter=", "/> <name and="text" delimiter=", "/>
</names> </names>
</macro> </macro>
<macro name="anon"> <macro name="anon">
<text term="anonymous" form="short" text-case="capitalize-first"/> <text term="anonymous" form="short" text-case="capitalize-first"/>
</macro> </macro>
<macro name="author"> <macro name="author">
<names variable="author"> <names variable="author">
<name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", " <name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", "
delimiter-precedes-last="always"/> delimiter-precedes-last="always"/>
<label form="short" prefix=", " suffix="." text-case="lowercase"/> <label form="short" prefix=", " suffix="." text-case="lowercase"/>
<substitute> <substitute>
<names variable="editor"/> <names variable="editor"/>
<names variable="translator"/> <names variable="translator"/>
<text macro="anon"/> <text macro="anon"/>
</substitute> </substitute>
</names> </names>
</macro> </macro>
<macro name="author-short"> <macro name="author-short">
<names variable="author"> <names variable="author">
<name form="short" and="text" delimiter=", "/> <name form="short" and="text" delimiter=", "/>
<substitute> <substitute>
<names variable="editor"/> <names variable="editor"/>
<names variable="translator"/> <names variable="translator"/>
<text macro="anon"/> <text macro="anon"/>
</substitute> </substitute>
</names> </names>
</macro> </macro>
<macro name="access"> <macro name="access">
<group> <group>
<text variable="URL"/> <text variable="URL"/>
<group prefix=" (" suffix=")"> <group prefix=" (" suffix=")">
<text term="accessed" text-case="capitalize-first" suffix=" "/> <text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed"> <date variable="accessed">
<date-part name="month" suffix=" "/> <date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/> <date-part name="day" suffix=", "/>
<date-part name="year"/> <date-part name="year"/>
</date> </date>
</group> </group>
</group> </group>
</macro> </macro>
<macro name="title"> <macro name="title">
<choose> <choose>
<if type="thesis"> <if type="thesis">
<text variable="title"/> <text variable="title"/>
</if> </if>
<else-if type="book"> <else-if type="book">
<text variable="title" font-style="italic"/> <text variable="title" font-style="italic"/>
</else-if> </else-if>
<else> <else>
<text variable="title"/> <text variable="title"/>
</else> </else>
</choose> </choose>
</macro> </macro>
<macro name="publisher"> <macro name="edition">
<group delimiter=": " > <choose>
<text variable="publisher-place"/> <if datatype="number" variable="edition">
<text variable="publisher"/> <group delimiter=" ">
</group> <number variable="edition" form="ordinal"/>
</macro> <text term="edition" form="short" suffix="."/>
<macro name="year-date"> </group>
<date variable="issued"> </if>
<date-part name="year"/> <else>
</date> <text variable="edition" suffix="."/>
</macro> </else>
<macro name="day-month"> </choose>
<date variable="issued"> </macro>
<date-part name="month"/> <macro name="volumes">
<date-part name="day" prefix=" "/> <group delimiter=" ">
</date> <number variable="number-of-volumes" form="numeric"/>
</macro> <text term="volume" form="short" suffix="." plural="true"/>
<citation> </group>
<option name="et-al-min" value="4"/> </macro>
<option name="et-al-use-first" value="1"/> <macro name="publisher">
<option name="et-al-subsequent-min" value="6"/> <group delimiter=": " >
<option name="et-al-subsequent-use-first" value="1"/> <text variable="publisher-place"/>
<option name="disambiguate-add-year-suffix" value="true"/> <text variable="publisher"/>
<option name="disambiguate-add-names" value="true"/> </group>
<option name="disambiguate-add-givenname" value="true"/> </macro>
<option name="collapse" value="year"/> <macro name="year-date">
<layout prefix="(" suffix=")" delimiter="; "> <date variable="issued">
<group delimiter=", "> <date-part name="year"/>
<group delimiter=" "> </date>
<text macro="author-short"/> </macro>
<text macro="year-date"/> <macro name="day-month">
</group> <date variable="issued">
<text variable="locator"/> <date-part name="month"/>
</group> <date-part name="day" prefix=" "/>
</layout> </date>
</citation> </macro>
<bibliography> <citation>
<option name="hanging-indent" value="true"/> <option name="et-al-min" value="4"/>
<option name="et-al-min" value="6"/> <option name="et-al-use-first" value="1"/>
<option name="et-al-use-first" value="1"/> <option name="et-al-subsequent-min" value="6"/>
<sort> <option name="et-al-subsequent-use-first" value="1"/>
<key macro="author"/> <option name="disambiguate-add-year-suffix" value="true"/>
<key variable="title"/> <option name="disambiguate-add-names" value="true"/>
</sort> <option name="disambiguate-add-givenname" value="true"/>
<layout suffix="."> <option name="collapse" value="year"/>
<group delimiter=" "> <layout prefix="(" suffix=")" delimiter="; ">
<text macro="author" suffix="."/> <group delimiter=", ">
<text macro="year-date" suffix="."/> <group delimiter=" ">
</group> <text macro="author-short"/>
<choose> <text macro="year-date"/>
<if type="article-newspaper article-magazine" match="any"> </group>
<group delimiter=" "> <text variable="locator"/>
<text macro="title" prefix=" " suffix="."/> </group>
</group> </layout>
<group prefix=" " delimiter=", "> </citation>
<text variable="container-title" font-style="italic"/> <bibliography>
<text macro="day-month"/> <option name="hanging-indent" value="true"/>
<text variable="edition"/> <option name="et-al-min" value="6"/>
</group> <option name="et-al-use-first" value="1"/>
</if> <sort>
<else-if type="thesis"> <key macro="author"/>
<text macro="title" prefix=" " suffix="."/> <key variable="title"/>
<group prefix=" " delimiter=", "> </sort>
<text variable="edition" suffix=" ed."/> <layout suffix=".">
<text macro="editor" suffix="."/> <group delimiter=" ">
<text variable="genre"/> <text macro="author" suffix="."/>
<text macro="publisher"/> <text macro="year-date" suffix="."/>
</group> </group>
</else-if> <choose>
<else-if type="book"> <if type="article-newspaper article-magazine" match="any">
<group delimiter=" "> <group delimiter=" ">
<text macro="title" prefix=" " suffix="."/> <text macro="title" prefix=" " suffix="."/>
<text variable="edition" suffix=" ed."/> </group>
<text macro="editor" suffix="."/> <group prefix=" " delimiter=", ">
<text macro="publisher"/> <text variable="container-title" font-style="italic"/>
</group> <text macro="day-month"/>
</else-if> <text variable="edition"/>
<else-if type="chapter"> </group>
<group delimiter=" "> </if>
<text macro="title" prefix=" " suffix="."/> <else-if type="thesis">
<group class="container" delimiter=", "> <text macro="title" prefix=" " suffix="."/>
<group delimiter=" "> <group prefix=" " delimiter=", ">
<text term="in" text-case="capitalize-first"/> <text variable="edition" suffix=" ed."/>
<text variable="container-title" font-style="italic"/> <text macro="editor" suffix="."/>
</group> <text variable="genre"/>
<text macro="editor" prefix=" "/> <text macro="publisher"/>
<group delimiter=" "> </group>
<text variable="volume" prefix="Vol. " suffix=" of"/> </else-if>
<text variable="collection-title" font-style="italic"/> <else-if type="book">
<text macro="series-editor"/> <group delimiter=" ">
</group> <text macro="title" prefix=" " suffix="."/>
<text variable="page"/> <text macro="edition"/>
<text macro="publisher" prefix=" "/> <text macro="volumes"/>
</group> <text macro="editor" suffix="."/>
</group> <text macro="publisher"/>
</else-if> </group>
<else> </else-if>
<group suffix="." > <else-if type="chapter">
<text macro="title" prefix=" " /> <group delimiter=" ">
<text macro="editor" prefix=" "/> <text macro="title" prefix=" " suffix="."/>
</group> <group class="container" delimiter=", ">
<group class="container" prefix=" " suffix="." delimiter=" "> <group delimiter=" ">
<text variable="container-title" font-style="italic"/> <text term="in" text-case="capitalize-first"/>
<group delimiter=":"> <text variable="container-title" font-style="italic"/>
<group delimiter=", "> </group>
<text variable="volume" /> <text macro="editor" prefix=" "/>
<text variable="issue" prefix="no. "/> <group delimiter=" ">
</group> <text variable="volume" prefix="Vol. " suffix=" of"/>
<text variable="page"/> <text variable="collection-title" font-style="italic"/>
</group> <text macro="series-editor"/>
</group> </group>
</else> <text variable="page"/>
</choose> <text macro="publisher" prefix=" "/>
<text prefix=" " macro="access" suffix="."/> </group>
</layout> </group>
</bibliography> </else-if>
</style> <else>
<group suffix="." >
<text macro="title" prefix=" " />
<text macro="editor" prefix=" "/>
</group>
<group class="container" prefix=" " suffix="." delimiter=" ">
<text variable="container-title" font-style="italic"/>
<group delimiter=":">
<group delimiter=", ">
<text variable="volume" />
<text variable="issue" prefix="no. "/>
</group>
<text variable="page"/>
</group>
</group>
</else>
</choose>
<text prefix=" " macro="access" suffix="."/>
</layout>
</bibliography>
</style>