forked from citation-style-language/styles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaustralian-legal.csl
410 lines (410 loc) · 18.1 KB
/
australian-legal.csl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
<info>
<title>Australian Legal Citation</title>
<id>http://www.zotero.org/styles/australian-legal</id>
<link href="http://www.zotero.org/styles/australian-legal" rel="self"/>
<author>
<name>Anton Hughes</name>
<email>[email protected]</email>
</author>
<author>
<name>Bruce D'Arcus</name>
<email>[email protected]</email>
</author>
<author>
<name>Nancy Sims</name>
<email>[email protected]</email>
</author>
<author>
<name>Nic Suzor</name>
<email>[email protected]</email>
</author>
<category citation-format="note"/>
<updated>2010-01-12T14:05:00+10:00</updated>
<summary>A modification of the Bluebook legal citation style for Australian conditions.</summary>
</info><!-- sets up basics of dealing with authors -->
<macro name="name-macro">
<choose>
<if type="legal_case">
<names variable="author">
<name and="symbol" delimiter="" delimiter-precedes-last="never"/>
<label form="short" prefix="" suffix="." strip-periods="true"/>
<substitute>
<text variable="title"/>
</substitute>
</names>
</if>
<else-if variable="author" match="none"><!-- no author, get the editors; editors go before the title: AGLC 5.1.2 -->
<names variable="editor translator">
<name and="symbol" delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")" strip-periods="true"/>
<substitute><!-- no editors, just get the title -->
<text variable="title"/>
</substitute>
</names>
</else-if>
<else>
<names variable="author">
<name and="symbol" delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" " suffix="." strip-periods="true"/>
</names>
</else>
</choose>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", "/>
<label form="verb-short" prefix=", " suffix="." strip-periods="true"/>
</names>
</macro>
<macro name="author">
<choose>
<if type="legal_case">
<text macro="name-macro" font-style="italic"/>
</if>
<else-if type="interview">
<names variable="author">
<name and="symbol" delimiter=", "/>
<label form="short" prefix=" Interview with " suffix="" strip-periods="true"/>
<substitute>
<text variable="title"/>
</substitute>
</names>
</else-if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<text macro="name-macro"/>
</else-if>
<else>
<text macro="name-macro"/>
</else>
</choose>
</macro><!-- sets up basics of dealing with editors and translators. Will generally only show up in book citations, as called in XXXX, below -->
<macro name="editor"><!-- AGLC 5.1.2 -->
<names variable="editor" prefix="" suffix="" delimiter=",">
<name and="symbol" delimiter=", "/>
<label form="short" prefix=" (" suffix=")" strip-periods="true"/>
</names>
</macro>
<macro name="editor-translator"><!-- deprecated -->
<choose>
<if variable="author" match="none"><!-- if there's no author, do nothing, as we should have added the editors in before the title --></if>
<else>
<names variable="editor translator" prefix="" suffix=" " delimiter=", ">
<name and="symbol" delimiter=", "/>
<label form="short" prefix=" " suffix=".," strip-periods="true"/>
</names>
</else>
</choose>
</macro>
<macro name="translator"><!--AGLC 5.6 -->
<names variable="translator" prefix="" suffix="" delimiter=", ">
<name and="symbol" delimiter=", "/>
<label form="short" prefix=" " suffix=".," strip-periods="true"/>
</names>
</macro>
<macro name="interviewer">
<names variable="interviewer">
<name and="symbol" delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" " suffix="." strip-periods="true"/>
</names>
</macro><!-- sets up basics of handling volume formatting -->
<macro name="volume-macro">
<choose>
<if type="article-journal article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage legal_case" match="any">
<choose>
<if variable="volume" match="none">
<date variable="issued">
<date-part name="year" prefix=" [" suffix="]"/>
</date>
<text variable="volume" prefix=" "/>
</if>
<else>
<date variable="issued">
<date-part name="year" prefix=" (" suffix=")"/>
</date>
<text variable="volume" prefix=" "/>
<text variable="issue" prefix="(" suffix=")"/>
</else>
</choose>
</if>
<else>
<group prefix=" (" suffix=")" delimiter=" ">
<text variable="edition" suffix=", "/>
<text variable="publisher"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else>
</choose>
</macro><!-- sets up font variations for titles in books, articles, etc. -->
<macro name="title">
<choose>
<if type="bill"><!-- Statutes should be italicised, bills should not. This test, however, doesn't work. For the moment, italicise everything. --><!-- <choose>
<if type="statute"> -->
<text variable="title" font-style="italic"/>
<date variable="issued" font-style="italic">
<date-part name="year" prefix=" "/>
</date><!-- </if>
<else>
<text variable="title" />
<date variable="issued">
<date-part name="year" prefix=" "/>
</date>
</else>
</choose>-->
<text variable="note" prefix=" (" suffix=")"/>
</if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" font-style="italic"/>
</else-if>
<else-if type="article-journal article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage" match="any">
<text variable="title" quotes="true"/>
</else-if>
<else-if type="legal_case">
<text variable="title" font-style="italic"/>
</else-if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="event"><!-- this handles a bunch of events in form "(<name of even>, <location>, <full date>)" -->
<group prefix="(" suffix=")"><!-- technically, this should have "Paper presented at the " or "Speech delivered at the", but that becomes too messy. -->
<text variable="event" suffix=", "/>
<text variable="event-place" suffix=", "/>
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</macro><!-- link to online content, called in YYYYY -->
<macro name="access">
<choose>
<if variable="URL">
<text variable="URL" prefix=" <" suffix=">"/>
<group prefix=" at " suffix=""><!-- AGLC requires format "at 2 December 2001", no parentheses. -->
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</if>
</choose>
</macro>
<macro name="source"><!-- This macro seems really problematic, with a ton of redundancy. I'd move some of
the conditional logic into the appropriate macros (like 'title') and try to remove this
macro entirely. -->
<choose>
<if type="article-journal" match="any">
<text variable="title" suffix=" " quotes="true"/>
<text macro="volume-macro"/>
<text macro="container"/>
<text variable="page" prefix=" "/>
</if>
<else-if type="legal_case"><!-- I am using this to distinguish US cases from Australian ones; we don't list the court for Australian cases in AGLC -->
<choose>
<if variable="authority" match="none">
<text variable="title" font-style="italic"/>
<text macro="volume-macro" suffix=""/>
<text macro="container"/>
<text variable="page" prefix=" "/>
<text variable="locator" prefix=", "/>
</if>
<else>
<text variable="title" suffix=", " font-variant="normal"/>
<text variable="volume" prefix=" " suffix=""/>
<text macro="container"/>
<text variable="page" prefix=" "/>
<text variable="locator" prefix=", "/>
<group prefix=" (" suffix=")">
<text variable="authority" suffix=", "/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else>
</choose>
</else-if>
<else-if type="interview"><!-- AGLC 6.11 -->
<group prefix=" (" suffix=")">
<text variable="medium" suffix=", "/>
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/><!--- DD mon YYYY -->
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="thesis"><!-- AGLC 6.7 -->
<text variable="title" font-style="italic"/>
<group prefix=" (" suffix=")">
<text variable="genre" suffix=", "/>
<text variable="publisher" suffix=", "/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="speech"><!-- AGLC 6.9, 6.10 for presentations, oral conference papers, speeches -->
<text variable="title" quotes="true"/>
<text macro="event" prefix=" "/>
</else-if>
<else-if type="article-newspaper article-magazine" match="any">
<text variable="title" suffix=", " quotes="true"/><!--AGLC 6.2 -->
<text variable="volume" suffix=" "/>
<text macro="container" suffix=", " font-style="italic"/>
<text macro="issuance"/>
<group delimiter="">
<text value="at" prefix=", "/>
<text variable="page" prefix=" "/>
</group>
</else-if>
<else-if type="chapter paper-conference" match="any">
<text variable="title" suffix=" " quotes="true"/><!-- AGLC 5.5, chapters in edited books -->
<text macro="container" suffix=" "/>
<text macro="issuance" prefix=" (" suffix=")"/>
<text variable="volume" prefix=" vol. " suffix=" "/>
<text variable="page" prefix=" "/>
</else-if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" font-style="italic"/>
<text macro="container" prefix=" "/>
<text macro="issuance" prefix=" (" suffix=")"/>
<text variable="volume" prefix=" vol. " suffix=" "/>
</else-if>
<else-if type="webpage"><!-- AGLC 6.14 -->
<text variable="title" font-style="italic"/>
<text macro="issuance" prefix=" (" suffix=")"/>
<text macro="container" prefix=" "/>
</else-if>
<else>
<text variable="volume" suffix=" "/>
<text variable="title" quotes="true"/>
<text macro="container" prefix=" "/>
<text macro="issuance" prefix=" (" suffix=")"/>
</else>
</choose>
</macro>
<macro name="issuance">
<choose>
<if type="article-journal article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage" match="any">
<group prefix="" suffix="">
<choose>
<if type="article-newspaper thesis" match="any">
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/><!--- DD mon YYYY -->
</date>
</if>
</choose>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<text macro="translator" suffix=" "/><!-- editors go up front now; only translators go aftewards. AGLC 5.1.2, 5.1.5, 5.1.6 -->
<text variable="edition" suffix=" ed. "/><!-- replaced a text element with a missing variable reference -->
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</macro><!-- sets up citing to specific page numbers -->
<macro name="at_page">
<group delimiter="">
<choose>
<if position="ibid"><!-- "Ibid 23" --></if>
<else-if position="subsequent"><!-- "above n _, 23" -->
<text value="," prefix=""/>
</else-if>
<else-if type="bill book graphic legal_case motion_picture report song thesis" match="any"><!-- for legislation, books, and theses, just us a space --></else-if>
<else>
<text value="," prefix=""/><!-- everything else, use a comma -->
</else>
</choose>
<text variable="locator" prefix=" "/>
</group>
</macro><!-- sets up the "in" in front of book sections, etc. -->
<macro name="container">
<choose>
<if type="chapter paper-conference" match="any">
<group delimiter="">
<text term="in" text-case="lowercase" prefix=" "/>
<text macro="editor" prefix=" "/>
<text variable="container-title" font-style="italic" prefix=" "/>
</group>
</if>
<else-if type="legal_case">
<text variable="container-title" form="short" prefix=" "/>
</else-if>
<else-if type="article-journal">
<text variable="container-title" font-style="italic" prefix=" "/>
</else-if>
<else>
<text variable="container-title"/>
</else>
</choose>
</macro>
<citation et-al-min="4" et-al-use-first="1">
<layout suffix="." delimiter="; ">
<choose><!-- always cite legislation in full -->
<if type="bill">
<text macro="title"/>
<text macro="at_page"/>
</if>
<else-if position="ibid">
<text value="ibid" text-case="capitalize-first"/>
<text macro="at_page" suffix="."/><!-- period will not show up - this is for find-and-replace later. -->
</else-if>
<else-if position="subsequent">
<choose>
<if type="legal_case"><!-- don't use 'above' for cases -->
<text macro="author"/>
<text macro="source"/>
<text macro="access"/>
</if>
<else>
<text macro="author-short" suffix=","/><!-- insert short title if it is needed. --><!-- there seems to be a problem with the current processor, which requires two dates to be identitical before disambiguate="true": see http://forums.zotero.org/discussion/2688/disambiguate-by-adding-title/. For the moment, always append a short title.
<choose>
<if disambiguate="true"> -->
<text variable="title" form="short" prefix=" " suffix="," quotes="true"/><!-- AGLC 1.2.2 --><!-- </if>
</choose>-->
<text value="above" prefix=" "/>
<text value="n " prefix=" "/><!-- CSL does not currently support reference to a note number, so we leave a blank space for correction now -->
<text value="___"/>
<text macro="at_page"/>
</else>
</choose>
</else-if><!-- position="subsequent" -->
<else><!-- new citation -->
<choose>
<if type="legal_case">
<text macro="author"/>
<text macro="source"/>
<text macro="access"/><!-- I had to move the page reference for cases within the source macro, because it sits between the reporter and the year in US blue book style -->
</if>
<else-if type="interview">
<text macro="interviewer" suffix=" "/>
<text value="Interview with "/>
<text macro="author" suffix=" "/>
<text macro="source"/>
<text macro="at_page"/>
<text macro="access"/>
</else-if>
<else>
<text macro="author" suffix=", "/>
<text macro="source"/>
<text macro="at_page"/>
<text macro="access"/><!-- rule 4.9, URL comes after pinpoint ref -->
</else>
</choose>
</else>
</choose>
</layout>
</citation>
</style>