Skip to content

Commit

Permalink
Accomodate entry without byline and software with container-title
Browse files Browse the repository at this point in the history
  • Loading branch information
bwiernik committed Feb 20, 2019
1 parent 41c9b33 commit 887cbe0
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions apa.csl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
</macro>
<macro name="container-contributors">
<choose>
<if type="broadcast chapter entry entry-dictionary entry-encyclopedia graphic map personal_communication report speech" match="any">
<!-- book is here to catch software with container titles -->
<if type="book broadcast chapter entry entry-dictionary entry-encyclopedia graphic map personal_communication report speech" match="any">
<text macro="container-contributors-booklike"/>
</if>
<else-if type="paper-conference">
Expand Down Expand Up @@ -120,7 +121,8 @@
</macro>
<macro name="secondary-contributors">
<choose>
<if type="broadcast chapter entry entry-dictionary entry-encyclopedia graphic map report" match="any">
<!-- book is here to catch software with container titles -->
<if type="book broadcast chapter entry entry-dictionary entry-encyclopedia graphic map report" match="any">
<text macro="secondary-contributors-booklike"/>
</if>
<else-if type="personal_communication">
Expand Down Expand Up @@ -257,6 +259,14 @@
</names>
<choose>
<if variable="container-title">
<choose>
<if type="book entry entry-dictionary entry-encyclopedia">
<text macro="title"/>
</if>
<else>
<names variable="translator"/>
</else>
</choose>
<names variable="translator">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" (" suffix=")" text-case="title"/>
Expand Down Expand Up @@ -360,7 +370,14 @@
<names variable="director"/>
<choose>
<if variable="container-title">
<names variable="translator"/>
<choose>
<if type="book entry entry-dictionary entry-encyclopedia">
<text variable="title" form="short" quotes="true"/>
</if>
<else>
<names variable="translator"/>
</else>
</choose>
</if>
</choose>
<names variable="editor"/>
Expand Down Expand Up @@ -512,7 +529,8 @@
<macro name="description">
<group prefix="(" suffix=")">
<choose>
<if type="report">
<!-- book is here to catch software with container titles -->
<if type="book report">
<choose>
<if variable="container-title">
<text macro="secondary-contributors"/>
Expand Down Expand Up @@ -651,7 +669,8 @@
<else-if type="speech thesis" match="any">
<text variable="medium" text-case="capitalize-first"/>
</else-if>
<else-if type="report">
<!-- book is here to catch software with container titles -->
<else-if type="book report">
<choose>
<if variable="container-title" match="none">
<text macro="format-report"/>
Expand Down Expand Up @@ -1157,7 +1176,8 @@
</if>
</choose>
</else-if>
<else-if type="report" variable="container-title" match="all">
<!-- book is here to catch software with container titles -->
<else-if type="book report" variable="container-title" match="all">
<group delimiter=" ">
<text term="in" text-case="capitalize-first" suffix=" "/>
<group delimiter=", ">
Expand Down Expand Up @@ -1199,7 +1219,7 @@
</else>
</choose>
</else-if>
<else-if type="broadcast chapter entry entry-dictionary entry-encyclopedia graphic map speech" match="any">
<else-if type="book broadcast chapter entry entry-dictionary entry-encyclopedia graphic map speech" match="any">
<text macro="container-booklike"/>
</else-if>
<else-if type="bill legal_case legislation treaty" match="any">
Expand Down

0 comments on commit 887cbe0

Please sign in to comment.