Skip to content

Commit 698cf1c

Browse files
authored
APA: event-title and conditional event (#6152)
To handle Zotero's updated data model
1 parent 58d3f8f commit 698cf1c

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

apa.csl

+21-18
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@
320320
<!-- General categories of item types:
321321
Periodical: article-journal article-magazine article-newspaper post-weblog review review-book
322322
Periodical or Booklike: paper-conference
323-
Booklike: article book broadcast chapter dataset entry entry-dictionary entry-encyclopedia figure
324-
graphic interview manuscript map motion_picture musical_score pamphlet patent
323+
Booklike: article book broadcast chapter dataset entry entry-dictionary entry-encyclopedia figure
324+
graphic interview manuscript map motion_picture musical_score pamphlet patent
325325
personal_communication report song speech thesis post webpage
326326
Legal: bill legal_case legislation treaty
327327
-->
@@ -389,7 +389,7 @@
389389
</if>
390390
<else-if type="interview personal_communication" match="any">
391391
<choose>
392-
<!-- These variables indicate that the letter is retrievable by the reader.
392+
<!-- These variables indicate that the letter is retrievable by the reader.
393393
If not, then use the APA in-text-only personal communication format -->
394394
<if variable="archive container-title DOI publisher URL" match="none">
395395
<group delimiter=", ">
@@ -470,7 +470,7 @@
470470
</if>
471471
</choose>
472472
</else-if>
473-
<!-- Only year: article article-journal book chapter entry entry-dictionary entry-encyclopedia dataset figure graphic
473+
<!-- Only year: article article-journal book chapter entry entry-dictionary entry-encyclopedia dataset figure graphic
474474
manuscript map musical_score paper-conference[published] patent report review review-book thesis -->
475475
</choose>
476476
</if>
@@ -530,7 +530,7 @@
530530
<if type="interview personal_communication" match="any">
531531
<choose>
532532
<if variable="archive container-title DOI publisher URL" match="none">
533-
<!-- These variables indicate that the communication is retrievable by the reader.
533+
<!-- These variables indicate that the communication is retrievable by the reader.
534534
If not, then use the in-text-only personal communication format -->
535535
<date variable="issued" form="text"/>
536536
</if>
@@ -1295,7 +1295,7 @@
12951295
<macro name="reviewed-title">
12961296
<choose>
12971297
<if variable="reviewed-title">
1298-
<!-- Not possible to distinguish TV series episode from other reviewed
1298+
<!-- Not possible to distinguish TV series episode from other reviewed
12991299
works [Ex. 69] -->
13001300
<text variable="reviewed-title" font-style="italic"/>
13011301
</if>
@@ -1553,18 +1553,21 @@
15531553
</macro>
15541554
<macro name="event">
15551555
<choose>
1556-
<if variable="event">
1557-
<!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to
1558-
both publisher-place and event-place. Remove this 'choose' when that is changed. -->
1559-
<choose>
1560-
<if variable="collection-editor editor editorial-director issue page volume" match="none">
1561-
<!-- Don't print event info if published in a proceedings -->
1562-
<group delimiter=", ">
1556+
<if variable="collection-editor editor editorial-director issue page volume" match="none">
1557+
<!-- Don't print event info if published in a proceedings -->
1558+
<group delimiter=", ">
1559+
<choose>
1560+
<!-- We expect "event-title" to be used, but applications may not be updated yet.
1561+
This ensures that either can be accpeted. Remove if procesor logic can handle this. -->
1562+
<if variable="event-title">
1563+
<text variable="event-title"/>
1564+
</if>
1565+
<else>
15631566
<text variable="event"/>
1564-
<text variable="event-place"/>
1565-
</group>
1566-
</if>
1567-
</choose>
1567+
</else>
1568+
</choose>
1569+
<text variable="event-place"/>
1570+
</group>
15681571
</if>
15691572
</choose>
15701573
</macro>
@@ -1575,7 +1578,7 @@
15751578
<group prefix="(" suffix=")">
15761579
<choose>
15771580
<if variable="references">
1578-
<!-- This provides the option for more elaborate description
1581+
<!-- This provides the option for more elaborate description
15791582
of publication history, such as full "reprinted" references
15801583
(examples 11, 43, 44) or retracted references -->
15811584
<text variable="references"/>

0 commit comments

Comments
 (0)