Skip to content

Commit 4205586

Browse files
authored
Update mcgill-en.csl - include render-legislation macro (JabRef#4579)
1 parent 7d857f1 commit 4205586

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

mcgill-en.csl

+25-3
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,20 @@ all the other tests should have been done... -->
274274
</choose>
275275
</group>
276276
</macro>
277+
<macro name="render-legislation">
278+
<group delimiter=", ">
279+
<!-- if no volume, assume bill -->
280+
<group delimiter=" ">
281+
<text variable="title" font-style="italic"/>
282+
<text variable="references" prefix="(" suffix=")"/>
283+
</group>
284+
<group delimiter=" ">
285+
<text variable="container-title"/>
286+
<date form="text" variable="issued" date-parts="year"/>
287+
</group>
288+
<text variable="section"/>
289+
</group>
290+
</macro>
277291
<macro name="render-patent">
278292
<group delimiter=" ">
279293
<text variable="title" quotes="true" suffix=","/>
@@ -386,6 +400,11 @@ Not implemented: "cited to" for cases construct short casenames adding ref to ar
386400
</names>
387401
</substitute>
388402
</names>
403+
<choose>
404+
<if type="article-journal">
405+
<text variable="title-short" quotes="true" prefix=", "/>
406+
</if>
407+
</choose>
389408
</if>
390409
<else>
391410
<choose>
@@ -445,9 +464,12 @@ Not implemented: "cited to" for cases construct short casenames adding ref to ar
445464
<group>
446465
<group delimiter=", ">
447466
<choose>
448-
<if type="bill legislation" match="any">
449-
<text macro="render-bill"/>
467+
<if type="legislation" match="any">
468+
<text macro="render-legislation"/>
450469
</if>
470+
<else-if type="bill" match="any">
471+
<text macro="render-bill"/>
472+
</else-if>
451473
<else-if type="song" match="any">
452474
<text macro="render-song"/>
453475
</else-if>
@@ -507,9 +529,9 @@ Not implemented: "cited to" for cases construct short casenames adding ref to ar
507529
<choose>
508530
<if type="legal_case" match="any">
509531
<text variable="references" prefix=", "/>
532+
<text variable="title-short" prefix=" [" suffix="]" font-style="italic"/>
510533
</if>
511534
</choose>
512-
<text variable="title-short" prefix=" [" suffix="]" font-style="italic"/>
513535
</group>
514536
</else>
515537
</choose>

0 commit comments

Comments
 (0)