Ticket #632: apsa-raw.csl

File apsa-raw.csl, 5.2 KB (added by codec, 9 years ago)

American Political Science Association format

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >
3  <info>
4    <title>American Political Science Association format</title>
5    <id>http://www.zotero.org/namespaces/CSL/APSA.csl</id>
6    <author>
7      <name>Julian Onions</name>
8      <email>julian.onions@gmail.com</email>
9    </author>
10    <category term="author-date"/>
11    <updated>2007-11-02T16:16:00+00:00</updated>
12    <summary>The American Political Science Association style.</summary>
13    <source>http://www.wisc.edu/writing/Handbook/DocAPSA.html</source>
14  </info>
15  <macro name="editor">
16    <names variable="editor" prefix="" suffix="" delimiter=", ">
17      <name and="text" initialize-with=". " delimiter=", "/>
18      <label form="short" prefix=", " text-transform="lowercase" suffix="."/>
19    </names>
20  </macro>
21  <macro name="anon">
22    <text value="Anon"/>
23  </macro>
24  <macro name="author">
25    <names variable="author">
26      <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with=". "
27            delimiter=", " delimiter-precedes-last="always"/>
28      <label form="short" prefix=" " suffix="." text-transform="lowercase"/>
29      <substitute>
30        <names variable="editor"/>
31        <text variable="title"/>
32      </substitute>
33    </names>
34  </macro>
35  <macro name="author-short">
36    <names variable="author">
37      <name form="short" and="text" delimiter=", " initialize-with=". "/>
38      <substitute>
39        <names variable="editor"/>
40        <names variable="translator"/>
41        <text variable="title"/>
42      </substitute>
43    </names>
44  </macro>
45  <macro name="access">
46    <group>
47      <text value="Available at:" suffix=" "/>
48      <text variable="URL"/>
49      <group prefix=" [" suffix="]">
50        <text term="accessed" text-transform="capitalize" suffix=" "/>
51        <date variable="accessed">
52          <date-part name="month" suffix=" "/>
53          <date-part name="day" suffix=", "/>
54          <date-part name="year"/>
55        </date>
56      </group>
57    </group>
58  </macro>
59  <macro name="title">
60    <choose>
61      <if type="book">
62        <text variable="title" font-style="italic"/>
63      </if>
64      <else>
65        <text variable="title"/>
66      </else>
67    </choose>
68  </macro>
69  <macro name="publisher">
70    <group delimiter=": ">
71      <text variable="publisher-place"/>
72      <text variable="publisher"/>
73    </group>
74  </macro>
75  <macro name="year-date">
76    <group prefix=" ">
77      <choose>
78        <if variable="issued">
79          <date variable="issued">
80            <date-part name="year"/>
81          </date>
82        </if>
83        <else>
84          <text value="n.d."/>
85        </else>
86      </choose>
87    </group>
88  </macro>
89  <citation>
90    <option name="et-al-min" value="4"/>
91    <option name="et-al-use-first" value="1"/>
92    <option name="et-al-subsequent-min" value="6"/>
93    <option name="et-al-subsequent-use-first" value="1"/>
94    <option name="disambiguate-add-year-suffix" value="true"/>
95    <option name="disambiguate-add-names" value="true"/>
96    <option name="disambiguate-add-givenname" value="true"/>
97    <option name="collapse" value="year"/>
98    <layout prefix="(" suffix=")" delimiter="; ">
99      <group delimiter=", ">
100       <group delimiter=" ">
101      <text macro="author-short"/>
102      <text macro="year-date"/>
103      </group>
104      <text variable="locator"/>
105      </group>
106    </layout>
107  </citation>
108  <bibliography>
109    <option name="hanging-indent" value="true"/>
110    <option name="et-al-min" value="4"/>
111    <option name="et-al-use-first" value="1"/>
112    <sort>
113      <key macro="author"/>
114      <key variable="title"/>
115    </sort>
116    <layout>
117      <text macro="author"/>
118      <date variable="issued" prefix=" " suffix=".">
119        <date-part name="year"/>
120      </date>
121      <choose>
122        <if type="book">
123          <group suffix=",">
124            <text macro="title" prefix=" "/>
125            <text variable="edition" prefix=" " suffix=" ed."/>
126            <text macro="editor" prefix=" "/>
127          </group>
128          <text prefix=" " suffix="." macro="publisher"/>
129        </if>
130        <else-if type="chapter">
131          <text macro="title" prefix=" " suffix="." quotes="true"/>
132          <group class="container" prefix=" ">
133            <text term="in" text-transform="capitalize"/>
134            <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
135            <text variable="collection-title" prefix=" " suffix="."/>
136            <names variable="editor" prefix=", " suffix="." delimiter=", ">
137              <label form="short" suffix=". " text-transform="lowercase"/>
138              <name and="text" sort-separator=", " initialize-with=". "/>
139            </names>
140            <group suffix=".">
141              <text macro="publisher" prefix=" "/>
142              <group prefix=", ">
143                <text variable="page" prefix="p. "/>
144              </group>
145            </group>
146          </group>
147        </else-if>
148        <else>
149          <group suffix=".">
150            <text macro="title" prefix=" " quotes="true"/>
151            <text macro="editor" prefix=" "/>
152          </group>
153          <group class="container" prefix=" " suffix=".">
154            <text variable="container-title" font-style="italic"/>
155            <group prefix=", ">
156              <text variable="volume" />
157              <text variable="issue" prefix="(" suffix=")"/>
158            </group>
159            <group prefix=":">
160              <text variable="page"/>
161            </group>
162          </group>
163        </else>
164      </choose>
165      <text prefix=" " macro="access" suffix="."/>
166    </layout>
167  </bibliography>
168</style>