Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_text/tests/data/csl/corpus/ifac-conference.csl

61.7 KiB, 1 run

created by r1870400018:72820, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

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>IFAC Conference, modified from American Psychological Association 7th edition</title>
5 <title-short>IFACconf</title-short>
6 <id>https://www.github.com/avonmoll/ifacconf-typst</id>
7 <link href="https://raw.githubusercontent.com/avonmoll/ifacconf-typst/main/ifac-conference.csl" rel="self"/>
8 <author>
9 <name>Brenton M. Wiernik (apa.csl), adapted by Alexander Von Moll</name>
10 <email>avonmoll@gmail.com</email>
11 </author>
12 <category citation-format="author-date"/>
13 <category field="psychology"/>
14 <category field="generic-base"/>
15 <updated>2023-11-16T10:49:49+00:00</updated>
16 <rights license="https://creativecommons.org/licenses/by-sa/4.0/deed.en">This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License</rights>
17 </info>
18 <locale xml:lang="en">
19 <terms>
20 <term name="editortranslator" form="short">
21 <single>ed. &amp; trans.</single>
22 <multiple>eds. &amp; trans.</multiple>
23 </term>
24 <term name="translator" form="short">trans.</term>
25 <term name="interviewer" form="short">
26 <single>interviewer</single>
27 <multiple>interviewers</multiple>
28 </term>
29 <term name="collection-editor" form="short">
30 <single>ed.</single>
31 <multiple>eds.</multiple>
32 </term>
33 <term name="circa" form="short">ca.</term>
34 <term name="bc"> B.C.E.</term>
35 <term name="ad"> C.E.</term>
36 <term name="issue" form="long">
37 <single>issue</single>
38 <multiple>issues</multiple>
39 </term>
40 <term name="software">computer software</term>
41 </terms>
42 </locale>
43 <locale xml:lang="da">
44 <terms>
45 <term name="et-al">et al.</term>
46 </terms>
47 </locale>
48 <locale xml:lang="de">
49 <terms>
50 <term name="et-al">et al.</term>
51 </terms>
52 </locale>
53 <locale xml:lang="es">
54 <terms>
55 <term name="from">de</term>
56 </terms>
57 </locale>
58 <locale xml:lang="fr">
59 <terms>
60 <term name="editor" form="short">
61 <single>éd.</single>
62 <multiple>éds.</multiple>
63 </term>
64 </terms>
65 </locale>
66 <locale xml:lang="nb">
67 <terms>
68 <term name="et-al">et al.</term>
69 </terms>
70 </locale>
71 <locale xml:lang="nl">
72 <terms>
73 <term name="et-al">et al.</term>
74 </terms>
75 </locale>
76 <locale xml:lang="nn">
77 <terms>
78 <term name="et-al">et al.</term>
79 </terms>
80 </locale>
81 <!-- TODO: New types: classic collection document event hearing performance periodical regulation -software- standard -->
82 <!-- TODO: New creator roles: chair compiler contributor curator executive-producer guest host narrator organizer performer producer script-writer series-creator -->
83 <!-- TODO: New variables:
84 available-date submitted
85 part-number printing-number supplement-number
86 part-title volume-title
87 archive_collection
88 division jurisdiction
89 event-title
90 language
91 license
92 reviewed-genre
93 -->
94 <!-- TODO: New terms:
95 advance-online-publication
96 album on audio-recording
97 original-work-published
98 personal-communication
99 preprint
100 review-of
101 item types
102 -->
103 <!-- TODO: Check Indigeneous Knowledge format -->
104 <!-- General categories of item types:
105 Periodical: article-journal article-magazine article-newspaper post-weblog review review-book
106 Periodical or Booklike: paper-conference
107 Booklike: article book broadcast chapter classic collection dataset document
108 entry entry-dictionary entry-encyclopedia event figure
109 graphic interview manuscript map motion_picture musical_score pamphlet patent
110 performance periodical personal_communication post report
111 software song speech standard thesis webpage
112 Legal: bill hearing legal_case legislation regulation treaty
113 -->
114 <!-- APA references contain four parts: author, date, title, source -->
115 <macro name="author-bib">
116 <!-- TODO: New creator roles (media, contributor) -->
117 <!-- TODO: Add new item types -->
118 <names variable="composer" delimiter=", ">
119 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
120 <substitute>
121 <names variable="author"/>
122 <names variable="illustrator"/>
123 <names variable="director">
124 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
125 <label form="long" prefix=" (" suffix=")" text-case="title"/>
126 </names>
127 <choose>
128 <if variable="container-title">
129 <choose>
130 <if type="book entry entry-dictionary entry-encyclopedia" match="any">
131 <choose>
132 <if variable="title">
133 <group delimiter=" ">
134 <text macro="title"/>
135 <text macro="parenthetical"/>
136 </group>
137 </if>
138 <else>
139 <text macro="title-and-descriptions"/>
140 </else>
141 </choose>
142 </if>
143 </choose>
144 </if>
145 </choose>
146 <!-- TODO: Test for editortranslator and put that first as that becomes available -->
147 <names variable="editor" delimiter=", ">
148 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
149 <label form="short" prefix=" (" suffix=")" text-case="title"/>
150 </names>
151 <names variable="editorial-director">
152 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
153 <label form="short" prefix=" (" suffix=")" text-case="title"/>
154 </names>
155 <names variable="collection-editor">
156 <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
157 <label form="short" prefix=" (" suffix=")" text-case="title"/>
158 </names>
159 <choose>
160 <if variable="title">
161 <group delimiter=" ">
162 <text macro="title"/>
163 <text macro="parenthetical"/>
164 </group>
165 </if>
166 <else>
167 <text macro="title-and-descriptions"/>
168 </else>
169 </choose>
170 </substitute>
171 </names>
172 </macro>
173 <macro name="author-intext">
174 <!-- TODO: New creator roles -->
175 <!-- TODO: Add new item types -->
176 <choose>
177 <if type="bill legal_case legislation treaty" match="any">
178 <text macro="title-intext"/>
179 </if>
180 <else-if type="interview personal_communication" match="any">
181 <choose>
182 <!-- These variables indicate that the letter is retrievable by the reader.
183 If not, then use the APA in-text-only personal communication format -->
184 <if variable="archive container-title DOI publisher URL" match="none">
185 <group delimiter=", ">
186 <names variable="author">
187 <name and="symbol" delimiter=", " initialize-with=". "/>
188 <substitute>
189 <text macro="title-intext"/>
190 </substitute>
191 </names>
192 <text term="personal-communication"/>
193 </group>
194 </if>
195 <else>
196 <names variable="author" delimiter=", ">
197 <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
198 <substitute>
199 <text macro="title-intext"/>
200 </substitute>
201 </names>
202 </else>
203 </choose>
204 </else-if>
205 <else>
206 <names variable="composer" delimiter=", ">
207 <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
208 <substitute>
209 <names variable="author"/>
210 <names variable="illustrator"/>
211 <names variable="director"/>
212 <choose>
213 <if variable="container-title">
214 <choose>
215 <if type="book entry entry-dictionary entry-encyclopedia" match="any">
216 <text macro="title-intext"/>
217 </if>
218 </choose>
219 </if>
220 </choose>
221 <names variable="editor"/>
222 <names variable="editorial-director"/>
223 <text macro="title-intext"/>
224 </substitute>
225 </names>
226 </else>
227 </choose>
228 </macro>
229 <macro name="date-bib">
230 <!-- TODO: Add new item types -->
231 <group delimiter=" " prefix="(" suffix=")">
232 <choose>
233 <if is-uncertain-date="issued">
234 <text term="circa" form="short"/>
235 </if>
236 </choose>
237 <group>
238 <choose>
239 <if variable="issued">
240 <date variable="issued">
241 <date-part name="year"/>
242 </date>
243 <text variable="year-suffix"/>
244 <choose>
245 <if type="article-magazine article-newspaper broadcast interview motion_picture pamphlet personal_communication post post-weblog song speech webpage" match="any">
246 <!-- Many video and audio examples in manual give full dates. Err on the side of too much information. -->
247 <date variable="issued">
248 <date-part prefix=", " name="month"/>
249 <date-part prefix=" " name="day"/>
250 </date>
251 </if>
252 <else-if type="paper-conference">
253 <!-- Capture 'speech' stored as 'paper-conference' -->
254 <choose>
255 <if variable="collection-editor editor editorial-director issue page volume" match="none">
256 <date variable="issued">
257 <date-part prefix=", " name="month"/>
258 <date-part prefix=" " name="day"/>
259 </date>
260 </if>
261 </choose>
262 </else-if>
263 <!-- Only year: article article-journal book chapter entry entry-dictionary entry-encyclopedia dataset figure graphic
264 manuscript map musical_score paper-conference[published] patent report review review-book thesis -->
265 </choose>
266 </if>
267 <else-if variable="status">
268 <group>
269 <!-- TODO: Should I print status as-is, or should I print the in-press term? -->
270 <text variable="status" text-case="lowercase"/>
271 <text variable="year-suffix" prefix="-"/>
272 </group>
273 </else-if>
274 <else>
275 <text term="no date" form="short"/>
276 <text variable="year-suffix" prefix="-"/>
277 </else>
278 </choose>
279 </group>
280 </group>
281 </macro>
282 <macro name="date-sort-group">
283 <!-- APA sorts 1. no-date items, 2. items with dates, 3. in-press (status) items -->
284 <choose>
285 <if variable="issued">
286 <text value="1"/>
287 </if>
288 <else-if variable="status">
289 <text value="2"/>
290 </else-if>
291 <else>
292 <text value="0"/>
293 </else>
294 </choose>
295 </macro>
296 <macro name="date-intext">
297 <!-- TODO: Add new item types -->
298 <choose>
299 <if variable="issued">
300 <group delimiter="/">
301 <group delimiter=" ">
302 <choose>
303 <if is-uncertain-date="original-date">
304 <text term="circa" form="short"/>
305 </if>
306 </choose>
307 <date variable="original-date">
308 <date-part name="year"/>
309 </date>
310 </group>
311 <group delimiter=" ">
312 <choose>
313 <if is-uncertain-date="issued">
314 <text term="circa" form="short"/>
315 </if>
316 </choose>
317 <group>
318 <choose>
319 <if type="interview personal_communication" match="any">
320 <choose>
321 <if variable="archive container-title DOI publisher URL" match="none">
322 <!-- These variables indicate that the communication is retrievable by the reader.
323 If not, then use the in-text-only personal communication format -->
324 <date variable="issued" form="text"/>
325 </if>
326 <else>
327 <date variable="issued">
328 <date-part name="year"/>
329 </date>
330 </else>
331 </choose>
332 </if>
333 <else>
334 <date variable="issued">
335 <date-part name="year"/>
336 </date>
337 </else>
338 </choose>
339 <text variable="year-suffix"/>
340 </group>
341 </group>
342 </group>
343 </if>
344 <else-if variable="status">
345 <!-- TODO: Should I print status as-is, or should I print the in-press term? -->
346 <text variable="status" text-case="lowercase"/>
347 <text variable="year-suffix" prefix="-"/>
348 </else-if>
349 <else>
350 <text term="no date" form="short"/>
351 <text variable="year-suffix" prefix="-"/>
352 </else>
353 </choose>
354 </macro>
355 <!-- APA has two description elements following the title:
356 title (parenthetical) [bracketed] -->
357 <macro name="title-and-descriptions">
358 <choose>
359 <if variable="title">
360 <group delimiter=" ">
361 <text macro="title"/>
362 <text macro="parenthetical"/>
363 <text macro="bracketed"/>
364 </group>
365 </if>
366 <else>
367 <group delimiter=" ">
368 <text macro="bracketed"/>
369 <text macro="parenthetical"/>
370 </group>
371 </else>
372 </choose>
373 </macro>
374 <macro name="title">
375 <!-- TODO: Add new item types -->
376 <choose>
377 <if type="post webpage" match="any">
378 <!-- Webpages are always italicized -->
379 <text variable="title" font-style="italic"/>
380 </if>
381 <else-if variable="container-title" match="any">
382 <!-- Other types are italicized based on presence of container-title.
383 Assume that review and review-book are published in periodicals/blogs,
384 not just on a web page (ex. 69) -->
385 <text variable="title"/>
386 </else-if>
387 <else>
388 <choose>
389 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
390 <text variable="title" font-style="italic"/>
391 </if>
392 <else-if type="paper-conference">
393 <choose>
394 <if variable="collection-editor editor editorial-director" match="any">
395 <group delimiter=": " font-style="italic">
396 <text variable="title"/>
397 <!-- TODO: Replace with volume-title -->
398 <choose>
399 <if is-numeric="volume" match="none">
400 <group delimiter=" ">
401 <label variable="volume" form="short" text-case="capitalize-first"/>
402 <text variable="volume"/>
403 </group>
404 </if>
405 </choose>
406 </group>
407 </if>
408 <else>
409 <text variable="title" font-style="italic"/>
410 </else>
411 </choose>
412 </else-if>
413 <else>
414 <group delimiter=": " font-style="italic">
415 <text variable="title"/>
416 <!-- TODO: Replace with volume-title -->
417 <choose>
418 <if is-numeric="volume" match="none">
419 <group delimiter=" ">
420 <label variable="volume" form="short" text-case="capitalize-first"/>
421 <text variable="volume"/>
422 </group>
423 </if>
424 </choose>
425 </group>
426 </else>
427 </choose>
428 </else>
429 </choose>
430 </macro>
431 <macro name="title-intext">
432 <!-- TODO: Add new item types -->
433 <choose>
434 <if variable="title" match="none">
435 <text macro="bracketed-intext" prefix="[" suffix="]"/>
436 </if>
437 <else-if type="hearing">
438 <!-- Hearings are italicized -->
439 <text variable="title" form="short" font-style="italic" text-case="title"/>
440 </else-if>
441 <else-if type="bill">
442 <!-- Bills are not italicized and substitute bill number if no title. -->
443 <choose>
444 <if variable="title">
445 <text variable="title" form="short" text-case="title"/>
446 </if>
447 <else>
448 <group delimiter=" ">
449 <text variable="genre"/>
450 <group delimiter=" ">
451 <choose>
452 <if variable="chapter-number container-title" match="none">
453 <label variable="number" form="short"/>
454 </if>
455 </choose>
456 <text variable="number"/>
457 </group>
458 </group>
459 </else>
460 </choose>
461 </else-if>
462 <else-if type="legal_case" match="any">
463 <!-- Cases are italicized -->
464 <text variable="title" font-style="italic"/>
465 </else-if>
466 <else-if type="legislation treaty" match="any">
467 <!-- Legislation and treaties not italicized or quoted -->
468 <text variable="title" form="short" text-case="title"/>
469 </else-if>
470 <else-if type="post webpage" match="any">
471 <!-- Webpages are always italicized -->
472 <text variable="title" form="short" font-style="italic" text-case="title"/>
473 </else-if>
474 <else-if variable="container-title" match="any">
475 <!-- Other types are italicized or quoted based on presence of container-title. As in title macro. -->
476 <text variable="title" form="short" quotes="true" text-case="title"/>
477 </else-if>
478 <else>
479 <text variable="title" form="short" font-style="italic" text-case="title"/>
480 </else>
481 </choose>
482 </macro>
483 <macro name="parenthetical">
484 <!-- TODO: Add new item types -->
485 <!-- (Secondary contributors; Database location; Genre no. 123; Report Series 123, Version, Edition, Volume, Page) -->
486 <group prefix="(" suffix=")">
487 <choose>
488 <if type="patent">
489 <!-- authority: U.S. ; genre: patent ; number: 123,445 -->
490 <group delimiter=" ">
491 <text variable="authority" form="short"/>
492 <choose>
493 <if variable="genre">
494 <text variable="genre" text-case="capitalize-first"/>
495 </if>
496 <else>
497 <text term="patent" text-case="capitalize-first"/>
498 </else>
499 </choose>
500 <group delimiter=" ">
501 <label variable="number" form="short" text-case="capitalize-first"/>
502 <text variable="number"/>
503 </group>
504 </group>
505 </if>
506 <else-if type="post webpage" match="any">
507 <!-- For post webpage, container-title is treated as publisher -->
508 <group delimiter="; ">
509 <text macro="secondary-contributors"/>
510 <text macro="database-location"/>
511 <text macro="number"/>
512 <text macro="locators-booklike"/>
513 </group>
514 </else-if>
515 <else-if variable="container-title">
516 <group delimiter="; ">
517 <text macro="secondary-contributors"/>
518 <choose>
519 <if type="broadcast graphic map motion_picture song" match="any">
520 <!-- For audiovisual media, number information comes after title, not container-title -->
521 <text macro="number"/>
522 </if>
523 </choose>
524 </group>
525 </else-if>
526 <else>
527 <group delimiter="; ">
528 <text macro="secondary-contributors"/>
529 <text macro="database-location"/>
530 <text macro="number"/>
531 <text macro="locators-booklike"/>
532 </group>
533 </else>
534 </choose>
535 </group>
536 </macro>
537 <macro name="parenthetical-container">
538 <!-- TODO: Add new item types -->
539 <choose>
540 <if variable="container-title" match="any">
541 <group prefix="(" suffix=")">
542 <group delimiter="; ">
543 <text macro="database-location"/>
544 <choose>
545 <if type="broadcast graphic map motion_picture song" match="none">
546 <!-- For audiovisual media, number information comes after title, not container-title -->
547 <text macro="number"/>
548 </if>
549 </choose>
550 <text macro="locators-booklike"/>
551 </group>
552 </group>
553 </if>
554 </choose>
555 </macro>
556 <macro name="bracketed">
557 <!-- TODO: Add new item types -->
558 <!-- [Descriptive information] -->
559 <!-- If there is a number, genre is already printed in macro="number" -->
560 <group prefix="[" suffix="]">
561 <choose>
562 <if variable="reviewed-author reviewed-title" type="review review-book" match="any">
563 <!-- Reviewed item -->
564 <group delimiter="; ">
565 <group delimiter=", ">
566 <group delimiter=" ">
567 <!-- Assume that genre is entered as 'Review of the book' or similar -->
568 <choose>
569 <if variable="number" match="none">
570 <choose>
571 <if variable="genre">
572 <text variable="genre" text-case="capitalize-first"/>
573 </if>
574 <else-if variable="medium">
575 <text variable="medium" text-case="capitalize-first"/>
576 </else-if>
577 <else>
578 <!-- TODO: Replace with term="review" -->
579 <!-- TODO: Handle review vs review-of depending on presence of reviewed-title -->
580 <!-- TODO: Add reviewed-genre -->
581 <text value="Review of"/>
582 </else>
583 </choose>
584 </if>
585 <else>
586 <choose>
587 <if variable="medium">
588 <text variable="medium" text-case="capitalize-first"/>
589 </if>
590 <else>
591 <!-- TODO: Replace with term="review" -->
592 <!-- TODO: Handle review vs review-of depending on presence of reviewed-title -->
593 <!-- TODO: Add reviewed-genre -->
594 <text value="Review of"/>
595 </else>
596 </choose>
597 </else>
598 </choose>
599 <text macro="reviewed-title"/>
600 </group>
601 <names variable="reviewed-author">
602 <label form="verb-short" suffix=" "/>
603 <name and="symbol" initialize-with=". " delimiter=", "/>
604 </names>
605 </group>
606 <choose>
607 <if variable="genre" match="any">
608 <choose>
609 <if variable="number" match="none">
610 <text variable="medium" text-case="capitalize-first"/>
611 </if>
612 </choose>
613 </if>
614 </choose>
615 </group>
616 </if>
617 <else-if type="thesis">
618 <!-- Thesis type and institution -->
619 <group delimiter="; ">
620 <choose>
621 <if variable="number" match="none">
622 <group delimiter=", ">
623 <text variable="genre" text-case="capitalize-first"/>
624 <choose>
625 <if variable="archive DOI URL" match="any">
626 <!-- Include the university in brackets if thesis is published -->
627 <text variable="publisher"/>
628 </if>
629 </choose>
630 </group>
631 </if>
632 </choose>
633 <text variable="medium" text-case="capitalize-first"/>
634 </group>
635 </else-if>
636 <else-if variable="interviewer" type="interview" match="any">
637 <!-- Interview information -->
638 <choose>
639 <if variable="title">
640 <text macro="format"/>
641 </if>
642 <else-if variable="genre">
643 <group delimiter="; ">
644 <group delimiter=" ">
645 <text variable="genre" text-case="capitalize-first"/>
646 <group delimiter=" ">
647 <text term="author" form="verb"/>
648 <names variable="interviewer">
649 <name and="symbol" initialize-with=". " delimiter=", "/>
650 </names>
651 </group>
652 </group>
653 </group>
654 </else-if>
655 <else-if variable="interviewer">
656 <group delimiter="; ">
657 <names variable="interviewer">
658 <label form="verb" suffix=" " text-case="capitalize-first"/>
659 <name and="symbol" initialize-with=". " delimiter=", "/>
660 </names>
661 <text variable="medium" text-case="capitalize-first"/>
662 </group>
663 </else-if>
664 <else>
665 <text macro="format"/>
666 </else>
667 </choose>
668 </else-if>
669 <else-if type="personal_communication">
670 <!-- Letter information -->
671 <choose>
672 <if variable="recipient">
673 <group delimiter="; ">
674 <group delimiter=" ">
675 <choose>
676 <if variable="number" match="none">
677 <choose>
678 <if variable="genre">
679 <text variable="genre" text-case="capitalize-first"/>
680 </if>
681 <else-if variable="medium">
682 <text variable="medium" text-case="capitalize-first"/>
683 </else-if>
684 <else>
685 <text term="letter" text-case="capitalize-first"/>
686 </else>
687 </choose>
688 </if>
689 <else>
690 <choose>
691 <if variable="medium">
692 <text variable="medium" text-case="capitalize-first"/>
693 </if>
694 <else>
695 <text term="letter" text-case="capitalize-first"/>
696 </else>
697 </choose>
698 </else>
699 </choose>
700 <names variable="recipient" delimiter=", ">
701 <label form="verb" suffix=" "/>
702 <name and="symbol" delimiter=", "/>
703 </names>
704 </group>
705 <choose>
706 <if variable="genre" match="any">
707 <choose>
708 <if variable="number" match="none">
709 <text variable="medium" text-case="capitalize-first"/>
710 </if>
711 </choose>
712 </if>
713 </choose>
714 </group>
715 </if>
716 <else>
717 <text macro="format"/>
718 </else>
719 </choose>
720 </else-if>
721 <else-if variable="composer" type="song" match="all">
722 <!-- Performer of classical music works -->
723 <group delimiter="; ">
724 <choose>
725 <if variable="number" match="none">
726 <group delimiter=" ">
727 <choose>
728 <if variable="genre">
729 <text variable="genre" text-case="capitalize-first"/>
730 <!-- TODO: Replace prefix with performer label -->
731 <names variable="author" prefix="recorded by ">
732 <name and="symbol" initialize-with=". " delimiter=", "/>
733 </names>
734 </if>
735 <else-if variable="medium">
736 <text variable="medium" text-case="capitalize-first"/>
737 <!-- TODO: Replace prefix with performer label -->
738 <names variable="author" prefix="recorded by ">
739 <name and="symbol" initialize-with=". " delimiter=", "/>
740 </names>
741 </else-if>
742 <else>
743 <!-- TODO: Replace prefix with performer label -->
744 <names variable="author" prefix="Recorded by ">
745 <name and="symbol" initialize-with=". " delimiter=", "/>
746 </names>
747 </else>
748 </choose>
749 </group>
750 </if>
751 <else>
752 <group delimiter=" ">
753 <choose>
754 <if variable="medium">
755 <text variable="medium" text-case="capitalize-first"/>
756 <!-- TODO: Replace prefix with performer label -->
757 <names variable="author" prefix="recorded by ">
758 <name and="symbol" initialize-with=". " delimiter=", "/>
759 </names>
760 </if>
761 <else>
762 <!-- TODO: Replace prefix with performer label -->
763 <names variable="author" prefix="Recorded by ">
764 <name and="symbol" initialize-with=". " delimiter=", "/>
765 </names>
766 </else>
767 </choose>
768 </group>
769 </else>
770 </choose>
771 <choose>
772 <if variable="genre" match="any">
773 <choose>
774 <if variable="number" match="none">
775 <text variable="medium" text-case="capitalize-first"/>
776 </if>
777 </choose>
778 </if>
779 </choose>
780 </group>
781 </else-if>
782 <else-if variable="container-title" match="none">
783 <!-- Other description -->
784 <text macro="format"/>
785 </else-if>
786 <else>
787 <!-- For conference presentations, chapters in reports, software, place bracketed after the container title -->
788 <choose>
789 <if type="paper-conference speech" match="any">
790 <choose>
791 <if variable="collection-editor editor editorial-director issue page volume" match="any">
792 <text macro="format"/>
793 </if>
794 </choose>
795 </if>
796 <else-if type="report software" match="none">
797 <text macro="format"/>
798 </else-if>
799 </choose>
800 </else>
801 </choose>
802 </group>
803 </macro>
804 <macro name="bracketed-intext">
805 <!-- TODO: Add new item types -->
806 <group prefix="[" suffix="]">
807 <choose>
808 <if variable="reviewed-author reviewed-title" type="review review-book" match="any">
809 <group delimiter=" ">
810 <text term="review-of" text-case="capitalize-first"/>
811 <text macro="reviewed-title-intext"/>
812 </group>
813 </if>
814 <else-if variable="interviewer" type="interview" match="any">
815 <names variable="interviewer">
816 <label form="verb" suffix=" " text-case="capitalize-first"/>
817 <name and="symbol" initialize-with=". " delimiter=", "/>
818 <substitute>
819 <text macro="format-intext"/>
820 </substitute>
821 </names>
822 </else-if>
823 <else-if type="personal_communication">
824 <!-- Letter information -->
825 <choose>
826 <if variable="recipient">
827 <group delimiter=" ">
828 <choose>
829 <if variable="number" match="none">
830 <text variable="genre" text-case="capitalize-first"/>
831 </if>
832 <else>
833 <text term="letter" text-case="capitalize-first"/>
834 </else>
835 </choose>
836 <names variable="recipient" delimiter=", ">
837 <label form="verb" suffix=" "/>
838 <name and="symbol" delimiter=", "/>
839 </names>
840 </group>
841 </if>
842 <else>
843 <text macro="format-intext"/>
844 </else>
845 </choose>
846 </else-if>
847 <else>
848 <text macro="format-intext"/>
849 </else>
850 </choose>
851 </group>
852 </macro>
853 <macro name="bracketed-container">
854 <!-- TODO: Add new item types -->
855 <group prefix="[" suffix="]">
856 <choose>
857 <if type="paper-conference speech" match="any">
858 <!-- Conference presentations should describe the session [container] in bracketed unless published in a proceedings -->
859 <choose>
860 <if variable="collection-editor editor editorial-director issue page volume" match="none">
861 <text macro="format"/>
862 </if>
863 </choose>
864 </if>
865 <else-if type="software" match="all">
866 <!-- For entries in mobile app reference works, place bracketed after the container-title -->
867 <text macro="format"/>
868 </else-if>
869 <else-if type="report">
870 <!-- For chapters in reports, place bracketed after the container title -->
871 <text macro="format"/>
872 </else-if>
873 </choose>
874 </group>
875 </macro>
876 <macro name="secondary-contributors">
877 <!-- TODO: Add new item types -->
878 <!-- TODO: Add new creator roles -->
879 <choose>
880 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
881 <text macro="secondary-contributors-periodical"/>
882 </if>
883 <else-if type="paper-conference">
884 <choose>
885 <if variable="collection-editor editor editorial-director" match="any">
886 <text macro="secondary-contributors-booklike"/>
887 </if>
888 <else>
889 <text macro="secondary-contributors-periodical"/>
890 </else>
891 </choose>
892 </else-if>
893 <else>
894 <text macro="secondary-contributors-booklike"/>
895 </else>
896 </choose>
897 </macro>
898 <macro name="secondary-contributors-periodical">
899 <group delimiter="; ">
900 <choose>
901 <if variable="title">
902 <names variable="interviewer" delimiter="; ">
903 <name and="symbol" initialize-with=". " delimiter=", "/>
904 <label form="short" prefix=", " text-case="title"/>
905 </names>
906 </if>
907 </choose>
908 <names variable="translator" delimiter="; ">
909 <name and="symbol" initialize-with=". " delimiter=", "/>
910 <label form="short" prefix=", " text-case="title"/>
911 </names>
912 </group>
913 </macro>
914 <macro name="secondary-contributors-booklike">
915 <!-- TODO: Add new item types -->
916 <group delimiter="; ">
917 <choose>
918 <if variable="title">
919 <names variable="interviewer">
920 <name and="symbol" initialize-with=". " delimiter=", "/>
921 <label form="short" prefix=", " text-case="title"/>
922 </names>
923 </if>
924 </choose>
925 <!-- TODO: When editortranslator becomes available, add a test: variable="editortranslator" match="none"; then print translator -->
926 <choose>
927 <if type="post webpage" match="none">
928 <!-- Webpages treat container-title like publisher -->
929 <choose>
930 <if variable="container-title" match="none">
931 <group delimiter="; ">
932 <names variable="container-author">
933 <label form="verb-short" suffix=" " text-case="title"/>
934 <name and="symbol" initialize-with=". " delimiter=", "/>
935 </names>
936 <names variable="editor translator" delimiter="; ">
937 <name and="symbol" initialize-with=". " delimiter=", "/>
938 <label form="short" prefix=", " text-case="title"/>
939 </names>
940 </group>
941 </if>
942 </choose>
943 </if>
944 <else>
945 <group delimiter="; ">
946 <names variable="container-author">
947 <label form="verb-short" suffix=" " text-case="title"/>
948 <name and="symbol" initialize-with=". " delimiter=", "/>
949 </names>
950 <names variable="editor translator" delimiter="; ">
951 <name and="symbol" initialize-with=". " delimiter=", "/>
952 <label form="short" prefix=", " text-case="title"/>
953 </names>
954 </group>
955 </else>
956 </choose>
957 </group>
958 </macro>
959 <macro name="database-location">
960 <choose>
961 <if variable="archive-place" match="none">
962 <!-- With `archive-place`: physical archives. Without: online archives. -->
963 <!-- TODO: Add archive_collection -->
964 <text variable="archive_location"/>
965 </if>
966 </choose>
967 </macro>
968 <macro name="number">
969 <!-- TODO: Add new item types -->
970 <choose>
971 <if variable="number">
972 <group delimiter=", ">
973 <group delimiter=" ">
974 <text variable="genre" text-case="title"/>
975 <choose>
976 <if is-numeric="number">
977 <label variable="number" form="short" text-case="capitalize-first"/>
978 <text variable="number"/>
979 </if>
980 <else>
981 <text variable="number"/>
982 </else>
983 </choose>
984 </group>
985 <choose>
986 <if type="thesis">
987 <choose>
988 <!-- Include the university in brackets if thesis is published -->
989 <if variable="archive DOI URL" match="any">
990 <text variable="publisher"/>
991 </if>
992 </choose>
993 </if>
994 </choose>
995 </group>
996 </if>
997 </choose>
998 </macro>
999 <macro name="locators-booklike">
1000 <!-- TODO: Add new item types -->
1001 <choose>
1002 <if type="article-journal article-magazine article-newspaper broadcast interview patent post post-weblog review review-book speech webpage" match="any"/>
1003 <else-if type="paper-conference">
1004 <choose>
1005 <if variable="collection-editor editor editorial-director" match="any">
1006 <group delimiter=", ">
1007 <text macro="version"/>
1008 <text macro="edition"/>
1009 <text macro="volume-booklike"/>
1010 </group>
1011 </if>
1012 </choose>
1013 </else-if>
1014 <else>
1015 <group delimiter=", ">
1016 <text macro="version"/>
1017 <text macro="edition"/>
1018 <text macro="volume-booklike"/>
1019 </group>
1020 </else>
1021 </choose>
1022 </macro>
1023 <macro name="version">
1024 <choose>
1025 <if is-numeric="version">
1026 <group delimiter=" ">
1027 <label variable="version" text-case="capitalize-first"/>
1028 <text variable="version"/>
1029 </group>
1030 </if>
1031 <else>
1032 <text variable="version"/>
1033 </else>
1034 </choose>
1035 </macro>
1036 <macro name="edition">
1037 <choose>
1038 <if is-numeric="edition">
1039 <group delimiter=" ">
1040 <number variable="edition" form="ordinal"/>
1041 <label variable="edition" form="short"/>
1042 </group>
1043 </if>
1044 <else>
1045 <text variable="edition"/>
1046 </else>
1047 </choose>
1048 </macro>
1049 <macro name="volume-booklike">
1050 <!-- TODO: Add new item types -->
1051 <group delimiter=", ">
1052 <!-- Report series [ex. 52] -->
1053 <choose>
1054 <if type="report">
1055 <group delimiter=" ">
1056 <text variable="collection-title" text-case="title"/>
1057 <text variable="collection-number"/>
1058 </group>
1059 </if>
1060 </choose>
1061 <choose>
1062 <if variable="volume" match="any">
1063 <!-- TODO: Update using volume-title -->
1064 <choose>
1065 <!-- Non-numeric volumes are already printed as part of the book title -->
1066 <if is-numeric="volume" match="none"/>
1067 <else>
1068 <group delimiter=" ">
1069 <label variable="volume" form="short" text-case="capitalize-first"/>
1070 <number variable="volume" form="numeric"/>
1071 </group>
1072 </else>
1073 </choose>
1074 </if>
1075 <else>
1076 <group>
1077 <label variable="number-of-volumes" form="short" text-case="capitalize-first" suffix=" "/>
1078 <text term="page-range-delimiter" prefix="1"/>
1079 <number variable="number-of-volumes" form="numeric"/>
1080 </group>
1081 </else>
1082 </choose>
1083 <group delimiter=" ">
1084 <label variable="issue" text-case="capitalize-first"/>
1085 <text variable="issue"/>
1086 </group>
1087 <group delimiter=" ">
1088 <label variable="page" form="short" suffix=" "/>
1089 <text variable="page"/>
1090 </group>
1091 </group>
1092 </macro>
1093 <macro name="reviewed-title">
1094 <choose>
1095 <if variable="reviewed-title">
1096 <!-- Not possible to distinguish TV series episode from other reviewed
1097 works [Ex. 69] -->
1098 <text variable="reviewed-title" font-style="italic"/>
1099 </if>
1100 <else>
1101 <!-- Assume title is title of reviewed work -->
1102 <text variable="title" font-style="italic"/>
1103 </else>
1104 </choose>
1105 </macro>
1106 <macro name="reviewed-title-intext">
1107 <choose>
1108 <if variable="reviewed-title">
1109 <!-- Not possible to distinguish TV series episode from other reviewed works [Ex. 69] -->
1110 <text variable="reviewed-title" form="short" font-style="italic" text-case="title"/>
1111 </if>
1112 <else>
1113 <!-- Assume title is title of reviewed work -->
1114 <text variable="title" form="short" font-style="italic" text-case="title"/>
1115 </else>
1116 </choose>
1117 </macro>
1118 <macro name="format">
1119 <!-- TODO: Add new item types -->
1120 <choose>
1121 <if variable="genre medium" match="any">
1122 <group delimiter="; ">
1123 <choose>
1124 <if variable="number" match="none">
1125 <text variable="genre" text-case="capitalize-first"/>
1126 </if>
1127 </choose>
1128 <text variable="medium" text-case="capitalize-first"/>
1129 </group>
1130 </if>
1131 <!-- Generic labels for specific types -->
1132 <!-- TODO: Add terms for other types? -->
1133 <else-if type="dataset">
1134 <text term="dataset"/>
1135 </else-if>
1136 <else-if type="software">
1137 <text term="software" text-case="capitalize-first"/>
1138 </else-if>
1139 <else-if type="interview personal_communication" match="any">
1140 <choose>
1141 <if variable="archive container-title DOI publisher URL" match="none">
1142 <text term="personal-communication" text-case="capitalize-first"/>
1143 </if>
1144 <else-if type="interview">
1145 <text term="interview" text-case="capitalize-first"/>
1146 </else-if>
1147 </choose>
1148 </else-if>
1149 <else-if type="map">
1150 <text term="map" text-case="capitalize-first"/>
1151 </else-if>
1152 </choose>
1153 </macro>
1154 <macro name="format-intext">
1155 <!-- TODO: Add new item types -->
1156 <choose>
1157 <if variable="genre" match="any">
1158 <text variable="genre" text-case="capitalize-first"/>
1159 </if>
1160 <else-if variable="medium">
1161 <text variable="medium" text-case="capitalize-first"/>
1162 </else-if>
1163 <!-- Generic labels for specific types -->
1164 <!-- TODO: Add terms for other types? -->
1165 <else-if type="dataset">
1166 <text term="dataset"/>
1167 </else-if>
1168 <else-if type="software">
1169 <text term="software" text-case="capitalize-first"/>
1170 </else-if>
1171 <else-if type="interview personal_communication" match="any">
1172 <choose>
1173 <if variable="archive container-title DOI publisher URL" match="none">
1174 <text term="personal-communication" text-case="capitalize-first"/>
1175 </if>
1176 <else-if type="interview">
1177 <text term="interview" text-case="capitalize-first"/>
1178 </else-if>
1179 </choose>
1180 </else-if>
1181 <else-if type="map">
1182 <text term="map"/>
1183 </else-if>
1184 </choose>
1185 </macro>
1186 <!-- APA 'source' element contains four parts:
1187 container, event, publisher, access -->
1188 <macro name="container">
1189 <!-- TODO: Add new item types -->
1190 <choose>
1191 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
1192 <!-- Periodical items -->
1193 <text macro="container-periodical"/>
1194 </if>
1195 <else-if type="paper-conference">
1196 <!-- Determine if paper-conference is a periodical or booklike -->
1197 <choose>
1198 <if variable="editor editorial-director collection-editor container-author" match="any">
1199 <text macro="container-booklike"/>
1200 </if>
1201 <else>
1202 <text macro="container-periodical"/>
1203 </else>
1204 </choose>
1205 </else-if>
1206 <else-if type="post webpage" match="none">
1207 <!-- post and webpage treat container-title like publisher -->
1208 <text macro="container-booklike"/>
1209 </else-if>
1210 </choose>
1211 </macro>
1212 <macro name="container-periodical">
1213 <group delimiter=". ">
1214 <group delimiter=", ">
1215 <text variable="container-title" font-style="italic" text-case="title"/>
1216 <choose>
1217 <if variable="volume">
1218 <group>
1219 <text variable="volume" font-style="italic"/>
1220 <text variable="issue" prefix="(" suffix=")"/>
1221 </group>
1222 </if>
1223 <else>
1224 <text variable="issue" font-style="italic"/>
1225 </else>
1226 </choose>
1227 <choose>
1228 <if variable="number">
1229 <!-- Ex. 6: Journal article with article number or eLocator -->
1230 <!-- This should be localized -->
1231 <group delimiter=" ">
1232 <text term="article-locator" text-case="capitalize-first"/>
1233 <text variable="number"/>
1234 </group>
1235 </if>
1236 <else>
1237 <text variable="page"/>
1238 </else>
1239 </choose>
1240 </group>
1241 <choose>
1242 <if variable="issued">
1243 <choose>
1244 <if variable="issue page volume" match="none">
1245 <!-- TODO: Should I print status as-is, or should I print the in-press term? -->
1246 <text variable="status" text-case="capitalize-first"/>
1247 </if>
1248 </choose>
1249 </if>
1250 </choose>
1251 </group>
1252 </macro>
1253 <macro name="container-booklike">
1254 <!-- TODO: Add new item types -->
1255 <choose>
1256 <if variable="container-title" match="any">
1257 <group delimiter=" ">
1258 <text term="in" text-case="capitalize-first"/>
1259 <group delimiter=", ">
1260 <names variable="editor translator" delimiter=", &amp; ">
1261 <!-- TODO: Change to editortranslator and move editor to substitute -->
1262 <name and="symbol" initialize-with=". " delimiter=", "/>
1263 <label form="short" text-case="title" prefix=" (" suffix=")"/>
1264 <substitute>
1265 <names variable="editorial-director"/>
1266 <names variable="collection-editor"/>
1267 <names variable="container-author"/>
1268 </substitute>
1269 </names>
1270 <group delimiter=": " font-style="italic">
1271 <text variable="container-title"/>
1272 <!-- TODO: Replace with volume-title -->
1273 <choose>
1274 <if is-numeric="volume" match="none">
1275 <group delimiter=" ">
1276 <label variable="volume" form="short" text-case="capitalize-first"/>
1277 <text variable="volume"/>
1278 </group>
1279 </if>
1280 </choose>
1281 </group>
1282 </group>
1283 <text macro="parenthetical-container"/>
1284 <text macro="bracketed-container"/>
1285 </group>
1286 </if>
1287 </choose>
1288 </macro>
1289 <macro name="publisher">
1290 <!-- TODO: Add new item types -->
1291 <group delimiter="; ">
1292 <choose>
1293 <if type="thesis">
1294 <choose>
1295 <if variable="archive DOI URL" match="none">
1296 <text variable="publisher"/>
1297 </if>
1298 </choose>
1299 </if>
1300 <else-if type="post webpage" match="any">
1301 <!-- For websites, treat container title like publisher -->
1302 <group delimiter="; ">
1303 <text variable="container-title" text-case="title"/>
1304 <text variable="publisher"/>
1305 </group>
1306 </else-if>
1307 <else-if type="paper-conference">
1308 <!-- For paper-conference, don't print publisher if in a journal-like proceedings -->
1309 <choose>
1310 <if variable="collection-editor editor editorial-director" match="any">
1311 <text variable="publisher"/>
1312 </if>
1313 </choose>
1314 </else-if>
1315 <else-if type="article-journal article-magazine article-newspaper post-weblog" match="none">
1316 <text variable="publisher"/>
1317 </else-if>
1318 </choose>
1319 <group delimiter=", ">
1320 <choose>
1321 <if variable="archive-place">
1322 <!-- With `archive-place`: physical archives. Without: online archives. -->
1323 <!-- For physical archives, print the location before the archive name.
1324 For electronic archives, these are printed in macro="description". -->
1325 <!-- TODO: Split "archive_location" into "archive_collection" and "archive_location" -->
1326 <!-- Must test for archive_collection:
1327 With collection: archive_collection (archive_location), archive, archive-place
1328 No collection: archive (archive_location), archive-place
1329 -->
1330 <text variable="archive_location"/>
1331 </if>
1332 </choose>
1333 <text variable="archive"/>
1334 <text variable="archive-place"/>
1335 </group>
1336 </group>
1337 </macro>
1338 <macro name="access">
1339 <choose>
1340 <if variable="DOI" match="any">
1341 <text variable="DOI" prefix="https://doi.org/"/>
1342 </if>
1343 <else-if variable="URL">
1344 <group delimiter=" ">
1345 <choose>
1346 <if variable="issued status" match="none">
1347 <group delimiter=" ">
1348 <text term="retrieved" text-case="capitalize-first"/>
1349 <date variable="accessed" form="text" suffix=","/>
1350 <text term="from"/>
1351 </group>
1352 </if>
1353 </choose>
1354 <text variable="URL"/>
1355 </group>
1356 </else-if>
1357 </choose>
1358 </macro>
1359 <macro name="event">
1360 <!-- TODO: Add new item types (e.g., event, collection, performance) -->
1361 <choose>
1362 <if variable="event event-title" match="any">
1363 <!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to
1364 both publisher-place and event-place. Remove this 'choose' when that is changed. -->
1365 <choose>
1366 <if variable="collection-editor editor editorial-director issue page volume" match="none">
1367 <!-- Don't print event info if published in a proceedings -->
1368 <group delimiter=", ">
1369 <text macro="event-title"/>
1370 <text variable="event-place"/>
1371 </group>
1372 </if>
1373 </choose>
1374 </if>
1375 </choose>
1376 </macro>
1377 <macro name="event-title">
1378 <choose>
1379 <!-- TODO: We expect "event-title" to be used,
1380 but processors and applications may not be updated yet.
1381 This macro ensures that either "event" or "event-title" can be accpeted.
1382 Remove if procesor logic and application adoption can handle this. -->
1383 <if variable="event-title">
1384 <text variable="event-title"/>
1385 </if>
1386 <else>
1387 <text variable="event"/>
1388 </else>
1389 </choose>
1390 </macro>
1391 <!-- After 'source', APA also prints publication history (original publication, reprint info, retraction info) -->
1392 <macro name="publication-history">
1393 <!-- TODO: Add new item types -->
1394 <choose>
1395 <if type="patent" match="none">
1396 <group prefix="(" suffix=")">
1397 <choose>
1398 <if variable="references">
1399 <!-- This provides the option for more elaborate description
1400 of publication history, such as full "reprinted" references
1401 (examples 11, 43, 44) or retracted references -->
1402 <text variable="references"/>
1403 </if>
1404 <else>
1405 <!-- TODO: Replace these with terms -->
1406 <group delimiter=" ">
1407 <text term="original-work-published" text-case="capitalize-first"/>
1408 <choose>
1409 <if is-uncertain-date="original-date">
1410 <text term="circa" form="short"/>
1411 </if>
1412 </choose>
1413 <date variable="original-date">
1414 <date-part name="year"/>
1415 </date>
1416 </group>
1417 </else>
1418 </choose>
1419 </group>
1420 </if>
1421 <else>
1422 <text variable="references" prefix="(" suffix=")"/>
1423 </else>
1424 </choose>
1425 </macro>
1426 <!-- Legal citations have their own rules -->
1427 <macro name="legal-cites">
1428 <!-- TODO: Add new item types -->
1429 <choose>
1430 <if type="treaty">
1431 <!-- APA generally defers to Bluebook for legal citations, but diverges without
1432 explanation for treaty items. The Bluebook format that was used in APA 6th
1433 ed. is used here. -->
1434 <group delimiter=", ">
1435 <text variable="title" text-case="title"/>
1436 <names variable="author">
1437 <name initialize-with="." form="short" delimiter="-"/>
1438 </names>
1439 <text macro="date-legal"/>
1440 <text macro="container-legal"/>
1441 <text macro="access"/>
1442 </group>
1443 </if>
1444 <else>
1445 <!-- For `bill`: currently designed to handle bills, resolutions, federal reports. -->
1446 <!-- For `legislation`: currently designed to handle statutes, codified regulations, executive orders. -->
1447 <group delimiter=". ">
1448 <group delimiter=", ">
1449 <choose>
1450 <if type="bill legal_case legislation" match="any">
1451 <text variable="title"/>
1452 </if>
1453 <else-if type="hearing">
1454 <text variable="title" font-style="italic"/>
1455 </else-if>
1456 </choose>
1457 <group delimiter=" ">
1458 <text macro="container-legal"/>
1459 <text macro="date-legal"/>
1460 <choose>
1461 <if type="hearing">
1462 <names variable="author" prefix="(testimony of " suffix=")">
1463 <!-- TODO: Localize this with the hearing term. -->
1464 <name and="symbol" delimiter=", "/>
1465 </names>
1466 </if>
1467 <else-if type="bill legislation" match="any">
1468 <!-- `legislation`: For uncodified regulations, assume future code section is in status. -->
1469 <text variable="status" prefix="(" suffix=")"/>
1470 </else-if>
1471 </choose>
1472 </group>
1473 <text variable="references"/>
1474 </group>
1475 <text macro="access"/>
1476 </group>
1477 </else>
1478 </choose>
1479 </macro>
1480 <macro name="date-legal">
1481 <!-- TODO: Add new item types -->
1482 <choose>
1483 <if type="legal_case">
1484 <group prefix="(" suffix=")" delimiter=" ">
1485 <text variable="authority"/>
1486 <choose>
1487 <if variable="container-title" match="any">
1488 <!-- Print only year for cases published in reporters-->
1489 <date variable="issued" form="numeric" date-parts="year"/>
1490 </if>
1491 <else>
1492 <date variable="issued" form="text"/>
1493 </else>
1494 </choose>
1495 </group>
1496 </if>
1497 <else-if type="bill legislation hearing" match="any">
1498 <group prefix="(" suffix=")" delimiter=" ">
1499 <group delimiter=" ">
1500 <date variable="original-date">
1501 <date-part name="year"/>
1502 </date>
1503 <text term="and" form="symbol"/>
1504 </group>
1505 <date variable="issued">
1506 <date-part name="year"/>
1507 </date>
1508 </group>
1509 </else-if>
1510 <else-if type="treaty">
1511 <date variable="issued" form="text"/>
1512 </else-if>
1513 </choose>
1514 </macro>
1515 <macro name="container-legal">
1516 <!-- TODO: Add new item types -->
1517 <!-- Expect legal item container-titles to be stored in short form -->
1518 <choose>
1519 <if type="legal_case">
1520 <group delimiter=" ">
1521 <choose>
1522 <if variable="container-title">
1523 <group delimiter=" ">
1524 <text variable="volume"/>
1525 <text variable="container-title"/>
1526 <group delimiter=" ">
1527 <label variable="section" form="symbol"/>
1528 <text variable="section"/>
1529 </group>
1530 <choose>
1531 <if variable="page page-first" match="any">
1532 <text variable="page-first"/>
1533 </if>
1534 <else>
1535 <text value="___"/>
1536 </else>
1537 </choose>
1538 </group>
1539 </if>
1540 <else>
1541 <group delimiter=" ">
1542 <choose>
1543 <if is-numeric="number">
1544 <label variable="number" form="short" text-case="capitalize-first"/>
1545 </if>
1546 </choose>
1547 <text variable="number"/>
1548 </group>
1549 </else>
1550 </choose>
1551 </group>
1552 </if>
1553 <else-if type="bill">
1554 <group delimiter=", ">
1555 <group delimiter=" ">
1556 <text variable="genre"/>
1557 <group delimiter=" ">
1558 <choose>
1559 <if variable="chapter-number container-title" match="none">
1560 <label variable="number" form="short"/>
1561 </if>
1562 </choose>
1563 <text variable="number"/>
1564 </group>
1565 </group>
1566 <text variable="authority"/>
1567 <text variable="chapter-number"/>
1568 <group delimiter=" ">
1569 <text variable="volume"/>
1570 <text variable="container-title"/>
1571 <text variable="page-first"/>
1572 </group>
1573 </group>
1574 </else-if>
1575 <else-if type="legislation">
1576 <choose>
1577 <if variable="number">
1578 <!--There's a public law number-->
1579 <group delimiter=", ">
1580 <text variable="number" prefix="Pub. L. No. "/>
1581 <group delimiter=" ">
1582 <text variable="volume"/>
1583 <text variable="container-title"/>
1584 <text variable="page-first"/>
1585 </group>
1586 </group>
1587 </if>
1588 <else>
1589 <group delimiter=" ">
1590 <text variable="volume"/>
1591 <text variable="container-title"/>
1592 <choose>
1593 <if variable="section">
1594 <group delimiter=" ">
1595 <!-- TODO: Change to label variable="section" -->
1596 <text term="section" form="symbol"/>
1597 <text variable="section"/>
1598 </group>
1599 </if>
1600 <else>
1601 <text variable="page-first"/>
1602 </else>
1603 </choose>
1604 </group>
1605 </else>
1606 </choose>
1607 </else-if>
1608 <else-if type="treaty">
1609 <group delimiter=" ">
1610 <number variable="volume"/>
1611 <text variable="container-title"/>
1612 <choose>
1613 <if variable="page page-first" match="any">
1614 <text variable="page-first"/>
1615 </if>
1616 <else>
1617 <group delimiter=" ">
1618 <label variable="number" form="short" text-case="capitalize-first"/>
1619 <text variable="number"/>
1620 </group>
1621 </else>
1622 </choose>
1623 </group>
1624 </else-if>
1625 </choose>
1626 </macro>
1627 <macro name="citation-locator">
1628 <!-- TODO: Add new locator types? -->
1629 <group delimiter=" ">
1630 <choose>
1631 <if locator="chapter">
1632 <label variable="locator" text-case="capitalize-first"/>
1633 </if>
1634 <else>
1635 <label variable="locator" form="short"/>
1636 </else>
1637 </choose>
1638 <text variable="locator"/>
1639 </group>
1640 </macro>
1641 <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-with-initials">
1642 <sort>
1643 <key macro="author-bib" names-min="3" names-use-first="1"/>
1644 <key macro="date-sort-group"/>
1645 <key macro="date-bib" sort="ascending"/>
1646 <key variable="status"/>
1647 </sort>
1648 <layout delimiter=", ">
1649 <group delimiter=" ">
1650 <text macro="author-intext"/>
1651 <text prefix="(" macro="date-intext" suffix=")"/>
1652 <text macro="citation-locator"/>
1653 </group>
1654 </layout>
1655 </citation>
1656 <bibliography hanging-indent="true" et-al-min="21" et-al-use-first="19" et-al-use-last="true" entry-spacing="0" line-spacing="2">
1657 <sort>
1658 <key macro="author-bib"/>
1659 <key macro="date-sort-group"/>
1660 <key macro="date-bib" sort="ascending"/>
1661 <key variable="status"/>
1662 <key macro="title"/>
1663 </sort>
1664 <layout>
1665 <choose>
1666 <!-- TODO: Add new item types -->
1667 <if type="bill legal_case legislation treaty" match="any">
1668 <!-- Legal items have different orders and delimiters -->
1669 <choose>
1670 <if variable="DOI URL" match="any">
1671 <text macro="legal-cites"/>
1672 </if>
1673 <else>
1674 <text macro="legal-cites" suffix="."/>
1675 </else>
1676 </choose>
1677 </if>
1678 <else>
1679 <group delimiter=" ">
1680 <group delimiter=". " suffix=".">
1681 <text macro="author-bib"/>
1682 <text macro="date-bib"/>
1683 <text macro="title-and-descriptions"/>
1684 <text macro="container"/>
1685 <text macro="event"/>
1686 <text macro="publisher"/>
1687 </group>
1688 <text macro="access"/>
1689 <text macro="publication-history"/>
1690 </group>
1691 </else>
1692 </choose>
1693 </layout>
1694 </bibliography>
1695</style>