Skip to content

Commit c531528

Browse files
authored
create mcgill9-en.csl, Canadian McGill legal style (JabRef#4532)
1 parent e2416fa commit c531528

File tree

1 file changed

+131
-41
lines changed

1 file changed

+131
-41
lines changed

mcgill-en.csl

+131-41
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="note" default-locale="en-US">
33
<info>
4-
<title>Canadian Guide to Uniform Legal Citation 7th edition (McGill Guide)</title>
4+
<title>Canadian Guide to Uniform Legal Citation 9th edition (McGill Guide)</title>
55
<id>http://www.zotero.org/styles/mcgill-en</id>
66
<link href="http://www.zotero.org/styles/mcgill-en" rel="self"/>
7-
<link href="http://www.lawjournal.mcgill.ca/en/text/22" rel="documentation"/>
7+
<link href="https://lawjournal.mcgill.ca/cite-guide" rel="documentation"/>
88
<author>
99
<name>Liam McHugh-Russell</name>
1010
<email>liam.mchugh.russell@gmail.com</email>
@@ -17,9 +17,14 @@
1717
<email>f.martin-bariteau@umontreal.ca</email>
1818
<uri>http://f-mb.github.io/cslegal/</uri>
1919
</contributor>
20+
<contributor>
21+
<name>Gareth Spanglett</name>
22+
<email>gspanglett@gmail.com</email>
23+
<uri>https://gspanglett.github.io</uri>
24+
</contributor>
2025
<category citation-format="note"/>
2126
<category field="law"/>
22-
<updated>2014-06-28T19:23:00+00:00</updated>
27+
<updated>2020-01-06T22:32:01+00:00</updated>
2328
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
2429
</info>
2530
<locale xml:lang="en">
@@ -34,22 +39,19 @@
3439
<term name="ordinal-12">th</term>
3540
<term name="ordinal-13">th</term>
3641
<term name="paragraph" form="short">
37-
<single>para</single>
38-
<multiple>paras</multiple>
39-
</term>
40-
<!-- the usual workaround for inserting "Art" or "Arts" (article) pinpointers is to type the term directly into the pinpoint box, and to use sub verbo for a blank pinpointer. However, for clarity and compliance, this functionality needs to be activated by the user by taking the element below out of documentation
41-
<term name="sub verbo" form="short">
42-
<single/>
43-
<multiple/>
42+
<single>at para</single>
43+
<multiple>at paras</multiple>
4444
</term>
45+
<!-- the usual workaround for inserting "Art" or "Arts" (article) pinpointers is to type the term directly into the pinpoint box and to use sub verbo for a blank pinpointer. However for clarity and compliance this functionality needs to be activated by the user by taking the element below out of documentation
46+
<term name="sub verbo" form="short"><single/><multiple/></term>
4547
-->
4648
<term name="section" form="short">
4749
<single>s</single>
4850
<multiple>ss</multiple>
4951
</term>
5052
<term name="chapter" form="short">
51-
<single>ch</single>
52-
<multiple>chs</multiple>
53+
<single>c</single>
54+
<multiple>cs</multiple>
5355
</term>
5456
</terms>
5557
</locale>
@@ -106,13 +108,17 @@
106108
<date-part name="year" form="long"/>
107109
</date>
108110
</macro>
111+
<macro name="submitted-long">
112+
<date variable="submitted" delimiter=" ">
113+
<date-part name="day"/>
114+
<date-part name="month" form="long"/>
115+
<date-part name="year" form="long"/>
116+
</date>
117+
</macro>
109118
<macro name="edition">
110119
<number variable="edition" form="ordinal" text-case="lowercase" suffix=" "/>
111120
<text term="edition" form="short" strip-periods="true"/>
112121
</macro>
113-
<macro name="references">
114-
<text variable="references"/>
115-
</macro>
116122
<macro name="series-info">
117123
<group delimiter=" ">
118124
<text variable="collection-title" strip-periods="true"/>
@@ -139,7 +145,7 @@
139145
</choose>
140146
</macro>
141147
<!-- the 'rendering' macros mostly check if called from w/i bibliography so that author gets printed
142-
right. Only actually need to check for 'first' because w/i cite,
148+
right. Only actually need to check for 'first' because w/i cite
143149
all the other tests should have been done... -->
144150
<macro name="render-chapter">
145151
<group delimiter=" ">
@@ -148,7 +154,7 @@ all the other tests should have been done... -->
148154
<text macro="editor" strip-periods="true" suffix=","/>
149155
<text macro="container-title" font-style="italic"/>
150156
</group>
151-
<text macro="series-info" prefix=", "/>
157+
<text macro="series-info" prefix=" "/>
152158
<text macro="edition" prefix=", "/>
153159
<text macro="publisher-place-year"/>
154160
<text variable="page-first" prefix=" "/>
@@ -162,7 +168,8 @@ all the other tests should have been done... -->
162168
<text variable="issue"/>
163169
</group>
164170
<text macro="container-title"/>
165-
<text variable="page-first"/>
171+
<text variable="collection-title" prefix="(" suffix=") "/>
172+
<text variable="page"/>
166173
</group>
167174
<text macro="internet-location"/>
168175
</macro>
@@ -178,7 +185,13 @@ all the other tests should have been done... -->
178185
</macro>
179186
<macro name="render-report">
180187
<group delimiter=", ">
188+
<text variable="archive_location"/>
189+
<text variable="archive"/>
181190
<text variable="title" font-style="italic"/>
191+
<text variable="genre"/>
192+
<text macro="author-note" strip-periods="true" prefix="by "/>
193+
<text variable="source"/>
194+
<text variable="call-number"/>
182195
<group delimiter=" ">
183196
<text variable="collection-title" strip-periods="true"/>
184197
<text macro="genre"/>
@@ -206,7 +219,7 @@ all the other tests should have been done... -->
206219
</macro>
207220
<macro name="render-article-magazine">
208221
<group delimiter=" ">
209-
<text variable="title" quotes="true" suffix=","/>
222+
<text variable="title" quotes="true" suffix=""/>
210223
<text macro="container-title" font-style="italic"/>
211224
<text macro="issued-long" prefix="(" suffix=")"/>
212225
<text variable="page-first"/>
@@ -226,15 +239,68 @@ all the other tests should have been done... -->
226239
</macro>
227240
<!-- cases and bill legislations render the same for biblio and (first) cite -->
228241
<macro name="render-bill">
242+
<group delimiter=", ">
243+
<choose>
244+
<if variable="container-title" match="none">
245+
<!-- if no volume, assume bill -->
246+
<text variable="publisher-place"/>
247+
<text variable="authority"/>
248+
<text variable="section"/>
249+
<text variable="chapter-number"/>
250+
<group delimiter=" ">
251+
<text variable="title" font-style="italic"/>
252+
<text variable="references" prefix="(" suffix=")"/>
253+
</group>
254+
<text variable="number-of-volumes"/>
255+
<text variable="number"/>
256+
<group delimiter=" ">
257+
<text variable="number"/>
258+
<text macro="issued-long" prefix="(" suffix=")"/>
259+
</group>
260+
</if>
261+
<else>
262+
<text variable="number" prefix="Bill "/>
263+
<group delimiter=" ">
264+
<text variable="title" font-style="italic"/>
265+
<text variable="references" prefix="(" suffix=")"/>
266+
</group>
267+
<text variable="chapter-number"/>
268+
<text variable="authority"/>
269+
<group delimiter=" ">
270+
<date form="text" variable="issued" date-parts="year"/>
271+
</group>
272+
<text variable="section"/>
273+
</else>
274+
</choose>
275+
</group>
276+
</macro>
277+
<macro name="render-patent">
229278
<group delimiter=" ">
230-
<group delimiter=", ">
231-
<text variable="title" font-style="italic"/>
232-
<text macro="author-note" strip-periods="true"/>
233-
<text macro="issued-long"/>
234-
<text macro="container-title"/>
235-
</group>
236-
<text macro="references" prefix="(" suffix=")"/>
237-
<text variable="title" prefix="[" suffix="]" font-style="italic" form="short"/>
279+
<text variable="title" quotes="true" suffix=","/>
280+
<text variable="publisher-place"/>
281+
<text variable="number" prefix="Patent No "/>
282+
<text variable="references" prefix=", PCT Patent No "/>
283+
<text macro="submitted-long" prefix="(" suffix=")"/>
284+
</group>
285+
</macro>
286+
<macro name="render-song">
287+
<group delimiter=" ">
288+
<text variable="title" quotes="true"/>
289+
<text variable="medium" prefix="(" suffix=")"/>
290+
<text macro="author-note" strip-periods="true" suffix=","/>
291+
<text variable="publisher-place"/>
292+
<text variable="call-number"/>
293+
<text macro="issued-long" prefix="(" suffix=")"/>
294+
</group>
295+
</macro>
296+
<macro name="render-manuscript">
297+
<group delimiter=" ">
298+
<text variable="title" quotes="true"/>
299+
<text variable="medium" prefix="(" suffix=")"/>
300+
<text macro="author-note" strip-periods="true" suffix=","/>
301+
<text variable="publisher-place"/>
302+
<text variable="call-number"/>
303+
<text macro="issued-long" prefix="(" suffix=")"/>
238304
</group>
239305
</macro>
240306
<macro name="render-case">
@@ -251,7 +317,6 @@ all the other tests should have been done... -->
251317
<text variable="container-title" strip-periods="true" font-style="italic"/>
252318
<text variable="volume"/>
253319
<text variable="page"/>
254-
<text variable="note"/>
255320
</group>
256321
</if>
257322
<else-if variable="title" match="none">
@@ -266,7 +331,6 @@ all the other tests should have been done... -->
266331
<text variable="container-title" strip-periods="true" font-style="italic"/>
267332
<text variable="volume"/>
268333
<text variable="page"/>
269-
<text variable="note"/>
270334
</group>
271335
</else-if>
272336
<else>
@@ -284,14 +348,13 @@ all the other tests should have been done... -->
284348
<text variable="volume" suffix=" "/>
285349
<text variable="container-title" suffix=" " strip-periods="true"/>
286350
<text variable="page"/>
287-
<text variable="authority" prefix=" (" suffix=")" strip-periods="true"/>
351+
<!-- COMMENTED OUT FOR 9TH ED <text variable="authority" prefix=" (" suffix=")" strip-periods="true"/> -->
288352
</else>
289353
</choose>
290-
<text variable="note" prefix=", "/>
291-
<text variable="references" prefix=" (" suffix=")"/>
354+
<!-- <text variable="references" prefix=", "/> -->
292355
</else>
293356
</choose>
294-
<text variable="URL" prefix=" (available on " suffix=")"/>
357+
<!-- COMMENTED OUT FOR 9TH ED <text variable="URL" prefix=" (available on " suffix=")"/> -->
295358
</macro>
296359
<macro name="pinpoint">
297360
<group delimiter=" ">
@@ -304,15 +367,15 @@ all the other tests should have been done... -->
304367
</choose>
305368
</if>
306369
<else>
307-
<label variable="locator" plural="contextual" form="short" strip-periods="true" prefix=", "/>
370+
<label variable="locator" plural="contextual" form="short" strip-periods="true" prefix=" "/>
308371
</else>
309372
</choose>
310373
<text variable="locator"/>
311374
</group>
312375
</macro>
313376
<macro name="short-form">
314377
<!-- Hump to overcome: cannot check against existence of short title.
315-
Not implemented: "cited to" for cases, construct short casenames, adding ref to article -->
378+
Not implemented: "cited to" for cases construct short casenames adding ref to article -->
316379
<choose>
317380
<if type="bill legal_case legislation" match="none">
318381
<names variable="author">
@@ -330,11 +393,11 @@ Not implemented: "cited to" for cases, construct short casenames, adding ref to
330393
<choose>
331394
<if variable="author">
332395
<text variable="authority" suffix=", "/>
333-
<date form="numeric" variable="issued" suffix=", "/>
396+
<date form="numeric" variable="issued" suffix=" "/>
334397
</if>
335398
<else-if variable="title" match="none">
336399
<text variable="authority" suffix=", "/>
337-
<date form="numeric" variable="issued" suffix=", "/>
400+
<date form="numeric" variable="issued" suffix=" "/>
338401
</else-if>
339402
</choose>
340403
</if>
@@ -353,7 +416,7 @@ Not implemented: "cited to" for cases, construct short casenames, adding ref to
353416
</group>
354417
</macro>
355418
<citation et-al-min="4" et-al-use-first="1">
356-
<!-- translator needs to be added for chapter, book, film etc. chapter? -->
419+
<!-- translator needs to be added for chapter book film etc. chapter? -->
357420
<layout delimiter="; " suffix=".">
358421
<choose>
359422
<!-- Not implemented: ibid only needs capitalize-first if it's the first word in a footnote -->
@@ -385,9 +448,21 @@ Not implemented: "cited to" for cases, construct short casenames, adding ref to
385448
<if type="bill legislation" match="any">
386449
<text macro="render-bill"/>
387450
</if>
451+
<else-if type="song" match="any">
452+
<text macro="render-song"/>
453+
</else-if>
454+
<else-if type="patent" match="any">
455+
<text macro="render-patent"/>
456+
</else-if>
457+
<else-if type="manuscript" match="any">
458+
<text macro="render-manuscript"/>
459+
</else-if>
388460
<else-if type="legal_case">
389461
<text macro="render-case"/>
390462
</else-if>
463+
<else-if type="report">
464+
<text macro="render-report"/>
465+
</else-if>
391466
<else>
392467
<text macro="author-note" strip-periods="true"/>
393468
<choose>
@@ -412,9 +487,7 @@ Not implemented: "cited to" for cases, construct short casenames, adding ref to
412487
<else-if type="book">
413488
<text macro="render-book"/>
414489
</else-if>
415-
<else-if type="report">
416-
<text macro="render-report"/>
417-
</else-if>
490+
<!-- <else-if type="song" match="any"><text macro="render-song"/></else-if><else-if type="patent" match="any"><text macro="render-patent"/></else-if><else-if type="manuscript" match="any"><text macro="render-manuscript"/></else-if> -->
418491
<else>
419492
<group delimiter=" ">
420493
<group delimiter=", ">
@@ -430,6 +503,13 @@ Not implemented: "cited to" for cases, construct short casenames, adding ref to
430503
</choose>
431504
</group>
432505
<text macro="pinpoint"/>
506+
<text variable="note" prefix=", "/>
507+
<choose>
508+
<if type="legal_case" match="any">
509+
<text variable="references" prefix=", "/>
510+
</if>
511+
</choose>
512+
<text variable="title-short" prefix=" [" suffix="]" font-style="italic"/>
433513
</group>
434514
</else>
435515
</choose>
@@ -439,6 +519,7 @@ Not implemented: "cited to" for cases, construct short casenames, adding ref to
439519
<sort>
440520
<key macro="sort-by-type"/>
441521
<key macro="author-bib"/>
522+
<key variable="title"/>
442523
<key variable="issued"/>
443524
</sort>
444525
<layout suffix=".">
@@ -481,6 +562,15 @@ Not implemented: "cited to" for cases, construct short casenames, adding ref to
481562
<else-if type="report">
482563
<text macro="render-report"/>
483564
</else-if>
565+
<else-if type="patent">
566+
<text macro="render-patent"/>
567+
</else-if>
568+
<else-if type="song">
569+
<text macro="render-song"/>
570+
</else-if>
571+
<else-if type="manuscript">
572+
<text macro="render-manuscript"/>
573+
</else-if>
484574
<else>
485575
<group>
486576
<group delimiter=", ">

0 commit comments

Comments
 (0)