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