Skip to content

Commit

Permalink
Update file
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 15, 2024
1 parent 7932faa commit 22310c0
Showing 1 changed file with 78 additions and 50 deletions.
128 changes: 78 additions & 50 deletions _extensions/minapa/apa.csl
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,23 @@
<names variable="author"/>
<!-- Note: `narrator` only cited in secondary-contributors -->
<names variable="illustrator"/>
<names variable="script-writer director">
<!-- Note: Actors/performers and producers [not executive] not cited in APA style. -->
<!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
<choose>
<if type="broadcast">
<names variable="script-writer director" delimiter=", &amp; ">
<!-- Note: Actors/performers and producers [not executive] not cited in APA style. -->
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=" (" suffix=")" text-case="title"/>
</names>
</if>
</choose>
<names variable="director">
<!-- For non-broadcast items, APA only cites directors and not writers. -->
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="guest host">
<!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
<names variable="guest host" delimiter=", &amp; ">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=" (" suffix=")" text-case="title"/>
</names>
Expand Down Expand Up @@ -174,17 +185,20 @@
</choose>
</if>
</choose>
<names variable="series-creator executive-producer">
<names variable="executive-producer">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="series-creator">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=" (" suffix=")" text-case="title"/>
</names>
<names variable="editor-translator" delimiter=", ">
<names variable="editor-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"/>
</names>
<!-- TODO: Split editor and translator into separate lines once processors begin to automatically create
the editor-translator variable. -->
<names variable="editor translator" delimiter=", ">
<!-- Note: Translator is not cited as a primary creator (only as Ed. & Trans.). -->
<names variable="editor">
<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"/>
</names>
Expand Down Expand Up @@ -279,8 +293,15 @@
<substitute>
<names variable="author"/>
<names variable="illustrator"/>
<names variable="script-writer director"/>
<names variable="guest host"/>
<!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
<choose>
<if type="broadcast">
<names variable="script-writer director" delimiter=", &amp; "/>
</if>
</choose>
<names variable="director"/>
<!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
<names variable="guest host" delimiter=", &amp; "/>
<names variable="producer"/>
<choose>
<if variable="container-title">
Expand All @@ -291,7 +312,8 @@
</choose>
</if>
</choose>
<names variable="series-creator executive-producer"/>
<names variable="executive-producer"/>
<names variable="series-creator"/>
<names variable="editor"/>
<names variable="editorial-director"/>
<names variable="compiler"/>
Expand Down Expand Up @@ -1172,33 +1194,44 @@
</names>
</if>
</choose>
<!-- TODO: When editor-translator becomes available in processors, add a test:
variable="editor-translator" match="none"; then print translator -->
<choose>
<if type="post webpage" match="none">
<!-- Webpages treat container-title like publisher -->
<choose>
<if variable="container-title" match="none">
<group delimiter="; ">
<names variable="container-author">
<label form="verb-short" suffix=" " text-case="title"/>
<name and="symbol" initialize-with=". " delimiter=", "/>
</names>
<names variable="editor translator" delimiter="; ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="title"/>
</names>
<names variable="illustrator narrator" delimiter="; ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="title"/>
</names>
<names variable="compiler chair organizer curator series-creator executive-producer" delimiter="; ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="long" prefix=", " text-case="title"/>
</names>
</group>
</if>
</choose>
<group delimiter="; ">
<names variable="illustrator narrator" delimiter="; ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="title"/>
</names>
<choose>
<if variable="container-title" match="none">
<group delimiter="; ">
<names variable="container-author">
<label form="verb-short" suffix=" " text-case="title"/>
<name and="symbol" initialize-with=". " delimiter=", "/>
</names>
<names variable="editor translator" delimiter="; ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="title"/>
</names>
<names variable="compiler chair organizer curator series-creator executive-producer" delimiter="; ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="long" prefix=", " text-case="title"/>
</names>
</group>
</if>
<else>
<choose>
<!-- TODO: Check logic once processors start to automatically populate editor-translator. -->
<if variable="editor-translator" match="none">
<names variable="translator" delimiter="; ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="title"/>
</names>
</if>
</choose>
</else>
</choose>
</group>
</if>
<else>
<group delimiter="; ">
Expand Down Expand Up @@ -1280,17 +1313,10 @@
</choose>
</macro>
<macro name="version">
<choose>
<if is-numeric="version">
<group delimiter=" ">
<label variable="version" text-case="capitalize-first"/>
<text variable="version"/>
</group>
</if>
<else>
<text variable="version"/>
</else>
</choose>
<group delimiter=" ">
<label variable="version" text-case="capitalize-first"/>
<text variable="version"/>
</group>
</macro>
<macro name="edition">
<choose>
Expand Down Expand Up @@ -1539,17 +1565,19 @@
</else>
</choose>
<group delimiter=", ">
<names variable="series-creator executive-producer" delimiter=", &amp; ">
<names variable="executive-producer">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="long" text-case="title" prefix=" (" suffix=")"/>
<substitute>
<names variable="series-creator"/>
<names variable="editor-translator">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" text-case="title" prefix=" (" suffix=")"/>
</names>
<!-- TODO: Split editor and translator lines once processors start to automatically
create editor-translator variable. -->
<names variable="editor translator">
<!-- TODO: Translator omitted here on the assumption that editor-translators are uncommon
for chapter citations. If needed, direct entry or automatic population of
`editor-translator` can produce combined labels. -->
<names variable="editor">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" text-case="title" prefix=" (" suffix=")"/>
</names>
Expand Down

0 comments on commit 22310c0

Please sign in to comment.