Debian Codegraph @

vignettes/apa.csl

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" page-range-format="expanded">
3 <info>
4 <title>American Psychological Association 7th edition</title>
5 <title-short>APA</title-short>
6 <id>http://www.zotero.org/styles/apa</id>
7 <link href="http://www.zotero.org/styles/apa" rel="self"/>
8 <link href="http://www.zotero.org/styles/apa-6th-edition" rel="template"/>
9 <link href="https://apastyle.apa.org/style-grammar-guidelines/references/examples" rel="documentation"/>
10 <author>
11 <name>Brenton M. Wiernik</name>
12 <email>[email protected]</email>
13 </author>
14 <category citation-format="author-date"/>
15 <category field="psychology"/>
16 <category field="generic-base"/>
17 <updated>2020-07-13T03:13:43+00:00</updated>
18 <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
19 </info>
20 <locale xml:lang="en">
21 <terms>
22 <term name="editortranslator" form="short">
23 <single>ed. &amp; trans.</single>
24 <multiple>eds. &amp; trans.</multiple>
25 </term>
26 <term name="translator" form="short">trans.</term>
27 <term name="interviewer" form="short">
28 <single>interviewer</single>
29 <multiple>interviewers</multiple>
30 </term>
31 <term name="collection-editor" form="short">
32 <single>ed.</single>
33 <multiple>eds.</multiple>
34 </term>
35 <term name="circa" form="short">ca.</term>
36 <term name="bc"> B.C.E.</term>
37 <term name="ad"> C.E.</term>
38 <term name="letter">personal communication</term>
39 <term name="letter" form="short">letter</term>
40 <term name="issue" form="long">
41 <single>issue</single>
42 <multiple>issues</multiple>
43 </term>
44 </terms>
45 </locale>
46 <locale xml:lang="af">
47 <terms>
48 <term name="letter">persoonlike kommunikasie</term>
49 <term name="letter" form="short">brief</term>
50 </terms>
51 </locale>
52 <locale xml:lang="ar">
53 <terms>
54 <term name="letter">اتصال شخصي</term>
55 <term name="letter" form="short">خطاب</term>
56 </terms>
57 </locale>
58 <locale xml:lang="bg">
59 <terms>
60 <term name="letter">лична комуникация</term>
61 <term name="letter" form="short">писмо</term>
62 </terms>
63 </locale>
64 <locale xml:lang="ca">
65 <terms>
66 <term name="letter">comunicació personal</term>
67 <term name="letter" form="short">carta</term>
68 </terms>
69 </locale>
70 <locale xml:lang="cs">
71 <terms>
72 <term name="letter">osobní komunikace</term>
73 <term name="letter" form="short">dopis</term>
74 </terms>
75 </locale>
76 <locale xml:lang="cy">
77 <terms>
78 <term name="letter">cyfathrebu personol</term>
79 <term name="letter" form="short">llythyr</term>
80 </terms>
81 </locale>
82 <locale xml:lang="da">
83 <terms>
84 <term name="et-al">et al.</term>
85 <term name="letter">personlig kommunikation</term>
86 <term name="letter" form="short">brev</term>
87 </terms>
88 </locale>
89 <locale xml:lang="de">
90 <terms>
91 <term name="et-al">et al.</term>
92 <term name="letter">persönliche Kommunikation</term>
93 <term name="letter" form="short">Brief</term>
94 </terms>
95 </locale>
96 <locale xml:lang="el">
97 <terms>
98 <term name="letter">προσωπική επικοινωνία</term>
99 <term name="letter" form="short">επιστολή</term>
100 </terms>
101 </locale>
102 <locale xml:lang="es">
103 <terms>
104 <term name="from">de</term>
105 <term name="letter">comunicación personal</term>
106 <term name="letter" form="short">carta</term>
107 </terms>
108 </locale>
109 <locale xml:lang="et">
110 <terms>
111 <term name="letter">isiklik suhtlus</term>
112 <term name="letter" form="short">kiri</term>
113 </terms>
114 </locale>
115 <locale xml:lang="eu">
116 <terms>
117 <term name="letter">komunikazio pertsonala</term>
118 <term name="letter" form="short">gutuna</term>
119 </terms>
120 </locale>
121 <locale xml:lang="fa">
122 <terms>
123 <term name="letter">ارتباط شخصی</term>
124 <term name="letter" form="short">نامه</term>
125 </terms>
126 </locale>
127 <locale xml:lang="fi">
128 <terms>
129 <term name="letter">henkilökohtainen viestintä</term>
130 <term name="letter" form="short">kirje</term>
131 </terms>
132 </locale>
133 <locale xml:lang="fr">
134 <terms>
135 <term name="letter">communication personnelle</term>
136 <term name="letter" form="short">lettre</term>
137 <term name="editor" form="short">
138 <single>éd.</single>
139 <multiple>éds.</multiple>
140 </term>
141 </terms>
142 </locale>
143 <locale xml:lang="he">
144 <terms>
145 <term name="letter">תקשורת אישית</term>
146 <term name="letter" form="short">מכתב</term>
147 </terms>
148 </locale>
149 <locale xml:lang="hr">
150 <terms>
151 <term name="letter">osobna komunikacija</term>
152 <term name="letter" form="short">pismo</term>
153 </terms>
154 </locale>
155 <locale xml:lang="hu">
156 <terms>
157 <term name="letter">személyes kommunikáció</term>
158 <term name="letter" form="short">levél</term>
159 </terms>
160 </locale>
161 <locale xml:lang="id">
162 <terms>
163 <term name="letter">komunikasi pribadi</term>
164 <term name="letter" form="short">surat</term>
165 </terms>
166 </locale>
167 <locale xml:lang="is">
168 <terms>
169 <term name="letter">persónuleg samskipti</term>
170 <term name="letter" form="short">bréf</term>
171 </terms>
172 </locale>
173 <locale xml:lang="it">
174 <terms>
175 <term name="letter">comunicazione personale</term>
176 <term name="letter" form="short">lettera</term>
177 </terms>
178 </locale>
179 <locale xml:lang="ja">
180 <terms>
181 <term name="letter">個人的なやり取り</term>
182 <term name="letter" form="short">手紙</term>
183 </terms>
184 </locale>
185 <locale xml:lang="ko">
186 <terms>
187 <term name="letter">개인 서신</term>
188 <term name="letter" form="short">편지</term>
189 </terms>
190 </locale>
191 <locale xml:lang="la">
192 <terms>
193 <term name="letter"/>
194 <term name="letter" form="short">epistula</term>
195 </terms>
196 </locale>
197 <locale xml:lang="lt">
198 <terms>
199 <term name="letter">communicationis personalis</term>
200 <term name="letter" form="short"/>
201 </terms>
202 </locale>
203 <locale xml:lang="lv">
204 <terms>
205 <term name="letter">personīga komunikācija</term>
206 <term name="letter" form="short">vēstule</term>
207 </terms>
208 </locale>
209 <locale xml:lang="mn">
210 <terms>
211 <term name="letter">хувийн харилцаа холбоо</term>
212 <term name="letter" form="short">захиа</term>
213 </terms>
214 </locale>
215 <locale xml:lang="nb">
216 <terms>
217 <term name="et-al">et al.</term>
218 <term name="letter">personlig kommunikasjon</term>
219 <term name="letter" form="short">brev</term>
220 </terms>
221 </locale>
222 <locale xml:lang="nl">
223 <terms>
224 <term name="et-al">et al.</term>
225 <term name="letter">persoonlijke communicatie</term>
226 <term name="letter" form="short">brief</term>
227 </terms>
228 </locale>
229 <locale xml:lang="nn">
230 <terms>
231 <term name="et-al">et al.</term>
232 <term name="letter">personlig kommunikasjon</term>
233 <term name="letter" form="short">brev</term>
234 </terms>
235 </locale>
236 <locale xml:lang="pl">
237 <terms>
238 <term name="letter">osobista komunikacja</term>
239 <term name="letter" form="short">list</term>
240 </terms>
241 </locale>
242 <locale xml:lang="pt">
243 <terms>
244 <term name="letter">comunicação pessoal</term>
245 <term name="letter" form="short">carta</term>
246 </terms>
247 </locale>
248 <locale xml:lang="ro">
249 <terms>
250 <term name="letter">comunicare personală</term>
251 <term name="letter" form="short">scrisoare</term>
252 </terms>
253 </locale>
254 <locale xml:lang="ru">
255 <terms>
256 <term name="letter">личная переписка</term>
257 <term name="letter" form="short">письмо</term>
258 </terms>
259 </locale>
260 <locale xml:lang="sk">
261 <terms>
262 <term name="letter">osobná komunikácia</term>
263 <term name="letter" form="short">list</term>
264 </terms>
265 </locale>
266 <locale xml:lang="sl">
267 <terms>
268 <term name="letter">osebna komunikacija</term>
269 <term name="letter" form="short">pismo</term>
270 </terms>
271 </locale>
272 <locale xml:lang="sr">
273 <terms>
274 <term name="letter">лична комуникација</term>
275 <term name="letter" form="short">писмо</term>
276 </terms>
277 </locale>
278 <locale xml:lang="sv">
279 <terms>
280 <term name="letter">personlig kommunikation</term>
281 <term name="letter" form="short">brev</term>
282 </terms>
283 </locale>
284 <locale xml:lang="th">
285 <terms>
286 <term name="letter">การสื่อสารส่วนบุคคล</term>
287 <term name="letter" form="short">จดหมาย</term>
288 </terms>
289 </locale>
290 <locale xml:lang="tr">
291 <terms>
292 <term name="letter">kişisel iletişim</term>
293 <term name="letter" form="short">mektup</term>
294 </terms>
295 </locale>
296 <locale xml:lang="uk">
297 <terms>
298 <term name="letter">особисте спілкування</term>
299 <term name="letter" form="short">лист</term>
300 </terms>
301 </locale>
302 <locale xml:lang="vi">
303 <terms>
304 <term name="letter">giao tiếp cá nhân</term>
305 <term name="letter" form="short">thư</term>
306 </terms>
307 </locale>
308 <locale xml:lang="zh-CN">
309 <terms>
310 <term name="letter">的私人交流</term>
311 <term name="letter" form="short">信函</term>
312 </terms>
313 </locale>
314 <locale xml:lang="zh-TW">
315 <terms>
316 <term name="letter">私人通訊</term>
317 <term name="letter" form="short">信函</term>
318 </terms>
319 </locale>
320 <!-- General categories of item types:
321 Periodical: article-journal article-magazine article-newspaper post-weblog review review-book
322 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
325 personal_communication report song speech thesis post webpage
326 Legal: bill legal_case legislation treaty
327 -->
328 <!-- APA references contain four parts: author, date, title, source -->
329 <macro name="author-bib">
330 <names variable="composer" delimiter=", ">
331 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
332 <substitute>
333 <names variable="author"/>
334 <names variable="illustrator"/>
335 <names variable="director">
336 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
337 <label form="long" prefix=" (" suffix=")" text-case="title"/>
338 </names>
339 <choose>
340 <if variable="container-title">
341 <choose>
342 <if type="book entry entry-dictionary entry-encyclopedia" match="any">
343 <choose>
344 <if variable="title">
345 <group delimiter=" ">
346 <text macro="title"/>
347 <text macro="parenthetical"/>
348 </group>
349 </if>
350 <else>
351 <text macro="title-and-descriptions"/>
352 </else>
353 </choose>
354 </if>
355 </choose>
356 </if>
357 </choose>
358 <!-- Test for editortranslator and put that first as that becomes available -->
359 <names variable="editor" delimiter=", ">
360 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
361 <label form="short" prefix=" (" suffix=")" text-case="title"/>
362 </names>
363 <names variable="editorial-director">
364 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
365 <label form="short" prefix=" (" suffix=")" text-case="title"/>
366 </names>
367 <names variable="collection-editor">
368 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
369 <label form="short" prefix=" (" suffix=")" text-case="title"/>
370 </names>
371 <choose>
372 <if variable="title">
373 <group delimiter=" ">
374 <text macro="title"/>
375 <text macro="parenthetical"/>
376 </group>
377 </if>
378 <else>
379 <text macro="title-and-descriptions"/>
380 </else>
381 </choose>
382 </substitute>
383 </names>
384 </macro>
385 <macro name="author-intext">
386 <choose>
387 <if type="bill legal_case legislation treaty" match="any">
388 <text macro="title-intext"/>
389 </if>
390 <else-if type="interview personal_communication">
391 <choose>
392 <!-- These variables indicate that the letter is retrievable by the reader.
393 If not, then use the APA in-text-only personal communication format -->
394 <if variable="archive container-title DOI publisher URL" match="none">
395 <group delimiter=", ">
396 <names variable="author">
397 <name and="symbol" delimiter=", " initialize-with=". "/>
398 <substitute>
399 <text macro="title-intext"/>
400 </substitute>
401 </names>
402 <!-- Replace with term="personal-communication" if that becomes available -->
403 <text term="letter"/>
404 </group>
405 </if>
406 <else>
407 <names variable="author" delimiter=", ">
408 <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
409 <substitute>
410 <text macro="title-intext"/>
411 </substitute>
412 </names>
413 </else>
414 </choose>
415 </else-if>
416 <else>
417 <names variable="composer" delimiter=", ">
418 <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
419 <substitute>
420 <names variable="author"/>
421 <names variable="illustrator"/>
422 <names variable="director"/>
423 <choose>
424 <if variable="container-title">
425 <choose>
426 <if type="book entry entry-dictionary entry-encyclopedia" match="any">
427 <text macro="title-intext"/>
428 </if>
429 </choose>
430 </if>
431 </choose>
432 <names variable="editor"/>
433 <names variable="editorial-director"/>
434 <text macro="title-intext"/>
435 </substitute>
436 </names>
437 </else>
438 </choose>
439 </macro>
440 <macro name="date-bib">
441 <group delimiter=" " prefix="(" suffix=")">
442 <choose>
443 <if is-uncertain-date="issued">
444 <text term="circa" form="short"/>
445 </if>
446 </choose>
447 <group>
448 <choose>
449 <if variable="issued">
450 <date variable="issued">
451 <date-part name="year"/>
452 </date>
453 <text variable="year-suffix"/>
454 <choose>
455 <if type="article-magazine article-newspaper broadcast interview motion_picture pamphlet personal_communication post post-weblog song speech webpage" match="any">
456 <!-- Many video and audio examples in manual give full dates. Err on the side of too much information. -->
457 <date variable="issued">
458 <date-part prefix=", " name="month"/>
459 <date-part prefix=" " name="day"/>
460 </date>
461 </if>
462 <else-if type="paper-conference">
463 <!-- Capture 'speech' stored as 'paper-conference' -->
464 <choose>
465 <if variable="collection-editor editor editorial-director issue page volume" match="none">
466 <date variable="issued">
467 <date-part prefix=", " name="month"/>
468 <date-part prefix=" " name="day"/>
469 </date>
470 </if>
471 </choose>
472 </else-if>
473 <!-- Only year: article article-journal book chapter entry entry-dictionary entry-encyclopedia dataset figure graphic
474 manuscript map musical_score paper-conference[published] patent report review review-book thesis -->
475 </choose>
476 </if>
477 <else-if variable="status">
478 <group>
479 <text variable="status" text-case="lowercase"/>
480 <text variable="year-suffix" prefix="-"/>
481 </group>
482 </else-if>
483 <else>
484 <group>
485 <text term="no date" form="short"/>
486 <text variable="year-suffix" prefix="-"/>
487 </group>
488 </else>
489 </choose>
490 </group>
491 </group>
492 </macro>
493 <macro name="date-sort-group">
494 <choose>
495 <if variable="issued">
496 <text value="1"/>
497 </if>
498 <else-if variable="status">
499 <text value="2"/>
500 </else-if>
501 <else>
502 <text value="0"/>
503 </else>
504 </choose>
505 </macro>
506 <macro name="date-sort-date">
507 <choose>
508 <if type="article-magazine article-newspaper broadcast interview pamphlet personal_communication post post-weblog speech treaty webpage" match="any">
509 <date variable="issued" form="numeric"/>
510 </if>
511 <else-if type="paper-conference">
512 <!-- Capture 'speech' stored as 'paper-conference' -->
513 <choose>
514 <if variable="collection-editor editor editorial-director issue page volume" match="none">
515 <date variable="issued" form="numeric"/>
516 </if>
517 </choose>
518 </else-if>
519 <else>
520 <date variable="issued" form="numeric"/>
521 </else>
522 </choose>
523 </macro>
524 <macro name="date-intext">
525 <choose>
526 <if variable="issued">
527 <group delimiter="/">
528 <group delimiter=" ">
529 <choose>
530 <if is-uncertain-date="original-date">
531 <text term="circa" form="short"/>
532 </if>
533 </choose>
534 <date variable="original-date">
535 <date-part name="year"/>
536 </date>
537 </group>
538 <group delimiter=" ">
539 <choose>
540 <if is-uncertain-date="issued">
541 <text term="circa" form="short"/>
542 </if>
543 </choose>
544 <group>
545 <choose>
546 <if type="interview personal_communication">
547 <choose>
548 <if variable="archive container-title DOI publisher URL" match="none">
549 <!-- These variables indicate that the communication is retrievable by the reader.
550 If not, then use the in-text-only personal communication format -->
551 <date variable="issued" form="text"/>
552 </if>
553 <else>
554 <date variable="issued">
555 <date-part name="year"/>
556 </date>
557 </else>
558 </choose>
559 </if>
560 <else>
561 <date variable="issued">
562 <date-part name="year"/>
563 </date>
564 </else>
565 </choose>
566 <text variable="year-suffix"/>
567 </group>
568 </group>
569 </group>
570 </if>
571 <else-if variable="status">
572 <text variable="status" text-case="lowercase"/>
573 <text variable="year-suffix" prefix="-"/>
574 </else-if>
575 <else>
576 <text term="no date" form="short"/>
577 <text variable="year-suffix" prefix="-"/>
578 </else>
579 </choose>
580 </macro>
581 <!-- APA has two description elements following the title:
582 title (parenthetical) [bracketed] -->
583 <macro name="title-and-descriptions">
584 <choose>
585 <if variable="title">
586 <group delimiter=" ">
587 <text macro="title"/>
588 <text macro="parenthetical"/>
589 <text macro="bracketed"/>
590 </group>
591 </if>
592 <else>
593 <group delimiter=" ">
594 <text macro="bracketed"/>
595 <text macro="parenthetical"/>
596 </group>
597 </else>
598 </choose>
599 </macro>
600 <macro name="title">
601 <choose>
602 <if type="post webpage" match="any">
603 <!-- Webpages are always italicized -->
604 <text variable="title" font-style="italic"/>
605 </if>
606 <else-if variable="container-title" match="any">
607 <!-- Other types are italicized based on presence of container-title.
608 Assume that review and review-book are published in periodicals/blogs,
609 not just on a web page (ex. 69) -->
610 <text variable="title"/>
611 </else-if>
612 <else>
613 <choose>
614 <if type="article-journal article-magazine article-newspaper post-weblog review review-book">
615 <text variable="title" font-style="italic"/>
616 </if>
617 <else-if type="paper-conference">
618 <choose>
619 <if variable="collection-editor editor editorial-director" match="any">
620 <group delimiter=": " font-style="italic">
621 <text variable="title"/>
622 <!-- Replace with volume-title as that becomes available -->
623 <choose>
624 <if is-numeric="volume" match="none">
625 <group delimiter=" ">
626 <label variable="volume" form="short" text-case="capitalize-first"/>
627 <text variable="volume"/>
628 </group>
629 </if>
630 </choose>
631 </group>
632 </if>
633 <else>
634 <text variable="title" font-style="italic"/>
635 </else>
636 </choose>
637 </else-if>
638 <else>
639 <group delimiter=": " font-style="italic">
640 <text variable="title"/>
641 <!-- Replace with volume-title as that becomes available -->
642 <choose>
643 <if is-numeric="volume" match="none">
644 <group delimiter=" ">
645 <label variable="volume" form="short" text-case="capitalize-first"/>
646 <text variable="volume"/>
647 </group>
648 </if>
649 </choose>
650 </group>
651 </else>
652 </choose>
653 </else>
654 </choose>
655 </macro>
656 <macro name="title-intext">
657 <choose>
658 <if variable="title" match="none">
659 <text macro="bracketed-intext" prefix="[" suffix="]"/>
660 </if>
661 <else-if type="bill">
662 <!-- If a bill has no number or container-title, assume it is a hearing; italic -->
663 <choose>
664 <if variable="number container-title" match="none">
665 <text variable="title" form="short" font-style="italic" text-case="title"/>
666 </if>
667 <else-if variable="title">
668 <text variable="title" form="short" text-case="title"/>
669 </else-if>
670 <else>
671 <group delimiter=" ">
672 <text variable="genre"/>
673 <group delimiter=" ">
674 <choose>
675 <if variable="chapter-number container-title" match="none">
676 <!-- Replace with label variable="number" as that becomes available -->
677 <text term="issue" form="short"/>
678 </if>
679 </choose>
680 <text variable="number"/>
681 </group>
682 </group>
683 </else>
684 </choose>
685 </else-if>
686 <else-if type="legal_case" match="any">
687 <!-- Cases are italicized -->
688 <text variable="title" font-style="italic"/>
689 </else-if>
690 <else-if type="legislation treaty" match="any">
691 <!-- Legislation and treaties not italicized or quoted -->
692 <text variable="title" form="short" text-case="title"/>
693 </else-if>
694 <else-if type="post webpage" match="any">
695 <!-- Webpages are always italicized -->
696 <text variable="title" form="short" font-style="italic" text-case="title"/>
697 </else-if>
698 <else-if variable="container-title" match="any">
699 <!-- Other types are italicized or quoted based on presence of container-title. As in title macro. -->
700 <text variable="title" form="short" quotes="true" text-case="title"/>
701 </else-if>
702 <else>
703 <text variable="title" form="short" font-style="italic" text-case="title"/>
704 </else>
705 </choose>
706 </macro>
707 <macro name="parenthetical">
708 <!-- (Secondary contributors; Database location; Genre no. 123; Report Series 123, Version, Edition, Volume, Page) -->
709 <group prefix="(" suffix=")">
710 <choose>
711 <if type="patent">
712 <!-- authority: U.S. ; genre: patent ; number: 123,445 -->
713 <group delimiter=" ">
714 <text variable="authority" form="short"/>
715 <choose>
716 <if variable="genre">
717 <text variable="genre" text-case="capitalize-first"/>
718 </if>
719 <else>
720 <!-- This should be localized -->
721 <text value="patent" text-case="capitalize-first"/>
722 </else>
723 </choose>
724 <group delimiter=" ">
725 <!-- Replace with label variable="number" if that becomes available -->
726 <text term="issue" form="short" text-case="capitalize-first"/>
727 <text variable="number"/>
728 </group>
729 </group>
730 </if>
731 <else-if type="post webpage">
732 <!-- For post webpage, container-title is treated as publisher -->
733 <group delimiter="; ">
734 <text macro="secondary-contributors"/>
735 <text macro="database-location"/>
736 <text macro="number"/>
737 <text macro="locators-booklike"/>
738 </group>
739 </else-if>
740 <else-if variable="container-title">
741 <group delimiter="; ">
742 <text macro="secondary-contributors"/>
743 <choose>
744 <if type="broadcast graphic map motion_picture song" match="any">
745 <!-- For audiovisual media, number information comes after title, not container-title -->
746 <text macro="number"/>
747 </if>
748 </choose>
749 </group>
750 </else-if>
751 <else>
752 <group delimiter="; ">
753 <text macro="secondary-contributors"/>
754 <text macro="database-location"/>
755 <text macro="number"/>
756 <text macro="locators-booklike"/>
757 </group>
758 </else>
759 </choose>
760 </group>
761 </macro>
762 <macro name="parenthetical-container">
763 <choose>
764 <if variable="container-title" match="any">
765 <group prefix="(" suffix=")">
766 <group delimiter="; ">
767 <text macro="database-location"/>
768 <choose>
769 <if type="broadcast graphic map motion_picture song" match="none">
770 <!-- For audiovisual media, number information comes after title, not container-title -->
771 <text macro="number"/>
772 </if>
773 </choose>
774 <text macro="locators-booklike"/>
775 </group>
776 </group>
777 </if>
778 </choose>
779 </macro>
780 <macro name="bracketed">
781 <!-- [Descriptive information] -->
782 <!-- If there is a number, genre is already printed in macro="number" -->
783 <group prefix="[" suffix="]">
784 <choose>
785 <if variable="reviewed-author reviewed-title" type="review review-book" match="any">
786 <!-- Reviewed item -->
787 <group delimiter="; ">
788 <group delimiter=", ">
789 <group delimiter=" ">
790 <!-- Assume that genre is entered as 'Review of the book' or similar -->
791 <choose>
792 <if variable="number" match="none">
793 <choose>
794 <if variable="genre">
795 <text variable="genre" text-case="capitalize-first"/>
796 </if>
797 <else-if variable="medium">
798 <text variable="medium" text-case="capitalize-first"/>
799 </else-if>
800 <else>
801 <!-- Replace with term="review" as that becomes available -->
802 <text value="Review of"/>
803 </else>
804 </choose>
805 </if>
806 <else>
807 <choose>
808 <if variable="medium">
809 <text variable="medium" text-case="capitalize-first"/>
810 </if>
811 <else>
812 <!-- Replace with term="review" as that becomes available -->
813 <text value="Review of"/>
814 </else>
815 </choose>
816 </else>
817 </choose>
818 <text macro="reviewed-title"/>
819 </group>
820 <names variable="reviewed-author">
821 <label form="verb-short" suffix=" "/>
822 <name and="symbol" initialize-with=". " delimiter=", "/>
823 </names>
824 </group>
825 <choose>
826 <if variable="genre" match="any">
827 <choose>
828 <if variable="number" match="none">
829 <text variable="medium" text-case="capitalize-first"/>
830 </if>
831 </choose>
832 </if>
833 </choose>
834 </group>
835 </if>
836 <else-if type="thesis">
837 <!-- Thesis type and institution -->
838 <group delimiter="; ">
839 <choose>
840 <if variable="number" match="none">
841 <group delimiter=", ">
842 <text variable="genre" text-case="capitalize-first"/>
843 <choose>
844 <if variable="archive DOI URL" match="any">
845 <!-- Include the university in brackets if thesis is published -->
846 <text variable="publisher"/>
847 </if>
848 </choose>
849 </group>
850 </if>
851 </choose>
852 <text variable="medium" text-case="capitalize-first"/>
853 </group>
854 </else-if>
855 <else-if variable="interviewer" type="interview" match="any">
856 <!-- Interview information -->
857 <choose>
858 <if variable="title">
859 <text macro="format"/>
860 </if>
861 <else-if variable="genre">
862 <group delimiter="; ">
863 <group delimiter=" ">
864 <text variable="genre" text-case="capitalize-first"/>
865 <group delimiter=" ">
866 <text term="author" form="verb"/>
867 <names variable="interviewer">
868 <name and="symbol" initialize-with=". " delimiter=", "/>
869 </names>
870 </group>
871 </group>
872 </group>
873 </else-if>
874 <else-if variable="interviewer">
875 <group delimiter="; ">
876 <names variable="interviewer">
877 <label form="verb" suffix=" " text-case="capitalize-first"/>
878 <name and="symbol" initialize-with=". " delimiter=", "/>
879 </names>
880 <text variable="medium" text-case="capitalize-first"/>
881 </group>
882 </else-if>
883 <else>
884 <text macro="format"/>
885 </else>
886 </choose>
887 </else-if>
888 <else-if type="personal_communication">
889 <!-- Letter information -->
890 <choose>
891 <if variable="recipient">
892 <group delimiter="; ">
893 <group delimiter=" ">
894 <choose>
895 <if variable="number" match="none">
896 <choose>
897 <if variable="genre">
898 <text variable="genre" text-case="capitalize-first"/>
899 </if>
900 <else-if variable="medium">
901 <text variable="medium" text-case="capitalize-first"/>
902 </else-if>
903 <else>
904 <text term="letter" form="short" text-case="capitalize-first"/>
905 </else>
906 </choose>
907 </if>
908 <else>
909 <choose>
910 <if variable="medium">
911 <text variable="medium" text-case="capitalize-first"/>
912 </if>
913 <else>
914 <text term="letter" form="short" text-case="capitalize-first"/>
915 </else>
916 </choose>
917 </else>
918 </choose>
919 <names variable="recipient" delimiter=", ">
920 <label form="verb" suffix=" "/>
921 <name and="symbol" delimiter=", "/>
922 </names>
923 </group>
924 <choose>
925 <if variable="genre" match="any">
926 <choose>
927 <if variable="number" match="none">
928 <text variable="medium" text-case="capitalize-first"/>
929 </if>
930 </choose>
931 </if>
932 </choose>
933 </group>
934 </if>
935 <else>
936 <text macro="format"/>
937 </else>
938 </choose>
939 </else-if>
940 <else-if variable="composer" type="song" match="all">
941 <!-- Performer of classical music works -->
942 <group delimiter="; ">
943 <choose>
944 <if variable="number" match="none">
945 <group delimiter=" ">
946 <choose>
947 <if variable="genre">
948 <text variable="genre" text-case="capitalize-first"/>
949 <!-- Replace prefix with performer label as that becomes available -->
950 <names variable="author" prefix="recorded by ">
951 <name and="symbol" initialize-with=". " delimiter=", "/>
952 </names>
953 </if>
954 <else-if variable="medium">
955 <text variable="medium" text-case="capitalize-first"/>
956 <!-- Replace prefix with performer label as that becomes available -->
957 <names variable="author" prefix="recorded by ">
958 <name and="symbol" initialize-with=". " delimiter=", "/>
959 </names>
960 </else-if>
961 <else>
962 <!-- Replace prefix with performer label as that becomes available -->
963 <names variable="author" prefix="Recorded by ">
964 <name and="symbol" initialize-with=". " delimiter=", "/>
965 </names>
966 </else>
967 </choose>
968 </group>
969 </if>
970 <else>
971 <group delimiter=" ">
972 <choose>
973 <if variable="medium">
974 <text variable="medium" text-case="capitalize-first"/>
975 <!-- Replace prefix with performer label as that becomes available -->
976 <names variable="author" prefix="recorded by ">
977 <name and="symbol" initialize-with=". " delimiter=", "/>
978 </names>
979 </if>
980 <else>
981 <!-- Replace prefix with performer label as that becomes available -->
982 <names variable="author" prefix="Recorded by ">
983 <name and="symbol" initialize-with=". " delimiter=", "/>
984 </names>
985 </else>
986 </choose>
987 </group>
988 </else>
989 </choose>
990 <choose>
991 <if variable="genre" match="any">
992 <choose>
993 <if variable="number" match="none">
994 <text variable="medium" text-case="capitalize-first"/>
995 </if>
996 </choose>
997 </if>
998 </choose>
999 </group>
1000 </else-if>
1001 <else-if variable="container-title" match="none">
1002 <!-- Other description -->
1003 <text macro="format"/>
1004 </else-if>
1005 <else>
1006 <!-- For conference presentations, chapters in reports, software, place bracketed after the container title -->
1007 <choose>
1008 <if type="paper-conference speech" match="any">
1009 <choose>
1010 <if variable="collection-editor editor editorial-director issue page volume" match="any">
1011 <text macro="format"/>
1012 </if>
1013 </choose>
1014 </if>
1015 <else-if type="book">
1016 <choose>
1017 <if variable="version" match="none">
1018 <text macro="format"/>
1019 </if>
1020 </choose>
1021 </else-if>
1022 <else-if type="report" match="none">
1023 <text macro="format"/>
1024 </else-if>
1025 </choose>
1026 </else>
1027 </choose>
1028 </group>
1029 </macro>
1030 <macro name="bracketed-intext">
1031 <group prefix="[" suffix="]">
1032 <choose>
1033 <if variable="reviewed-author reviewed-title" type="review review-book" match="any">
1034 <!-- This should be localized -->
1035 <text macro="reviewed-title-intext" prefix="Review of "/>
1036 </if>
1037 <else-if variable="interviewer" type="interview" match="any">
1038 <names variable="interviewer">
1039 <label form="verb" suffix=" " text-case="capitalize-first"/>
1040 <name and="symbol" initialize-with=". " delimiter=", "/>
1041 <substitute>
1042 <text macro="format-intext"/>
1043 </substitute>
1044 </names>
1045 </else-if>
1046 <else-if type="personal_communication">
1047 <!-- Letter information -->
1048 <choose>
1049 <if variable="recipient">
1050 <group delimiter=" ">
1051 <choose>
1052 <if variable="number" match="none">
1053 <text variable="genre" text-case="capitalize-first"/>
1054 </if>
1055 <else>
1056 <text term="letter" form="short" text-case="capitalize-first"/>
1057 </else>
1058 </choose>
1059 <names variable="recipient" delimiter=", ">
1060 <label form="verb" suffix=" "/>
1061 <name and="symbol" delimiter=", "/>
1062 </names>
1063 </group>
1064 </if>
1065 <else>
1066 <text macro="format-intext"/>
1067 </else>
1068 </choose>
1069 </else-if>
1070 <else>
1071 <text macro="format-intext"/>
1072 </else>
1073 </choose>
1074 </group>
1075 </macro>
1076 <macro name="bracketed-container">
1077 <group prefix="[" suffix="]">
1078 <choose>
1079 <if type="paper-conference speech" match="any">
1080 <!-- Conference presentations should describe the session [container] in bracketed unless published in a proceedings -->
1081 <choose>
1082 <if variable="collection-editor editor editorial-director issue page volume" match="none">
1083 <text macro="format"/>
1084 </if>
1085 </choose>
1086 </if>
1087 <else-if type="book" variable="version" match="all">
1088 <!-- For entries in mobile app reference works, place bracketed after the container-title -->
1089 <text macro="format"/>
1090 </else-if>
1091 <else-if type="report">
1092 <!-- For chapters in reports, place bracketed after the container title -->
1093 <text macro="format"/>
1094 </else-if>
1095 </choose>
1096 </group>
1097 </macro>
1098 <macro name="secondary-contributors">
1099 <choose>
1100 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
1101 <text macro="secondary-contributors-periodical"/>
1102 </if>
1103 <else-if type="paper-conference">
1104 <choose>
1105 <if variable="collection-editor editor editorial-director" match="any">
1106 <text macro="secondary-contributors-booklike"/>
1107 </if>
1108 <else>
1109 <text macro="secondary-contributors-periodical"/>
1110 </else>
1111 </choose>
1112 </else-if>
1113 <else>
1114 <text macro="secondary-contributors-booklike"/>
1115 </else>
1116 </choose>
1117 </macro>
1118 <macro name="secondary-contributors-periodical">
1119 <group delimiter="; ">
1120 <choose>
1121 <if variable="title">
1122 <names variable="interviewer" delimiter="; ">
1123 <name and="symbol" initialize-with=". " delimiter=", "/>
1124 <label form="short" prefix=", " text-case="title"/>
1125 </names>
1126 </if>
1127 </choose>
1128 <names variable="translator" delimiter="; ">
1129 <name and="symbol" initialize-with=". " delimiter=", "/>
1130 <label form="short" prefix=", " text-case="title"/>
1131 </names>
1132 </group>
1133 </macro>
1134 <macro name="secondary-contributors-booklike">
1135 <group delimiter="; ">
1136 <choose>
1137 <if variable="title">
1138 <names variable="interviewer">
1139 <name and="symbol" initialize-with=". " delimiter=", "/>
1140 <label form="short" prefix=", " text-case="title"/>
1141 </names>
1142 </if>
1143 </choose>
1144 <!-- When editortranslator becomes available, add a test: variable="editortranslator" match="none"; then print translator -->
1145 <choose>
1146 <if type="post webpage" match="none">
1147 <!-- Webpages treat container-title like publisher -->
1148 <choose>
1149 <if variable="container-title" match="none">
1150 <group delimiter="; ">
1151 <names variable="container-author">
1152 <label form="verb-short" suffix=" " text-case="title"/>
1153 <name and="symbol" initialize-with=". " delimiter=", "/>
1154 </names>
1155 <names variable="editor translator" delimiter="; ">
1156 <name and="symbol" initialize-with=". " delimiter=", "/>
1157 <label form="short" prefix=", " text-case="title"/>
1158 </names>
1159 </group>
1160 </if>
1161 </choose>
1162 </if>
1163 <else>
1164 <group delimiter="; ">
1165 <names variable="container-author">
1166 <label form="verb-short" suffix=" " text-case="title"/>
1167 <name and="symbol" initialize-with=". " delimiter=", "/>
1168 </names>
1169 <names variable="editor translator" delimiter="; ">
1170 <name and="symbol" initialize-with=". " delimiter=", "/>
1171 <label form="short" prefix=", " text-case="title"/>
1172 </names>
1173 </group>
1174 </else>
1175 </choose>
1176 </group>
1177 </macro>
1178 <macro name="database-location">
1179 <choose>
1180 <if variable="archive-place" match="none">
1181 <!-- With `archive-place`: physical archives. Without: online archives. -->
1182 <!-- Add archive_collection as that becomes available -->
1183 <text variable="archive_location"/>
1184 </if>
1185 </choose>
1186 </macro>
1187 <macro name="number">
1188 <choose>
1189 <if variable="number">
1190 <group delimiter=", ">
1191 <group delimiter=" ">
1192 <text variable="genre" text-case="title"/>
1193 <choose>
1194 <if is-numeric="number">
1195 <!-- Replace with label variable="number" if that becomes available -->
1196 <text term="issue" form="short" text-case="capitalize-first"/>
1197 <text variable="number"/>
1198 </if>
1199 <else>
1200 <text variable="number"/>
1201 </else>
1202 </choose>
1203 </group>
1204 <choose>
1205 <if type="thesis">
1206 <choose>
1207 <!-- Include the university in brackets if thesis is published -->
1208 <if variable="archive DOI URL" match="any">
1209 <text variable="publisher"/>
1210 </if>
1211 </choose>
1212 </if>
1213 </choose>
1214 </group>
1215 </if>
1216 </choose>
1217 </macro>
1218 <macro name="locators-booklike">
1219 <choose>
1220 <if type="article-journal article-magazine article-newspaper broadcast interview patent post post-weblog review review-book speech webpage" match="any"/>
1221 <else-if type="paper-conference">
1222 <choose>
1223 <if variable="collection-editor editor editorial-director" match="any">
1224 <group delimiter=", ">
1225 <text macro="version"/>
1226 <text macro="edition"/>
1227 <text macro="volume-booklike"/>
1228 </group>
1229 </if>
1230 </choose>
1231 </else-if>
1232 <else>
1233 <group delimiter=", ">
1234 <text macro="version"/>
1235 <text macro="edition"/>
1236 <text macro="volume-booklike"/>
1237 </group>
1238 </else>
1239 </choose>
1240 </macro>
1241 <macro name="version">
1242 <choose>
1243 <if is-numeric="version">
1244 <group delimiter=" ">
1245 <!-- replace with label variable="version" if that becomes available -->
1246 <text term="version" text-case="capitalize-first"/>
1247 <text variable="version"/>
1248 </group>
1249 </if>
1250 <else>
1251 <text variable="version"/>
1252 </else>
1253 </choose>
1254 </macro>
1255 <macro name="edition">
1256 <choose>
1257 <if is-numeric="edition">
1258 <group delimiter=" ">
1259 <number variable="edition" form="ordinal"/>
1260 <label variable="edition" form="short"/>
1261 </group>
1262 </if>
1263 <else>
1264 <text variable="edition"/>
1265 </else>
1266 </choose>
1267 </macro>
1268 <macro name="volume-booklike">
1269 <group delimiter=", ">
1270 <!-- Report series [ex. 52] -->
1271 <choose>
1272 <if type="report">
1273 <group delimiter=" ">
1274 <text variable="collection-title" text-case="title"/>
1275 <text variable="collection-number"/>
1276 </group>
1277 </if>
1278 </choose>
1279 <choose>
1280 <if variable="volume" match="any">
1281 <choose>
1282 <!-- Non-numeric volumes are already printed as part of the book title -->
1283 <if is-numeric="volume" match="none"/>
1284 <else>
1285 <group delimiter=" ">
1286 <label variable="volume" form="short" text-case="capitalize-first"/>
1287 <number variable="volume" form="numeric"/>
1288 </group>
1289 </else>
1290 </choose>
1291 </if>
1292 <else>
1293 <group>
1294 <!-- Replace with label variable="number-of-volumes" if that becomes available -->
1295 <text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
1296 <text term="page-range-delimiter" prefix="1"/>
1297 <number variable="number-of-volumes" form="numeric"/>
1298 </group>
1299 </else>
1300 </choose>
1301 <group delimiter=" ">
1302 <label variable="issue" text-case="capitalize-first"/>
1303 <text variable="issue"/>
1304 </group>
1305 <group delimiter=" ">
1306 <label variable="page" form="short" suffix=" "/>
1307 <text variable="page"/>
1308 </group>
1309 </group>
1310 </macro>
1311 <macro name="reviewed-title">
1312 <choose>
1313 <if variable="reviewed-title">
1314 <!-- Not possible to distinguish TV series episode from other reviewed
1315 works [Ex. 69] -->
1316 <text variable="reviewed-title" font-style="italic"/>
1317 </if>
1318 <else>
1319 <!-- Assume title is title of reviewed work -->
1320 <text variable="title" font-style="italic"/>
1321 </else>
1322 </choose>
1323 </macro>
1324 <macro name="reviewed-title-intext">
1325 <choose>
1326 <if variable="reviewed-title">
1327 <!-- Not possible to distinguish TV series episode from other reviewed works [Ex. 69] -->
1328 <text variable="reviewed-title" form="short" font-style="italic" text-case="title"/>
1329 </if>
1330 <else>
1331 <!-- Assume title is title of reviewed work -->
1332 <text variable="title" form="short" font-style="italic" text-case="title"/>
1333 </else>
1334 </choose>
1335 </macro>
1336 <macro name="format">
1337 <choose>
1338 <if variable="genre medium" match="any">
1339 <group delimiter="; ">
1340 <choose>
1341 <if variable="number" match="none">
1342 <text variable="genre" text-case="capitalize-first"/>
1343 </if>
1344 </choose>
1345 <text variable="medium" text-case="capitalize-first"/>
1346 </group>
1347 </if>
1348 <!-- Generic labels for specific types -->
1349 <!-- These should be localized when possible -->
1350 <else-if type="dataset">
1351 <text value="Data set"/>
1352 </else-if>
1353 <else-if type="book" variable="version" match="all">
1354 <!-- Replace with type="software" and term="software" as that becomes available -->
1355 <text value="Computer software"/>
1356 </else-if>
1357 <else-if type="interview personal_communication" match="any">
1358 <choose>
1359 <if variable="archive container-title DOI publisher URL" match="none">
1360 <text term="letter" text-case="capitalize-first"/>
1361 </if>
1362 <else-if type="interview">
1363 <text term="interview" text-case="capitalize-first"/>
1364 </else-if>
1365 </choose>
1366 </else-if>
1367 <else-if type="map">
1368 <text value="Map"/>
1369 </else-if>
1370 </choose>
1371 </macro>
1372 <macro name="format-intext">
1373 <choose>
1374 <if variable="genre" match="any">
1375 <text variable="genre" text-case="capitalize-first"/>
1376 </if>
1377 <else-if variable="medium">
1378 <text variable="medium" text-case="capitalize-first"/>
1379 </else-if>
1380 <!-- Generic labels for specific types -->
1381 <!-- These should be localized when possible -->
1382 <else-if type="dataset">
1383 <text value="Data set"/>
1384 </else-if>
1385 <else-if type="book" variable="version" match="all">
1386 <!-- Replace with type="software" and term="software" as that becomes available -->
1387 <text value="Computer software"/>
1388 </else-if>
1389 <else-if type="interview personal_communication" match="any">
1390 <choose>
1391 <if variable="archive container-title DOI publisher URL" match="none">
1392 <text term="letter" text-case="capitalize-first"/>
1393 </if>
1394 <else-if type="interview">
1395 <text term="interview" text-case="capitalize-first"/>
1396 </else-if>
1397 </choose>
1398 </else-if>
1399 <else-if type="map">
1400 <text value="Map"/>
1401 </else-if>
1402 </choose>
1403 </macro>
1404 <!-- APA 'source' element contains four parts:
1405 container, event, publisher, access -->
1406 <macro name="container">
1407 <choose>
1408 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
1409 <!-- Periodical items -->
1410 <text macro="container-periodical"/>
1411 </if>
1412 <else-if type="paper-conference">
1413 <!-- Determine if paper-conference is a periodical or booklike -->
1414 <choose>
1415 <if variable="editor editorial-director collection-editor container-author" match="any">
1416 <text macro="container-booklike"/>
1417 </if>
1418 <else>
1419 <text macro="container-periodical"/>
1420 </else>
1421 </choose>
1422 </else-if>
1423 <else-if type="post webpage" match="none">
1424 <!-- post and webpage treat container-title like publisher -->
1425 <text macro="container-booklike"/>
1426 </else-if>
1427 </choose>
1428 </macro>
1429 <macro name="container-periodical">
1430 <group delimiter=". ">
1431 <group delimiter=", ">
1432 <text variable="container-title" font-style="italic" text-case="title"/>
1433 <choose>
1434 <if variable="volume">
1435 <group>
1436 <text variable="volume" font-style="italic"/>
1437 <text variable="issue" prefix="(" suffix=")"/>
1438 </group>
1439 </if>
1440 <else>
1441 <text variable="issue" font-style="italic"/>
1442 </else>
1443 </choose>
1444 <choose>
1445 <if variable="page">
1446 <text variable="page"/>
1447 </if>
1448 <else>
1449 <!-- Ex. 6: Journal article with article number or eLocator -->
1450 <!-- This should be localized -->
1451 <text variable="number" prefix="Article "/>
1452 </else>
1453 </choose>
1454 </group>
1455 <choose>
1456 <if variable="issued">
1457 <choose>
1458 <if variable="issue page volume" match="none">
1459 <text variable="status" text-case="capitalize-first"/>
1460 </if>
1461 </choose>
1462 </if>
1463 </choose>
1464 </group>
1465 </macro>
1466 <macro name="container-booklike">
1467 <choose>
1468 <if variable="container-title" match="any">
1469 <group delimiter=" ">
1470 <text term="in" text-case="capitalize-first"/>
1471 <group delimiter=", ">
1472 <names variable="editor translator" delimiter=", &amp; ">
1473 <!-- Change to editortranslator and move editor to substitute as that becomes available -->
1474 <name and="symbol" initialize-with=". " delimiter=", "/>
1475 <label form="short" text-case="title" prefix=" (" suffix=")"/>
1476 <substitute>
1477 <names variable="editorial-director"/>
1478 <names variable="collection-editor"/>
1479 <names variable="container-author"/>
1480 </substitute>
1481 </names>
1482 <group delimiter=": " font-style="italic">
1483 <text variable="container-title"/>
1484 <!-- Replace with volume-title as that becomes available -->
1485 <choose>
1486 <if is-numeric="volume" match="none">
1487 <group delimiter=" ">
1488 <label variable="volume" form="short" text-case="capitalize-first"/>
1489 <text variable="volume"/>
1490 </group>
1491 </if>
1492 </choose>
1493 </group>
1494 </group>
1495 <text macro="parenthetical-container"/>
1496 <text macro="bracketed-container"/>
1497 </group>
1498 </if>
1499 </choose>
1500 </macro>
1501 <macro name="publisher">
1502 <group delimiter="; ">
1503 <choose>
1504 <if type="thesis">
1505 <choose>
1506 <if variable="archive DOI URL" match="none">
1507 <text variable="publisher"/>
1508 </if>
1509 </choose>
1510 </if>
1511 <else-if type="post webpage">
1512 <!-- For websites, treat container title like publisher -->
1513 <group delimiter="; ">
1514 <text variable="container-title" text-case="title"/>
1515 <text variable="publisher"/>
1516 </group>
1517 </else-if>
1518 <else-if type="paper-conference">
1519 <!-- For paper-conference, don't print publisher if in a journal-like proceedings -->
1520 <choose>
1521 <if variable="collection-editor editor editorial-director" match="any">
1522 <text variable="publisher"/>
1523 </if>
1524 </choose>
1525 </else-if>
1526 <else-if type="article-journal article-magazine article-newspaper post-weblog" match="none">
1527 <text variable="publisher"/>
1528 </else-if>
1529 </choose>
1530 <group delimiter=", ">
1531 <choose>
1532 <if variable="archive-place">
1533 <!-- With `archive-place`: physical archives. Without: online archives. -->
1534 <!-- For physical archives, print the location before the archive name.
1535 For electronic archives, these are printed in macro="description". -->
1536 <!-- Split "archive_location" into "archive_collection" and "archive_location" as that becomes available -->
1537 <!-- Must test for archive_collection:
1538 With collection: archive_collection (archive_location), archive, archive-place
1539 No collection: archive (archive_location), archive-place
1540 -->
1541 <text variable="archive_location"/>
1542 </if>
1543 </choose>
1544 <text variable="archive"/>
1545 <text variable="archive-place"/>
1546 </group>
1547 </group>
1548 </macro>
1549 <macro name="access">
1550 <choose>
1551 <if variable="DOI" match="any">
1552 <text variable="DOI" prefix="https://doi.org/"/>
1553 </if>
1554 <else-if variable="URL">
1555 <group delimiter=" ">
1556 <choose>
1557 <if variable="issued status" match="none">
1558 <group delimiter=" ">
1559 <text term="retrieved" text-case="capitalize-first"/>
1560 <date variable="accessed" form="text" suffix=","/>
1561 <text term="from"/>
1562 </group>
1563 </if>
1564 </choose>
1565 <text variable="URL"/>
1566 </group>
1567 </else-if>
1568 </choose>
1569 </macro>
1570 <macro name="event">
1571 <choose>
1572 <if variable="event">
1573 <!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to
1574 both publisher-place and event-place. Remove this 'choose' when that is changed. -->
1575 <choose>
1576 <if variable="collection-editor editor editorial-director issue page volume" match="none">
1577 <!-- Don't print event info if published in a proceedings -->
1578 <group delimiter=", ">
1579 <text variable="event"/>
1580 <text variable="event-place"/>
1581 </group>
1582 </if>
1583 </choose>
1584 </if>
1585 </choose>
1586 </macro>
1587 <!-- After 'source', APA also prints publication history (original publication, reprint info, retraction info) -->
1588 <macro name="publication-history">
1589 <choose>
1590 <if type="patent" match="none">
1591 <group prefix="(" suffix=")">
1592 <choose>
1593 <if variable="references">
1594 <!-- This provides the option for more elaborate description
1595 of publication history, such as full "reprinted" references
1596 (examples 11, 43, 44) or retracted references -->
1597 <text variable="references"/>
1598 </if>
1599 <else>
1600 <group delimiter=" ">
1601 <text value="Original work published"/>
1602 <choose>
1603 <if is-uncertain-date="original-date">
1604 <text term="circa" form="short"/>
1605 </if>
1606 </choose>
1607 <date variable="original-date">
1608 <date-part name="year"/>
1609 </date>
1610 </group>
1611 </else>
1612 </choose>
1613 </group>
1614 </if>
1615 <else>
1616 <text variable="references" prefix="(" suffix=")"/>
1617 </else>
1618 </choose>
1619 </macro>
1620 <!-- Legal citations have their own rules -->
1621 <macro name="legal-cites">
1622 <choose>
1623 <if type="legal_case">
1624 <group delimiter=". ">
1625 <group delimiter=", ">
1626 <text variable="title"/>
1627 <group delimiter=" ">
1628 <text macro="container-legal"/>
1629 <text macro="date-legal"/>
1630 </group>
1631 <text variable="references"/>
1632 </group>
1633 <text macro="access"/>
1634 </group>
1635 </if>
1636 <else-if type="bill">
1637 <!-- Currently designed to handle bills, resolutions, hearings, rederal reports. -->
1638 <group delimiter=". ">
1639 <group delimiter=", ">
1640 <choose>
1641 <if variable="number container-title" match="none">
1642 <!-- If no number or container-title, then assume it is a hearing -->
1643 <text variable="title" font-style="italic"/>
1644 </if>
1645 <else>
1646 <text variable="title"/>
1647 </else>
1648 </choose>
1649 <group delimiter=" ">
1650 <text macro="container-legal"/>
1651 <text macro="date-legal"/>
1652 <choose>
1653 <if variable="number container-title" match="none">
1654 <!-- If no number or container-title, then assume it is a hearing -->
1655 <names variable="author" prefix="(testimony of " suffix=")">
1656 <name and="symbol" delimiter=", "/>
1657 </names>
1658 </if>
1659 <else>
1660 <text variable="status" prefix="(" suffix=")"/>
1661 </else>
1662 </choose>
1663 </group>
1664 <text variable="references"/>
1665 </group>
1666 <text macro="access"/>
1667 </group>
1668 </else-if>
1669 <else-if type="legislation">
1670 <!-- Currently designed to handle statutes, codified regulations, executive orders.
1671 For uncodified regulations, assume future code section is in status. -->
1672 <group delimiter=". ">
1673 <group delimiter=", ">
1674 <text variable="title"/>
1675 <group delimiter=" ">
1676 <text macro="container-legal"/>
1677 <text macro="date-legal"/>
1678 <text variable="status" prefix="(" suffix=")"/>
1679 </group>
1680 <text variable="references"/>
1681 </group>
1682 <text macro="access"/>
1683 </group>
1684 </else-if>
1685 <else-if type="treaty">
1686 <!-- APA generally defers to Bluebook for legal citations, but diverges without
1687 explanation for treaty items. The Bluebook format that was used in APA 6th
1688 ed. is used here. -->
1689 <group delimiter=", ">
1690 <text variable="title" text-case="title"/>
1691 <names variable="author">
1692 <name initialize-with="." form="short" delimiter="-"/>
1693 </names>
1694 <text macro="date-legal"/>
1695 <text macro="container-legal"/>
1696 <text macro="access"/>
1697 </group>
1698 </else-if>
1699 </choose>
1700 </macro>
1701 <macro name="date-legal">
1702 <choose>
1703 <if type="legal_case">
1704 <group prefix="(" suffix=")" delimiter=" ">
1705 <text variable="authority"/>
1706 <choose>
1707 <if variable="container-title" match="any">
1708 <!-- Print only year for cases published in reporters-->
1709 <date variable="issued" form="numeric" date-parts="year"/>
1710 </if>
1711 <else>
1712 <date variable="issued" form="text"/>
1713 </else>
1714 </choose>
1715 </group>
1716 </if>
1717 <else-if type="bill legislation" match="any">
1718 <group prefix="(" suffix=")" delimiter=" ">
1719 <group delimiter=" ">
1720 <date variable="original-date">
1721 <date-part name="year"/>
1722 </date>
1723 <text term="and" form="symbol"/>
1724 </group>
1725 <date variable="issued">
1726 <date-part name="year"/>
1727 </date>
1728 </group>
1729 </else-if>
1730 <else-if type="treaty">
1731 <date variable="issued" form="text"/>
1732 </else-if>
1733 </choose>
1734 </macro>
1735 <macro name="container-legal">
1736 <!-- Expect legal item container-titles to be stored in short form -->
1737 <choose>
1738 <if type="legal_case">
1739 <group delimiter=" ">
1740 <choose>
1741 <if variable="container-title">
1742 <group delimiter=" ">
1743 <text variable="volume"/>
1744 <text variable="container-title"/>
1745 <group delimiter=" ">
1746 <!-- Change to label variable="section" as that becomes available -->
1747 <text term="section" form="symbol"/>
1748 <text variable="section"/>
1749 </group>
1750 <choose>
1751 <if variable="page page-first" match="any">
1752 <text variable="page-first"/>
1753 </if>
1754 <else>
1755 <text value="___"/>
1756 </else>
1757 </choose>
1758 </group>
1759 </if>
1760 <else>
1761 <group delimiter=" ">
1762 <choose>
1763 <if is-numeric="number">
1764 <!-- Replace with label variable="number" if that becomes available -->
1765 <text term="issue" form="short" text-case="capitalize-first"/>
1766 </if>
1767 </choose>
1768 <text variable="number"/>
1769 </group>
1770 </else>
1771 </choose>
1772 </group>
1773 </if>
1774 <else-if type="bill">
1775 <group delimiter=", ">
1776 <group delimiter=" ">
1777 <text variable="genre"/>
1778 <group delimiter=" ">
1779 <choose>
1780 <if variable="chapter-number container-title" match="none">
1781 <!-- Replace with label variable="number" as that becomes available -->
1782 <text term="issue" form="short"/>
1783 </if>
1784 </choose>
1785 <text variable="number"/>
1786 </group>
1787 </group>
1788 <text variable="authority"/>
1789 <text variable="chapter-number"/>
1790 <group delimiter=" ">
1791 <text variable="volume"/>
1792 <text variable="container-title"/>
1793 <text variable="page-first"/>
1794 </group>
1795 </group>
1796 </else-if>
1797 <else-if type="legislation">
1798 <choose>
1799 <if variable="number">
1800 <!--There's a public law number-->
1801 <group delimiter=", ">
1802 <text variable="number" prefix="Pub. L. No. "/>
1803 <group delimiter=" ">
1804 <text variable="volume"/>
1805 <text variable="container-title"/>
1806 <text variable="page-first"/>
1807 </group>
1808 </group>
1809 </if>
1810 <else>
1811 <group delimiter=" ">
1812 <text variable="volume"/>
1813 <text variable="container-title"/>
1814 <choose>
1815 <if variable="section">
1816 <group delimiter=" ">
1817 <!-- Change to label variable="section" as that becomes available -->
1818 <text term="section" form="symbol"/>
1819 <text variable="section"/>
1820 </group>
1821 </if>
1822 <else>
1823 <text variable="page-first"/>
1824 </else>
1825 </choose>
1826 </group>
1827 </else>
1828 </choose>
1829 </else-if>
1830 <else-if type="treaty">
1831 <group delimiter=" ">
1832 <number variable="volume"/>
1833 <text variable="container-title"/>
1834 <choose>
1835 <if variable="page page-first" match="any">
1836 <text variable="page-first"/>
1837 </if>
1838 <else>
1839 <group delimiter=" ">
1840 <!-- Replace with label variable="number" if that becomes available -->
1841 <text term="issue" form="short" text-case="capitalize-first"/>
1842 <text variable="number"/>
1843 </group>
1844 </else>
1845 </choose>
1846 </group>
1847 </else-if>
1848 </choose>
1849 </macro>
1850 <macro name="citation-locator">
1851 <group delimiter=" ">
1852 <choose>
1853 <if locator="chapter">
1854 <label variable="locator" text-case="capitalize-first"/>
1855 </if>
1856 <else>
1857 <label variable="locator" form="short"/>
1858 </else>
1859 </choose>
1860 <text variable="locator"/>
1861 </group>
1862 </macro>
1863 <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name">
1864 <sort>
1865 <key macro="author-bib" names-min="3" names-use-first="1"/>
1866 <key macro="date-sort-group"/>
1867 <key macro="date-sort-date" sort="ascending"/>
1868 <key variable="status"/>
1869 </sort>
1870 <layout prefix="(" suffix=")" delimiter="; ">
1871 <group delimiter=", ">
1872 <text macro="author-intext"/>
1873 <text macro="date-intext"/>
1874 <text macro="citation-locator"/>
1875 </group>
1876 </layout>
1877 </citation>
1878 <bibliography hanging-indent="true" et-al-min="21" et-al-use-first="19" et-al-use-last="true" entry-spacing="0" line-spacing="2">
1879 <sort>
1880 <key macro="author-bib"/>
1881 <key macro="date-sort-group"/>
1882 <key macro="date-sort-date" sort="ascending"/>
1883 <key variable="status"/>
1884 <key macro="title"/>
1885 </sort>
1886 <layout>
1887 <choose>
1888 <if type="bill legal_case legislation treaty" match="any">
1889 <!-- Legal items have different orders and delimiters -->
1890 <choose>
1891 <if variable="DOI URL" match="any">
1892 <text macro="legal-cites"/>
1893 </if>
1894 <else>
1895 <text macro="legal-cites" suffix="."/>
1896 </else>
1897 </choose>
1898 </if>
1899 <else>
1900 <group delimiter=" ">
1901 <group delimiter=". " suffix=".">
1902 <text macro="author-bib"/>
1903 <text macro="date-bib"/>
1904 <text macro="title-and-descriptions"/>
1905 <text macro="container"/>
1906 <text macro="event"/>
1907 <text macro="publisher"/>
1908 </group>
1909 <text macro="access"/>
1910 <text macro="publication-history"/>
1911 </group>
1912 </else>
1913 </choose>
1914 </layout>
1915 </bibliography>
1916 </style>