Skip to content

Commit

Permalink
Update mcgill-en.csl - include render-legislation macro (#4579)
Browse files Browse the repository at this point in the history
  • Loading branch information
gspanglett committed Feb 28, 2020
1 parent 7d857f1 commit 4205586
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions mcgill-en.csl
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,20 @@ all the other tests should have been done... -->
</choose>
</group>
</macro>
<macro name="render-legislation">
<group delimiter=", ">
<!-- if no volume, assume bill -->
<group delimiter=" ">
<text variable="title" font-style="italic"/>
<text variable="references" prefix="(" suffix=")"/>
</group>
<group delimiter=" ">
<text variable="container-title"/>
<date form="text" variable="issued" date-parts="year"/>
</group>
<text variable="section"/>
</group>
</macro>
<macro name="render-patent">
<group delimiter=" ">
<text variable="title" quotes="true" suffix=","/>
Expand Down Expand Up @@ -386,6 +400,11 @@ Not implemented: "cited to" for cases construct short casenames adding ref to ar
</names>
</substitute>
</names>
<choose>
<if type="article-journal">
<text variable="title-short" quotes="true" prefix=", "/>
</if>
</choose>
</if>
<else>
<choose>
Expand Down Expand Up @@ -445,9 +464,12 @@ Not implemented: "cited to" for cases construct short casenames adding ref to ar
<group>
<group delimiter=", ">
<choose>
<if type="bill legislation" match="any">
<text macro="render-bill"/>
<if type="legislation" match="any">
<text macro="render-legislation"/>
</if>
<else-if type="bill" match="any">
<text macro="render-bill"/>
</else-if>
<else-if type="song" match="any">
<text macro="render-song"/>
</else-if>
Expand Down Expand Up @@ -507,9 +529,9 @@ Not implemented: "cited to" for cases construct short casenames adding ref to ar
<choose>
<if type="legal_case" match="any">
<text variable="references" prefix=", "/>
<text variable="title-short" prefix=" [" suffix="]" font-style="italic"/>
</if>
</choose>
<text variable="title-short" prefix=" [" suffix="]" font-style="italic"/>
</group>
</else>
</choose>
Expand Down

0 comments on commit 4205586

Please sign in to comment.