Skip to content

Commit 231ec2d

Browse files
committed
MLA: Simplify container 2 conditions
1 parent e33115a commit 231ec2d

5 files changed

+12
-15
lines changed

diffs/modern-language-association-annotated-bibliography.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<updated>2025-07-15T00:00:00+00:00</updated>
2626
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
2727
</info>
28-
@@ -1219,6 +1220,7 @@
28+
@@ -1220,6 +1221,7 @@
2929
<text macro="container2"/>
3030
<text macro="supplemental-element-end"/>
3131
</group>

diffs/modern-language-association-no-url.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
</group>
3838
</macro>
3939
<macro name="container1-location-event">
40-
@@ -1206,7 +1202,6 @@
40+
@@ -1207,7 +1203,6 @@
4141
<key macro="supplemental-element-after-title"/>
4242
<key macro="container1"/>
4343
<key macro="supplemental-element-between"/>
4444
- <key macro="container2"/>
4545
<key macro="supplemental-element-end"/>
4646
</sort>
4747
<layout suffix=".">
48-
@@ -1216,7 +1211,6 @@
48+
@@ -1217,7 +1212,6 @@
4949
<text macro="supplemental-element-after-title"/>
5050
<text macro="container1"/>
5151
<text macro="supplemental-element-between"/>

diffs/modern-language-association-notes-no-url.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</group>
4646
</macro>
4747
<macro name="container1-location-event">
48-
@@ -1182,7 +1178,7 @@
48+
@@ -1183,7 +1179,7 @@
4949
</group>
5050
</macro>
5151
<citation disambiguate-add-givenname="true" disambiguate-add-names="true" et-al-min="3" et-al-use-first="1">
@@ -54,15 +54,15 @@
5454
<choose>
5555
<if locator="page line" match="any">
5656
<group delimiter=" ">
57-
@@ -1206,7 +1202,6 @@
57+
@@ -1207,7 +1203,6 @@
5858
<key macro="supplemental-element-after-title"/>
5959
<key macro="container1"/>
6060
<key macro="supplemental-element-between"/>
6161
- <key macro="container2"/>
6262
<key macro="supplemental-element-end"/>
6363
</sort>
6464
<layout suffix=".">
65-
@@ -1216,7 +1211,6 @@
65+
@@ -1217,7 +1212,6 @@
6666
<text macro="supplemental-element-after-title"/>
6767
<text macro="container1"/>
6868
<text macro="supplemental-element-between"/>

diffs/modern-language-association-notes.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<updated>2025-07-15T00:00:00+00:00</updated>
3434
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
3535
</info>
36-
@@ -1182,7 +1183,7 @@
36+
@@ -1183,7 +1184,7 @@
3737
</group>
3838
</macro>
3939
<citation disambiguate-add-givenname="true" disambiguate-add-names="true" et-al-min="3" et-al-use-first="1">

templates/modern-language-association-template.csl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -949,17 +949,14 @@
949949
<!-- 6. Container 2 (MLA 5.102) -->
950950
<macro name="container2">
951951
<group delimiter=", ">
952-
<!-- Title of Container -->
953952
<choose>
954-
<if match="any" variable="DOI URL">
953+
<if match="none" variable="DOI URL"/>
954+
<else-if variable="source">
955+
<!-- Title of Container -->
955956
<text font-style="italic" variable="source"/>
956-
</if>
957-
</choose>
958-
<!-- Location -->
959-
<choose>
960-
<if variable="source">
957+
<!-- Location -->
961958
<text macro="container1-location-URI"/>
962-
</if>
959+
</else-if>
963960
</choose>
964961
</group>
965962
</macro>

0 commit comments

Comments
 (0)