-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallard-factum.csl
199 lines (196 loc) · 6.06 KB
/
allard-factum.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
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
<!--
I wrote this CSL file for use in conjunction with my custom
pre-processor and Pandoc to cite factums in the style required
by UBC's Allard School of Law. That style uses inline short
labels, along with per-paragraph notes. That can't be handled
with Pandoc and CSL alone. I use CSL to generate the layout of a
citation, but my custom pre-processor puts that content into the
appropriate place for Pandoc.
I've borrowed some techniques and macros from mcgill-en.csl by
Liam McHugh-Russel, Florian Martin-Bariteau, and Frank Bennett.
The CSL specification doesn't have the necessary elements for
legal case citations required by Allard (McGill / Canadian
Uniform Guide). So, I (ab)use the existing fields to get what we
need.
For legal cases, 'authority' will be the first-listed citation,
and the citation to which pinpoints will attach. 'source' is a
parallel citation and everything else that might come after any
pinpoint except for 'author' (family name) which can be used to
indicate a particular judge/justice concurring or in dissent,
etc., listed after all other elements. Specify an issued-year
only if the first-listed citation ('authority') doesn't include
the year as its first element or if the year in the first-listed
authority doesn't match the release date of the decision. In
those cases, the year will be inserted directly following the
case name. There is no automatic shortening of case names. You
need to specify the short-title manually in the bibliography.
-->
<info>
<id>https://github.com/sanchom/allard-writing-tools/blob/master/allard-factum.csl</id>
<title>Allard Law Citation Style</title>
<link href="http://guides.library.ubc.ca/legalcitation/home" rel="documentation"/>
<link href="http://www.allard.ubc.ca/sites/www.allard.ubc.ca/files/uploads/first%20year/factum_citation_guide.pdf" rel="documentation"/>
<author>
<name>Sancho McCann</name>
<email>sanchom@gmail.com</email>
</author>
<category field="law"/>
<updated>2018-07-21T12:16:31-07:00</updated>
</info>
<locale xml:lang="en">
</locale>
<macro name="author">
<names variable="author"/>
</macro>
<macro name="title">
<text variable="title" font-style="italic"/>
</macro>
<macro name="title-short">
<choose>
<if variable="title-short">
<text variable="title-short"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="journal-name">
<choose>
<if variable="container-title-short">
<text variable="container-title-short"/>
</if>
<else>
<text variable="container-title"/>
</else>
</choose>
</macro>
<macro name="publisher info">
<text value="(" />
<choose>
<if variable="publisher-place">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</if>
<else>
<text variable="publisher"/>
</else>
</choose>
<text value=", "/>
<date variable="original-date">
<date-part name="year"/>
</date>
<text value=")"/>
</macro>
<macro name="year">
<date variable="original-date">
<date-part name="year"/>
</date>
</macro>
<macro name="pinpoint">
<group delimiter=" ">
<choose>
<if locator="page" match="any">
<choose>
<if variable="locator">
<text term="at" prefix=" "/>
</if>
</choose>
</if>
<else>
<text term="at" prefix=" "/>
<label variable="locator" plural="contextual" form="short" strip-periods="true" prefix=" "/>
</else>
</choose>
<text variable="locator"/>
</group>
</macro>
<macro name="render-case">
<group delimiter=" ">
<group delimiter=" " suffix=",">
<text macro="title"/>
<group prefix="(" suffix=")">
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</group>
<group delimiter=" ">
<text variable="authority"/>
<text macro="pinpoint"/>
<text variable="source" prefix=", "/>
<text variable="author" prefix=", "/>
</group>
</group>
</macro>
<macro name="render-legislation">
<group delimiter=" ">
<group delimiter=" " suffix=",">
<text macro="title"/>
</group>
<group delimiter=" ">
<text variable="authority"/>
<text macro="pinpoint"/>
</group>
</group>
</macro>
<citation et-al-min="3" et-al-use-first="1">
<layout delimiter="; ">
<choose>
<if position="ibid subsequent" match="any">
<choose>
<if type="legal_case legislation" match="any">
<group delimiter=" ">
<text macro="title-short" font-style="italic"/>
<text macro="pinpoint"/>
</group>
</if>
<else>
<!-- Everything other than a legal case and legislation-->
<group delimiter=" ">
<text variable="author" form="short" font-style="italic"/>
<text macro="pinpoint"/>
</group>
</else>
</choose>
</if>
<else>
<choose>
<if type="legal_case">
<text macro="render-case"/>
</if>
<else-if type="legislation">
<text macro="render-legislation"/>
</else-if>
<else-if type="book">
<group delimiter=", " suffix=" ">
<text macro="author"/>
<text macro="title"/>
</group>
<text macro="publisher info"/>
<text macro="pinpoint" prefix=" "/>
</else-if>
<else-if type="article-journal">
<group delimiter=", " suffix=" ">
<text macro="author"/>
<text macro="title"/>
</group>
<text macro="year" prefix="(" suffix=") "/>
<text variable="volume"/>
<text variable="issue" prefix=":"/>
<text macro="journal-name" prefix=" "/>
<text variable="page-first" prefix=" "/>
</else-if>
<else>
<text value="--citation type not implemented--"/>
</else>
</choose>
</else>
</choose>
</layout>
</citation>
</style>