oxedyne/fe2o3/fe2o3_text/tests/data/csl/corpus/new-apa.csl
82.4 KiB, 1 run
created by r1870400018:72832, 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>American Psychological Association 7th edition</title> |
| 5 | <title-short>APA</title-short> |
| 6 | <id>http://www.zotero.org/styles/apa</id> |
| 7 | <link href="http://www.zotero.org/styles/apa" rel="self"/> |
| 8 | <link href="http://www.zotero.org/styles/apa-6th-edition" rel="template"/> |
| 9 | <link href="https://apastyle.apa.org/style-grammar-guidelines/references/examples" rel="documentation"/> |
| 10 | <author> |
| 11 | <name>Brenton M. Wiernik</name> |
| 12 | <email>zotero@wiernik.org</email> |
| 13 | </author> |
| 14 | <category citation-format="author-date"/> |
| 15 | <category field="psychology"/> |
| 16 | <category field="generic-base"/> |
| 17 | <updated>2024-07-09T20:08:41+00:00</updated> |
| 18 | <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> |
| 19 | </info> |
| 20 | <locale xml:lang="en"> |
| 21 | <terms> |
| 22 | <term name="editortranslator" form="short"> |
| 23 | <single>ed. & trans.</single> |
| 24 | <multiple>eds. & trans.</multiple> |
| 25 | </term> |
| 26 | <term name="editor-translator" form="short"> |
| 27 | <single>ed. & trans.</single> |
| 28 | <multiple>eds. & trans.</multiple> |
| 29 | </term> |
| 30 | <term name="translator" form="short">trans.</term> |
| 31 | <term name="interviewer" form="short"> |
| 32 | <single>interviewer</single> |
| 33 | <multiple>interviewers</multiple> |
| 34 | </term> |
| 35 | <term name="collection-editor" form="short"> |
| 36 | <single>ed.</single> |
| 37 | <multiple>eds.</multiple> |
| 38 | </term> |
| 39 | <term name="performer" form="verb">recorded by</term> |
| 40 | <term name="circa" form="short">ca.</term> |
| 41 | <term name="bc"> B.C.E.</term> |
| 42 | <term name="ad"> C.E.</term> |
| 43 | <term name="issue" form="long"> |
| 44 | <single>issue</single> |
| 45 | <multiple>issues</multiple> |
| 46 | </term> |
| 47 | <term name="software">computer software</term> |
| 48 | <term name="at" form="long">before the</term> |
| 49 | <term name="collection">archival collection</term> |
| 50 | <term name="post">online post</term> |
| 51 | <term name="at" form="long">before the</term> |
| 52 | <term name="hearing" form="verb">testimony of</term> |
| 53 | <term name="review-of" form="long">review of the</term> |
| 54 | <term name="review-of" form="short">review of</term> |
| 55 | </terms> |
| 56 | </locale> |
| 57 | <locale xml:lang="da"> |
| 58 | <terms> |
| 59 | <term name="et-al">et al.</term> |
| 60 | </terms> |
| 61 | </locale> |
| 62 | <locale xml:lang="de"> |
| 63 | <terms> |
| 64 | <term name="et-al">et al.</term> |
| 65 | </terms> |
| 66 | </locale> |
| 67 | <locale xml:lang="es"> |
| 68 | <terms> |
| 69 | <term name="from">de</term> |
| 70 | </terms> |
| 71 | </locale> |
| 72 | <locale xml:lang="fr"> |
| 73 | <terms> |
| 74 | <term name="editor" form="short"> |
| 75 | <single>éd.</single> |
| 76 | <multiple>éds.</multiple> |
| 77 | </term> |
| 78 | </terms> |
| 79 | </locale> |
| 80 | <locale xml:lang="nb"> |
| 81 | <terms> |
| 82 | <term name="et-al">et al.</term> |
| 83 | </terms> |
| 84 | </locale> |
| 85 | <locale xml:lang="nl"> |
| 86 | <terms> |
| 87 | <term name="et-al">et al.</term> |
| 88 | </terms> |
| 89 | </locale> |
| 90 | <locale xml:lang="nn"> |
| 91 | <terms> |
| 92 | <term name="et-al">et al.</term> |
| 93 | </terms> |
| 94 | </locale> |
| 95 | <locale xml:lang="ro"> |
| 96 | <terms> |
| 97 | <term name="et-al">et al.</term> |
| 98 | </terms> |
| 99 | </locale> |
| 100 | <!-- For Indigeneous Knowledge, assume the item is stored as `document` or `speech` |
| 101 | and that Nation/Community, treaty, where the Elder lives, |
| 102 | and topic are all stored in `title` |
| 103 | cf. https://libguides.norquest.ca/c.php?g=314831&p=5188823. |
| 104 | If the item is stored as `interview`, assume that Nation/Community, treat, and topic |
| 105 | are stored in `title`, 'Oral teaching' or similar is stored in `archive`, and where |
| 106 | the Elder lives is stored in `archive-place`. |
| 107 | --> |
| 108 | <!-- Reviews are detected if an item has type `review` or `review-book` or if it has any of the variables |
| 109 | `reviewed-title`, `reviewed-author`, or `reviewed-genre`. For the latter case, reviews are commonly |
| 110 | stored as types `article-journal`, `article-magazine`, `article-newspaper`, `post-weblog`, or `webpage` |
| 111 | --> |
| 112 | <!-- General categories of item types: |
| 113 | Periodical: article-journal article-magazine article-newspaper periodical post-weblog review review-book |
| 114 | Periodical or Booklike: paper-conference |
| 115 | Booklike: article book broadcast chapter classic collection dataset document |
| 116 | entry entry-dictionary entry-encyclopedia event figure |
| 117 | graphic interview manuscript map motion_picture musical_score |
| 118 | pamphlet patent performance personal_communication post report |
| 119 | software song speech standard thesis webpage |
| 120 | Legal: bill hearing legal_case legislation regulation treaty |
| 121 | --> |
| 122 | <!-- Equivalencies: |
| 123 | classic == book |
| 124 | document == report, but give full date |
| 125 | standard == report |
| 126 | performance == speech |
| 127 | event == speech |
| 128 | collection == book, but give full date |
| 129 | --> |
| 130 | <!-- Role equivalencies: |
| 131 | compiler == editor |
| 132 | organizer, curator == chair |
| 133 | script-writer == director |
| 134 | producer == director (but don't print both) |
| 135 | guest, host == director |
| 136 | series-creator, executive-producer == editor |
| 137 | --> |
| 138 | <!-- APA references contain four parts: author, date, title, source --> |
| 139 | <macro name="author-bib"> |
| 140 | <group delimiter=" "> |
| 141 | <names variable="composer" delimiter=", & "> |
| 142 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 143 | <substitute> |
| 144 | <names variable="author"/> |
| 145 | <!-- Note: `narrator` only cited in secondary-contributors --> |
| 146 | <names variable="illustrator"/> |
| 147 | <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. --> |
| 148 | <choose> |
| 149 | <if type="broadcast"> |
| 150 | <names variable="script-writer director"> |
| 151 | <!-- Note: Actors/performers and producers [not executive] not cited in APA style. --> |
| 152 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 153 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 154 | </names> |
| 155 | </if> |
| 156 | </choose> |
| 157 | <names variable="director"> |
| 158 | <!-- For non-broadcast items, APA only cites directors and not writers. --> |
| 159 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 160 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 161 | </names> |
| 162 | <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. --> |
| 163 | <names variable="guest host"> |
| 164 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 165 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 166 | </names> |
| 167 | <names variable="producer"> |
| 168 | <!-- Note: Producers not cited if there is a writer/director, but use if they are the principle creator. --> |
| 169 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 170 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 171 | </names> |
| 172 | <choose> |
| 173 | <if variable="container-title"> |
| 174 | <choose> |
| 175 | <if type="book classic collection entry entry-dictionary entry-encyclopedia" match="any"> |
| 176 | <!-- Items with book-like container-title substitute with their title and parenthetical, |
| 177 | but leave bracketed after container-title. This mimics the `container-booklike` formatting. --> |
| 178 | <choose> |
| 179 | <if variable="title"> |
| 180 | <group delimiter=" "> |
| 181 | <text macro="title"/> |
| 182 | <text macro="parenthetical"/> |
| 183 | </group> |
| 184 | </if> |
| 185 | <else> |
| 186 | <text macro="title-and-descriptions"/> |
| 187 | </else> |
| 188 | </choose> |
| 189 | </if> |
| 190 | </choose> |
| 191 | </if> |
| 192 | </choose> |
| 193 | <names variable="executive-producer"> |
| 194 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 195 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 196 | </names> |
| 197 | <names variable="series-creator"> |
| 198 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 199 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 200 | </names> |
| 201 | <names variable="editor-translator"> |
| 202 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 203 | <label form="short" prefix=" (" suffix=")" text-case="title"/> |
| 204 | </names> |
| 205 | <!-- Note: Translator is not cited as a primary creator (only as Ed. & Trans.). --> |
| 206 | <names variable="editor"> |
| 207 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 208 | <label form="short" prefix=" (" suffix=")" text-case="title"/> |
| 209 | </names> |
| 210 | <names variable="editorial-director"> |
| 211 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 212 | <label form="short" prefix=" (" suffix=")" text-case="title"/> |
| 213 | </names> |
| 214 | <names variable="compiler"> |
| 215 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 216 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 217 | </names> |
| 218 | <choose> |
| 219 | <if type="event performance speech" match="any"> |
| 220 | <names variable="chair"> |
| 221 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 222 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 223 | </names> |
| 224 | <names variable="organizer"> |
| 225 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 226 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 227 | </names> |
| 228 | </if> |
| 229 | </choose> |
| 230 | <names variable="curator"> |
| 231 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 232 | <label form="long" prefix=" (" suffix=")" text-case="title"/> |
| 233 | </names> |
| 234 | <names variable="collection-editor"> |
| 235 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 236 | <label form="short" prefix=" (" suffix=")" text-case="title"/> |
| 237 | </names> |
| 238 | <choose> |
| 239 | <if variable="title"> |
| 240 | <!-- If an item has a title, substitute missing author with title and parenthetical, but leave bracketed |
| 241 | after the date (in the 'title' position). --> |
| 242 | <group delimiter=" "> |
| 243 | <text macro="title"/> |
| 244 | <text macro="parenthetical"/> |
| 245 | </group> |
| 246 | </if> |
| 247 | <else> |
| 248 | <!-- If an item has no title, substitute with bracketed followed by parenthetical. --> |
| 249 | <text macro="title-and-descriptions"/> |
| 250 | </else> |
| 251 | </choose> |
| 252 | </substitute> |
| 253 | </names> |
| 254 | <choose> |
| 255 | <!-- Print "with" contributor for books, but not for other types that commonly have them (eg, thesis, software) --> |
| 256 | <if type="book classic collection" match="any"> |
| 257 | <names variable="contributor" prefix="(" suffix=")"> |
| 258 | <label form="verb" suffix=" "/> |
| 259 | <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> |
| 260 | </names> |
| 261 | </if> |
| 262 | </choose> |
| 263 | </group> |
| 264 | </macro> |
| 265 | <macro name="author-intext"> |
| 266 | <choose> |
| 267 | <if type="bill hearing legal_case legislation regulation treaty" match="any"> |
| 268 | <text macro="title-intext"/> |
| 269 | </if> |
| 270 | <else-if type="interview personal_communication" match="any"> |
| 271 | <choose> |
| 272 | <!-- These variables indicate that the letter is retrievable by the reader. |
| 273 | If not, then use the APA in-text-only personal communication format --> |
| 274 | <if variable="archive container-title DOI publisher URL" match="none"> |
| 275 | <group delimiter=", "> |
| 276 | <names variable="author"> |
| 277 | <name and="symbol" delimiter=", " initialize-with=". "/> |
| 278 | <substitute> |
| 279 | <text macro="title-intext"/> |
| 280 | </substitute> |
| 281 | </names> |
| 282 | <text term="personal-communication"/> |
| 283 | </group> |
| 284 | </if> |
| 285 | <else> |
| 286 | <names variable="author" delimiter=", "> |
| 287 | <name form="short" and="symbol" delimiter=", " initialize-with=". "/> |
| 288 | <substitute> |
| 289 | <text macro="title-intext"/> |
| 290 | </substitute> |
| 291 | </names> |
| 292 | </else> |
| 293 | </choose> |
| 294 | </else-if> |
| 295 | <else> |
| 296 | <names variable="composer" delimiter=" & "> |
| 297 | <name form="short" and="symbol" delimiter=", " initialize-with=". "/> |
| 298 | <substitute> |
| 299 | <names variable="author"/> |
| 300 | <names variable="illustrator"/> |
| 301 | <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. --> |
| 302 | <choose> |
| 303 | <if type="broadcast"> |
| 304 | <names variable="script-writer director"/> |
| 305 | </if> |
| 306 | </choose> |
| 307 | <names variable="director"/> |
| 308 | <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. --> |
| 309 | <names variable="guest host"/> |
| 310 | <names variable="producer"/> |
| 311 | <choose> |
| 312 | <if variable="container-title"> |
| 313 | <choose> |
| 314 | <if type="book classic collection entry entry-dictionary entry-encyclopedia" match="any"> |
| 315 | <text macro="title-intext"/> |
| 316 | </if> |
| 317 | </choose> |
| 318 | </if> |
| 319 | </choose> |
| 320 | <names variable="executive-producer"/> |
| 321 | <names variable="series-creator"/> |
| 322 | <names variable="editor"/> |
| 323 | <names variable="editorial-director"/> |
| 324 | <names variable="compiler"/> |
| 325 | <choose> |
| 326 | <if type="event performance speech" match="any"> |
| 327 | <names variable="chair"/> |
| 328 | <names variable="organizer"/> |
| 329 | </if> |
| 330 | </choose> |
| 331 | <names variable="curator"/> |
| 332 | <text macro="title-intext"/> |
| 333 | </substitute> |
| 334 | </names> |
| 335 | </else> |
| 336 | </choose> |
| 337 | </macro> |
| 338 | <macro name="author-sort"> |
| 339 | <choose> |
| 340 | <if type="bill hearing legal_case legislation regulation treaty" match="any"> |
| 341 | <text macro="title-legal"/> |
| 342 | </if> |
| 343 | <else> |
| 344 | <text macro="author-bib"/> |
| 345 | </else> |
| 346 | </choose> |
| 347 | </macro> |
| 348 | <macro name="date-bib"> |
| 349 | <group delimiter=" " prefix="(" suffix=")"> |
| 350 | <choose> |
| 351 | <if is-uncertain-date="issued"> |
| 352 | <text term="circa" form="short"/> |
| 353 | </if> |
| 354 | </choose> |
| 355 | <group> |
| 356 | <choose> |
| 357 | <if variable="issued"> |
| 358 | <!-- EDIT: Remove delimiter=", " from group --> |
| 359 | <!-- OLD: <group delimiter=", "> --> |
| 360 | <group> |
| 361 | <group> |
| 362 | <date variable="issued" date-parts="year" form="numeric"/> |
| 363 | <text variable="year-suffix"/> |
| 364 | </group> |
| 365 | <choose> |
| 366 | <if |
| 367 | type="article-magazine article-newspaper broadcast collection document event interview motion_picture pamphlet performance personal_communication post post-weblog song speech webpage" |
| 368 | match="any"> |
| 369 | <date variable="issued"> |
| 370 | <!-- EDIT: Add comma-space as a prefix here instead --> |
| 371 | <!-- OLD: <date-part name="month"/> --> |
| 372 | <date-part name="month" prefix=", "/> |
| 373 | <date-part name="day" prefix=" "/> |
| 374 | </date> |
| 375 | </if> |
| 376 | <else-if type="paper-conference"> |
| 377 | <choose> |
| 378 | <if |
| 379 | variable="collection-editor compiler editor editorial-director issue page volume" |
| 380 | match="none"> |
| 381 | <date variable="issued"> |
| 382 | <!-- EDIT: And here too --> |
| 383 | <!-- OLD: <date-part name="month"/> --> |
| 384 | <date-part name="month" prefix=", "/> |
| 385 | <date-part name="day" prefix=" "/> |
| 386 | </date> |
| 387 | </if> |
| 388 | </choose> |
| 389 | </else-if> |
| 390 | </choose> |
| 391 | </group> |
| 392 | </if> |
| 393 | <else-if variable="status"> |
| 394 | <group> |
| 395 | <text variable="status" text-case="lowercase"/> |
| 396 | <text variable="year-suffix" prefix="-"/> |
| 397 | </group> |
| 398 | </else-if> |
| 399 | <else> |
| 400 | <text term="no date" form="short"/> |
| 401 | <text variable="year-suffix" prefix="-"/> |
| 402 | </else> |
| 403 | </choose> |
| 404 | </group> |
| 405 | </group> |
| 406 | </macro> |
| 407 | <macro name="date-sort"> |
| 408 | <!-- This is necessary to ensure that citeproc sorts all item types chonologically in the same list. --> |
| 409 | <choose> |
| 410 | <if type="article article-journal book chapter entry entry-dictionary entry-encyclopedia dataset figure graphic manuscript map musical_score patent report review review-book thesis" match="any"> |
| 411 | <date variable="issued" date-parts="year" form="numeric"/> |
| 412 | </if> |
| 413 | <else-if type="paper-conference"> |
| 414 | <!-- Capture 'speech' stored as 'paper-conference' --> |
| 415 | <choose> |
| 416 | <if variable="collection-editor compiler editor editorial-director issue page volume" match="any"> |
| 417 | <date variable="issued" date-parts="year" form="numeric"/> |
| 418 | </if> |
| 419 | <else> |
| 420 | <date variable="issued"> |
| 421 | <date-part name="year" form="long"/> |
| 422 | <date-part name="month" form="numeric-leading-zeros"/> |
| 423 | <date-part name="day" form="numeric-leading-zeros"/> |
| 424 | </date> |
| 425 | </else> |
| 426 | </choose> |
| 427 | </else-if> |
| 428 | <else> |
| 429 | <date variable="issued"> |
| 430 | <date-part name="year" form="long"/> |
| 431 | <date-part name="month" form="numeric-leading-zeros"/> |
| 432 | <date-part name="day" form="numeric-leading-zeros"/> |
| 433 | </date> |
| 434 | </else> |
| 435 | </choose> |
| 436 | </macro> |
| 437 | <macro name="date-sort-group"> |
| 438 | <!-- APA sorts 1. no-date items, 2. items with dates, 3. in-press (status) items --> |
| 439 | <choose> |
| 440 | <if variable="issued"> |
| 441 | <text value="1"/> |
| 442 | </if> |
| 443 | <else-if variable="status"> |
| 444 | <text value="2"/> |
| 445 | </else-if> |
| 446 | <else> |
| 447 | <text value="0"/> |
| 448 | </else> |
| 449 | </choose> |
| 450 | </macro> |
| 451 | <macro name="date-intext"> |
| 452 | <choose> |
| 453 | <if variable="issued"> |
| 454 | <group delimiter="/"> |
| 455 | <group delimiter=" "> |
| 456 | <choose> |
| 457 | <if is-uncertain-date="original-date"> |
| 458 | <text term="circa" form="short"/> |
| 459 | </if> |
| 460 | </choose> |
| 461 | <date variable="original-date"> |
| 462 | <date-part name="year"/> |
| 463 | </date> |
| 464 | </group> |
| 465 | <group delimiter=" "> |
| 466 | <choose> |
| 467 | <if is-uncertain-date="issued"> |
| 468 | <text term="circa" form="short"/> |
| 469 | </if> |
| 470 | </choose> |
| 471 | <group> |
| 472 | <choose> |
| 473 | <if type="interview personal_communication" match="any"> |
| 474 | <choose> |
| 475 | <if variable="archive container-title DOI publisher URL" match="none"> |
| 476 | <!-- These variables indicate that the communication is retrievable by the reader. |
| 477 | If not, then use the in-text-only personal communication format --> |
| 478 | <date variable="issued" form="text"/> |
| 479 | </if> |
| 480 | <else> |
| 481 | <date variable="issued"> |
| 482 | <date-part name="year"/> |
| 483 | </date> |
| 484 | </else> |
| 485 | </choose> |
| 486 | </if> |
| 487 | <else> |
| 488 | <date variable="issued"> |
| 489 | <date-part name="year"/> |
| 490 | </date> |
| 491 | </else> |
| 492 | </choose> |
| 493 | <text variable="year-suffix"/> |
| 494 | </group> |
| 495 | </group> |
| 496 | </group> |
| 497 | </if> |
| 498 | <else-if variable="status"> |
| 499 | <!-- We print the status variable directly rather than using in-press, etc. terms. --> |
| 500 | <text variable="status" text-case="lowercase"/> |
| 501 | <text variable="year-suffix" prefix="-"/> |
| 502 | </else-if> |
| 503 | <else> |
| 504 | <text term="no date" form="short"/> |
| 505 | <text variable="year-suffix" prefix="-"/> |
| 506 | </else> |
| 507 | </choose> |
| 508 | </macro> |
| 509 | <!-- APA has two description elements following the title: |
| 510 | title (parenthetical) [bracketed] --> |
| 511 | <macro name="title-and-descriptions"> |
| 512 | <choose> |
| 513 | <if variable="title"> |
| 514 | <group delimiter=" "> |
| 515 | <text macro="title"/> |
| 516 | <text macro="parenthetical"/> |
| 517 | <text macro="bracketed"/> |
| 518 | </group> |
| 519 | </if> |
| 520 | <else> |
| 521 | <choose> |
| 522 | <if type="bill report" match="any"> |
| 523 | <!-- Bills, resolutions, and congressional reports are not italicized and substitute bill number if no title. --> |
| 524 | <!-- Can't distinguish congressional reports from other reports, |
| 525 | but giving the genre and number seems fine for other reports too. --> |
| 526 | <text macro="number"/> |
| 527 | <text macro="bracketed"/> |
| 528 | <text macro="parenthetical"/> |
| 529 | </if> |
| 530 | <else> |
| 531 | <group delimiter=" "> |
| 532 | <text macro="bracketed"/> |
| 533 | <text macro="parenthetical"/> |
| 534 | </group> |
| 535 | </else> |
| 536 | </choose> |
| 537 | </else> |
| 538 | </choose> |
| 539 | </macro> |
| 540 | <macro name="title"> |
| 541 | <choose> |
| 542 | <if type="post webpage" match="any"> |
| 543 | <!-- Webpages are always italicized --> |
| 544 | <text macro="title-plus-part-title" font-style="italic"/> |
| 545 | </if> |
| 546 | <!-- Other types are italicized based on presence of container-title. |
| 547 | Assume that review and review-book are published in periodicals/blogs, |
| 548 | not just on a web page (ex. 69) --> |
| 549 | <else-if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="any"> |
| 550 | <text macro="periodical-title"/> |
| 551 | </else-if> |
| 552 | <else-if type="paper-conference"> |
| 553 | <!-- Treat paper-conference as book-like if it has an editor, otherwise as periodical-like --> |
| 554 | <choose> |
| 555 | <if variable="collection-editor compiler editor editorial-director" match="any"> |
| 556 | <text macro="booklike-title"/> |
| 557 | </if> |
| 558 | <else> |
| 559 | <text macro="periodical-title"/> |
| 560 | </else> |
| 561 | </choose> |
| 562 | </else-if> |
| 563 | <else> |
| 564 | <text macro="booklike-title"/> |
| 565 | </else> |
| 566 | </choose> |
| 567 | </macro> |
| 568 | <macro name="periodical-title"> |
| 569 | <!-- For periodicals, assume that part-number and part-title refer to the article and append to title --> |
| 570 | <choose> |
| 571 | <if variable="container-title" match="any"> |
| 572 | <text macro="title-plus-part-title"/> |
| 573 | </if> |
| 574 | <else> |
| 575 | <!-- for periodical items without container titles, don't append volume-title to title --> |
| 576 | <text macro="title-plus-part-title" font-style="italic"/> |
| 577 | </else> |
| 578 | </choose> |
| 579 | </macro> |
| 580 | <macro name="booklike-title"> |
| 581 | <!-- For book-like items, assume part-number and part-title refer to the book/volume. --> |
| 582 | <choose> |
| 583 | <if variable="container-title" match="any"> |
| 584 | <text variable="title"/> |
| 585 | </if> |
| 586 | <else> |
| 587 | <!-- For book-like items without container titles and with volume-title, append volume-title to title (ex. 30) --> |
| 588 | <text macro="title-plus-volume-title" font-style="italic"/> |
| 589 | </else> |
| 590 | </choose> |
| 591 | </macro> |
| 592 | <macro name="title-plus-part-title"> |
| 593 | <choose> |
| 594 | <if variable="reviewed-author reviewed-genre reviewed-title" type="review review-book" match="any"> |
| 595 | <!-- If a review has no `reviewed-title`, assume that `title` contains the title of the reviewed work |
| 596 | and omit it here; it is printed in the `reviewed-item` macro. --> |
| 597 | <choose> |
| 598 | <if variable="reviewed-title" match="none"/> |
| 599 | <else> |
| 600 | <group delimiter=": "> |
| 601 | <text variable="title"/> |
| 602 | <text macro="part-title"/> |
| 603 | </group> |
| 604 | </else> |
| 605 | </choose> |
| 606 | </if> |
| 607 | <else> |
| 608 | <group delimiter=": "> |
| 609 | <text variable="title"/> |
| 610 | <text macro="part-title"/> |
| 611 | </group> |
| 612 | </else> |
| 613 | </choose> |
| 614 | </macro> |
| 615 | <macro name="part-title"> |
| 616 | <group delimiter=". "> |
| 617 | <group delimiter=" "> |
| 618 | <label variable="part-number" form="short" text-case="capitalize-first"/> |
| 619 | <text variable="part-number"/> |
| 620 | </group> |
| 621 | <text variable="part-title" text-case="capitalize-first"/> |
| 622 | </group> |
| 623 | </macro> |
| 624 | <macro name="title-plus-volume-title"> |
| 625 | <group delimiter=": "> |
| 626 | <text variable="title"/> |
| 627 | <text macro="volume-title"/> |
| 628 | </group> |
| 629 | </macro> |
| 630 | <macro name="volume-title"> |
| 631 | <group delimiter=": "> |
| 632 | <choose> |
| 633 | <if variable="volume-title"> |
| 634 | <group delimiter=" "> |
| 635 | <group delimiter=". "> |
| 636 | <group delimiter=" "> |
| 637 | <label variable="volume" form="short" text-case="capitalize-first"/> |
| 638 | <text variable="volume"/> |
| 639 | </group> |
| 640 | <text variable="volume-title"/> |
| 641 | </group> |
| 642 | </group> |
| 643 | </if> |
| 644 | <else-if is-numeric="volume" match="none"> |
| 645 | <group delimiter=" "> |
| 646 | <label variable="volume" form="short" text-case="capitalize-first"/> |
| 647 | <text variable="volume"/> |
| 648 | </group> |
| 649 | </else-if> |
| 650 | </choose> |
| 651 | <!-- For book-like items, assume part-number and part-title refer to the book/volume. --> |
| 652 | <text macro="part-title"/> |
| 653 | </group> |
| 654 | </macro> |
| 655 | <macro name="title-intext"> |
| 656 | <choose> |
| 657 | <if type="bill report"> |
| 658 | <!-- Bills, resolutions, and congressional reports are not italicized and substitute bill number if no title. --> |
| 659 | <!-- Can't distinguish congressional reports from other reports, |
| 660 | but giving the genre and number seems fine for other reports too. --> |
| 661 | <choose> |
| 662 | <if variable="title"> |
| 663 | <text variable="title" form="short" text-case="title"/> |
| 664 | </if> |
| 665 | <else> |
| 666 | <group delimiter=" "> |
| 667 | <text variable="genre"/> |
| 668 | <group delimiter=" "> |
| 669 | <choose> |
| 670 | <if variable="chapter-number container-title" match="none"> |
| 671 | <label variable="number" form="short" text-case="capitalize-first"/> |
| 672 | </if> |
| 673 | </choose> |
| 674 | <text variable="number"/> |
| 675 | </group> |
| 676 | </group> |
| 677 | </else> |
| 678 | </choose> |
| 679 | </if> |
| 680 | <else> |
| 681 | <choose> |
| 682 | <if variable="title" match="none"> |
| 683 | <text macro="bracketed-intext"/> |
| 684 | </if> |
| 685 | <else-if type="hearing"> |
| 686 | <!-- Hearings are italicized --> |
| 687 | <text variable="title" form="short" font-style="italic" text-case="title"/> |
| 688 | </else-if> |
| 689 | <else-if type="legal_case" match="any"> |
| 690 | <!-- Cases are italicized --> |
| 691 | <text variable="title" font-style="italic"/> |
| 692 | </else-if> |
| 693 | <else-if type="legislation regulation treaty" match="any"> |
| 694 | <!-- Legislation, regulations, and treaties not italicized or quoted --> |
| 695 | <text variable="title" form="short" text-case="title"/> |
| 696 | </else-if> |
| 697 | <else-if type="post webpage" match="any"> |
| 698 | <!-- Webpages are always italicized --> |
| 699 | <text variable="title" form="short" font-style="italic" text-case="title"/> |
| 700 | </else-if> |
| 701 | <else-if variable="container-title" match="any"> |
| 702 | <!-- Other types are italicized or quoted based on presence of container-title. As in title macro. --> |
| 703 | <text variable="title" form="short" quotes="true" text-case="title"/> |
| 704 | </else-if> |
| 705 | <else> |
| 706 | <text variable="title" form="short" font-style="italic" text-case="title"/> |
| 707 | </else> |
| 708 | </choose> |
| 709 | </else> |
| 710 | </choose> |
| 711 | </macro> |
| 712 | <macro name="parenthetical"> |
| 713 | <!-- (Secondary contributors; Database location; Genre no. 123; Report Series 123, Version, Edition, Volume, Page) --> |
| 714 | <group prefix="(" suffix=")"> |
| 715 | <choose> |
| 716 | <if type="patent"> |
| 717 | <!-- authority: U.S. ; genre: patent ; number: 123,445 --> |
| 718 | <group delimiter=" "> |
| 719 | <text variable="authority" form="short"/> |
| 720 | <choose> |
| 721 | <if variable="genre"> |
| 722 | <text variable="genre" text-case="capitalize-first"/> |
| 723 | </if> |
| 724 | <else> |
| 725 | <text term="patent" text-case="capitalize-first"/> |
| 726 | </else> |
| 727 | </choose> |
| 728 | <group delimiter=" "> |
| 729 | <label variable="number" form="short" text-case="capitalize-first"/> |
| 730 | <text variable="number"/> |
| 731 | </group> |
| 732 | </group> |
| 733 | </if> |
| 734 | <else-if type="post webpage" match="any"> |
| 735 | <!-- For post webpage, container-title is treated as publisher --> |
| 736 | <group delimiter="; "> |
| 737 | <text macro="secondary-contributors"/> |
| 738 | <text macro="database-location"/> |
| 739 | <text macro="number"/> |
| 740 | <text macro="locators-booklike"/> |
| 741 | </group> |
| 742 | </else-if> |
| 743 | <else-if type="report" match="any"> |
| 744 | <choose> |
| 745 | <if variable="title" match="none"> |
| 746 | <!-- If there is no title, then genre and number are already printed as the title. --> |
| 747 | <group delimiter="; "> |
| 748 | <text macro="secondary-contributors"/> |
| 749 | <text macro="database-location"/> |
| 750 | <text macro="locators-booklike"/> |
| 751 | </group> |
| 752 | </if> |
| 753 | <!-- If the report is a chapter in a larger report, then most parenthetical information is printed after the container. --> |
| 754 | <else-if variable="container-title"> |
| 755 | <text macro="secondary-contributors"/> |
| 756 | </else-if> |
| 757 | <else> |
| 758 | <group delimiter="; "> |
| 759 | <text macro="secondary-contributors"/> |
| 760 | <text macro="database-location"/> |
| 761 | <text macro="number"/> |
| 762 | <text macro="locators-booklike"/> |
| 763 | </group> |
| 764 | </else> |
| 765 | </choose> |
| 766 | </else-if> |
| 767 | <else-if variable="container-title"> |
| 768 | <group delimiter="; "> |
| 769 | <text macro="secondary-contributors"/> |
| 770 | <choose> |
| 771 | <if type="broadcast graphic map motion_picture song" match="any"> |
| 772 | <!-- For audiovisual media, number information comes after title, not container-title (ex. 94) --> |
| 773 | <text macro="number"/> |
| 774 | </if> |
| 775 | </choose> |
| 776 | </group> |
| 777 | </else-if> |
| 778 | <else> |
| 779 | <group delimiter="; "> |
| 780 | <text macro="secondary-contributors"/> |
| 781 | <text macro="database-location"/> |
| 782 | <text macro="number"/> |
| 783 | <text macro="locators-booklike"/> |
| 784 | </group> |
| 785 | </else> |
| 786 | </choose> |
| 787 | </group> |
| 788 | </macro> |
| 789 | <macro name="parenthetical-container"> |
| 790 | <choose> |
| 791 | <if variable="container-title" match="any"> |
| 792 | <group prefix="(" suffix=")"> |
| 793 | <group delimiter="; "> |
| 794 | <text macro="database-location"/> |
| 795 | <choose> |
| 796 | <if type="broadcast graphic map motion_picture song" match="none"> |
| 797 | <!-- For audiovisual media, number information comes after title, not container-title (ex. 94) --> |
| 798 | <text macro="number"/> |
| 799 | </if> |
| 800 | </choose> |
| 801 | <text macro="locators-booklike"/> |
| 802 | </group> |
| 803 | </group> |
| 804 | </if> |
| 805 | </choose> |
| 806 | </macro> |
| 807 | <macro name="bracketed"> |
| 808 | <!-- [Descriptive information] --> |
| 809 | <!-- If there is a number, genre is already printed in macro="number" --> |
| 810 | <group prefix="[" suffix="]"> |
| 811 | <choose> |
| 812 | <if variable="reviewed-author reviewed-genre reviewed-title" type="review review-book" match="any"> |
| 813 | <text macro="reviewed-item"/> |
| 814 | </if> |
| 815 | <else-if type="thesis"> |
| 816 | <!-- Thesis type and institution --> |
| 817 | <group delimiter="; "> |
| 818 | <choose> |
| 819 | <if variable="number" match="none"> |
| 820 | <group delimiter=", "> |
| 821 | <text variable="genre" text-case="capitalize-first"/> |
| 822 | <choose> |
| 823 | <if variable="archive DOI URL" match="any"> |
| 824 | <!-- Include the university in brackets if thesis is published --> |
| 825 | <text variable="publisher"/> |
| 826 | </if> |
| 827 | </choose> |
| 828 | </group> |
| 829 | </if> |
| 830 | </choose> |
| 831 | <text variable="medium" text-case="capitalize-first"/> |
| 832 | </group> |
| 833 | </else-if> |
| 834 | <else-if variable="interviewer" type="interview" match="any"> |
| 835 | <!-- Interview information --> |
| 836 | <choose> |
| 837 | <if variable="title"> |
| 838 | <text macro="format"/> |
| 839 | </if> |
| 840 | <else-if variable="genre"> |
| 841 | <group delimiter="; "> |
| 842 | <group delimiter=" "> |
| 843 | <text variable="genre" text-case="capitalize-first"/> |
| 844 | <group delimiter=" "> |
| 845 | <text term="container-author" form="verb"/> |
| 846 | <names variable="interviewer"> |
| 847 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 848 | </names> |
| 849 | </group> |
| 850 | </group> |
| 851 | </group> |
| 852 | </else-if> |
| 853 | <else-if variable="interviewer"> |
| 854 | <group delimiter="; "> |
| 855 | <names variable="interviewer"> |
| 856 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 857 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 858 | </names> |
| 859 | <text variable="medium" text-case="capitalize-first"/> |
| 860 | </group> |
| 861 | </else-if> |
| 862 | <else> |
| 863 | <text macro="format"/> |
| 864 | </else> |
| 865 | </choose> |
| 866 | </else-if> |
| 867 | <else-if type="personal_communication"> |
| 868 | <!-- Letter information --> |
| 869 | <choose> |
| 870 | <if variable="recipient"> |
| 871 | <group delimiter="; "> |
| 872 | <group delimiter=" "> |
| 873 | <choose> |
| 874 | <if variable="number" match="none"> |
| 875 | <choose> |
| 876 | <if variable="genre"> |
| 877 | <text variable="genre" text-case="capitalize-first"/> |
| 878 | </if> |
| 879 | <else-if variable="medium"> |
| 880 | <text variable="medium" text-case="capitalize-first"/> |
| 881 | </else-if> |
| 882 | <else> |
| 883 | <text term="letter" text-case="capitalize-first"/> |
| 884 | </else> |
| 885 | </choose> |
| 886 | </if> |
| 887 | <else> |
| 888 | <choose> |
| 889 | <if variable="medium"> |
| 890 | <text variable="medium" text-case="capitalize-first"/> |
| 891 | </if> |
| 892 | <else> |
| 893 | <text term="letter" text-case="capitalize-first"/> |
| 894 | </else> |
| 895 | </choose> |
| 896 | </else> |
| 897 | </choose> |
| 898 | <names variable="recipient" delimiter=", "> |
| 899 | <label form="verb" suffix=" "/> |
| 900 | <name and="symbol" delimiter=", "/> |
| 901 | </names> |
| 902 | </group> |
| 903 | <choose> |
| 904 | <if variable="genre" match="any"> |
| 905 | <choose> |
| 906 | <if variable="number" match="none"> |
| 907 | <text variable="medium" text-case="capitalize-first"/> |
| 908 | </if> |
| 909 | </choose> |
| 910 | </if> |
| 911 | </choose> |
| 912 | </group> |
| 913 | </if> |
| 914 | <else> |
| 915 | <text macro="format"/> |
| 916 | </else> |
| 917 | </choose> |
| 918 | </else-if> |
| 919 | <else-if variable="composer" type="song" match="all"> |
| 920 | <!-- Performer of classical music works --> |
| 921 | <group delimiter="; "> |
| 922 | <choose> |
| 923 | <if variable="number" match="none"> |
| 924 | <group delimiter=" "> |
| 925 | <choose> |
| 926 | <if variable="genre"> |
| 927 | <text variable="genre" text-case="capitalize-first"/> |
| 928 | <group delimiter=" "> |
| 929 | <text term="performer" form="verb"/> |
| 930 | <names variable="author"> |
| 931 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 932 | <substitute> |
| 933 | <names variable="performer"/> |
| 934 | </substitute> |
| 935 | </names> |
| 936 | </group> |
| 937 | </if> |
| 938 | <else-if variable="medium"> |
| 939 | <text variable="medium" text-case="capitalize-first"/> |
| 940 | <group delimiter=" "> |
| 941 | <text term="performer" form="verb"/> |
| 942 | <names variable="author"> |
| 943 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 944 | <substitute> |
| 945 | <names variable="performer"/> |
| 946 | </substitute> |
| 947 | </names> |
| 948 | </group> |
| 949 | </else-if> |
| 950 | <else> |
| 951 | <text term="performer" form="verb" text-case="capitalize-first"/> |
| 952 | <names variable="author"> |
| 953 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 954 | <substitute> |
| 955 | <names variable="performer"/> |
| 956 | </substitute> |
| 957 | </names> |
| 958 | </else> |
| 959 | </choose> |
| 960 | </group> |
| 961 | </if> |
| 962 | <else> |
| 963 | <group delimiter=" "> |
| 964 | <choose> |
| 965 | <if variable="medium"> |
| 966 | <text variable="medium" text-case="capitalize-first"/> |
| 967 | <group delimiter=" "> |
| 968 | <text term="performer" form="verb"/> |
| 969 | <names variable="author"> |
| 970 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 971 | <substitute> |
| 972 | <names variable="performer"/> |
| 973 | </substitute> |
| 974 | </names> |
| 975 | </group> |
| 976 | </if> |
| 977 | <else> |
| 978 | <text term="performer" form="verb" text-case="capitalize-first"/> |
| 979 | <names variable="author"> |
| 980 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 981 | <substitute> |
| 982 | <names variable="performer"/> |
| 983 | </substitute> |
| 984 | </names> |
| 985 | </else> |
| 986 | </choose> |
| 987 | </group> |
| 988 | </else> |
| 989 | </choose> |
| 990 | <choose> |
| 991 | <if variable="genre" match="any"> |
| 992 | <choose> |
| 993 | <if variable="number" match="none"> |
| 994 | <text variable="medium" text-case="capitalize-first"/> |
| 995 | </if> |
| 996 | </choose> |
| 997 | </if> |
| 998 | </choose> |
| 999 | </group> |
| 1000 | </else-if> |
| 1001 | <else-if variable="container-title" match="none"> |
| 1002 | <!-- Other description --> |
| 1003 | <text macro="format"/> |
| 1004 | </else-if> |
| 1005 | <else> |
| 1006 | <!-- For conference presentations/performances/events, chapters in reports/standards/generic documents, software, |
| 1007 | place bracketed after the container title --> |
| 1008 | <choose> |
| 1009 | <if type="event paper-conference performance speech" match="any"> |
| 1010 | <choose> |
| 1011 | <if variable="collection-editor compiler editor editorial-director issue page volume" match="any"> |
| 1012 | <text macro="format"/> |
| 1013 | </if> |
| 1014 | </choose> |
| 1015 | </if> |
| 1016 | <else-if type="document report software standard" match="none"> |
| 1017 | <text macro="format"/> |
| 1018 | </else-if> |
| 1019 | </choose> |
| 1020 | </else> |
| 1021 | </choose> |
| 1022 | </group> |
| 1023 | </macro> |
| 1024 | <macro name="bracketed-intext"> |
| 1025 | <group prefix="[" suffix="]"> |
| 1026 | <choose> |
| 1027 | <if variable="reviewed-title" match="any"> |
| 1028 | <group delimiter=" "> |
| 1029 | <text term="review-of" text-case="capitalize-first"/> |
| 1030 | <text macro="reviewed-title-intext"/> |
| 1031 | </group> |
| 1032 | </if> |
| 1033 | <else-if variable="interviewer" type="interview" match="any"> |
| 1034 | <names variable="interviewer"> |
| 1035 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1036 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1037 | <substitute> |
| 1038 | <text macro="format-intext"/> |
| 1039 | </substitute> |
| 1040 | </names> |
| 1041 | </else-if> |
| 1042 | <else-if type="personal_communication"> |
| 1043 | <!-- Letter information --> |
| 1044 | <choose> |
| 1045 | <if variable="recipient"> |
| 1046 | <group delimiter=" "> |
| 1047 | <choose> |
| 1048 | <if variable="number" match="none"> |
| 1049 | <text variable="genre" text-case="capitalize-first"/> |
| 1050 | </if> |
| 1051 | <else> |
| 1052 | <text term="letter" text-case="capitalize-first"/> |
| 1053 | </else> |
| 1054 | </choose> |
| 1055 | <names variable="recipient" delimiter=", "> |
| 1056 | <label form="verb" suffix=" "/> |
| 1057 | <name and="symbol" delimiter=", "/> |
| 1058 | </names> |
| 1059 | </group> |
| 1060 | </if> |
| 1061 | <else> |
| 1062 | <text macro="format-intext"/> |
| 1063 | </else> |
| 1064 | </choose> |
| 1065 | </else-if> |
| 1066 | <else> |
| 1067 | <text macro="format-intext"/> |
| 1068 | </else> |
| 1069 | </choose> |
| 1070 | </group> |
| 1071 | </macro> |
| 1072 | <macro name="reviewed-item"> |
| 1073 | <!-- Reviewed item --> |
| 1074 | <group delimiter="; "> |
| 1075 | <group delimiter=", "> |
| 1076 | <group delimiter=" "> |
| 1077 | <choose> |
| 1078 | <if variable="reviewed-genre"> |
| 1079 | <group delimiter=" "> |
| 1080 | <text term="review-of" form="long" text-case="capitalize-first"/> |
| 1081 | <text variable="reviewed-genre" text-case="lowercase"/> |
| 1082 | </group> |
| 1083 | </if> |
| 1084 | <!-- If no `reviewed-genre`, assume that `genre` or `medium` is entered as 'Review of the book' or similar --> |
| 1085 | <else-if variable="number" match="none"> |
| 1086 | <choose> |
| 1087 | <if variable="genre"> |
| 1088 | <text variable="genre" text-case="capitalize-first"/> |
| 1089 | </if> |
| 1090 | <else-if variable="medium"> |
| 1091 | <text variable="medium" text-case="capitalize-first"/> |
| 1092 | </else-if> |
| 1093 | <else-if type="review-book"> |
| 1094 | <group delimiter=" "> |
| 1095 | <text term="review-of" form="long" text-case="capitalize-first"/> |
| 1096 | <text term="book" form="long" text-case="lowercase"/> |
| 1097 | </group> |
| 1098 | </else-if> |
| 1099 | <else> |
| 1100 | <text term="review-of" form="short" text-case="capitalize-first"/> |
| 1101 | </else> |
| 1102 | </choose> |
| 1103 | </else-if> |
| 1104 | <else> |
| 1105 | <choose> |
| 1106 | <if variable="medium"> |
| 1107 | <text variable="medium" text-case="capitalize-first"/> |
| 1108 | </if> |
| 1109 | <else-if type="review-book"> |
| 1110 | <group delimiter=" "> |
| 1111 | <text term="review-of" form="long" text-case="capitalize-first"/> |
| 1112 | <text term="book" form="long" text-case="lowercase"/> |
| 1113 | </group> |
| 1114 | </else-if> |
| 1115 | <else> |
| 1116 | <text term="review-of" form="short" text-case="capitalize-first"/> |
| 1117 | </else> |
| 1118 | </choose> |
| 1119 | </else> |
| 1120 | </choose> |
| 1121 | <text macro="reviewed-title"/> |
| 1122 | </group> |
| 1123 | <names variable="reviewed-author"> |
| 1124 | <label form="verb-short" suffix=" "/> |
| 1125 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1126 | </names> |
| 1127 | </group> |
| 1128 | <choose> |
| 1129 | <if variable="genre" match="any"> |
| 1130 | <choose> |
| 1131 | <if variable="number" match="none"> |
| 1132 | <text variable="medium" text-case="capitalize-first"/> |
| 1133 | </if> |
| 1134 | </choose> |
| 1135 | </if> |
| 1136 | </choose> |
| 1137 | </group> |
| 1138 | </macro> |
| 1139 | <macro name="bracketed-container"> |
| 1140 | <group prefix="[" suffix="]"> |
| 1141 | <choose> |
| 1142 | <if type="event paper-conference performance speech" match="any"> |
| 1143 | <!-- Conference presentations should describe the session [container] in bracketed unless published in a proceedings --> |
| 1144 | <choose> |
| 1145 | <if variable="collection-editor compiler editor editorial-director issue page volume" match="none"> |
| 1146 | <text macro="format"/> |
| 1147 | </if> |
| 1148 | </choose> |
| 1149 | </if> |
| 1150 | <else-if type="software" match="all"> |
| 1151 | <!-- For entries in mobile app reference works, place bracketed after the container-title --> |
| 1152 | <text macro="format"/> |
| 1153 | </else-if> |
| 1154 | <else-if type="document report standard"> |
| 1155 | <!-- For chapters in report, standards, and generic documents, place bracketed after the container title --> |
| 1156 | <text macro="format"/> |
| 1157 | </else-if> |
| 1158 | </choose> |
| 1159 | </group> |
| 1160 | </macro> |
| 1161 | <macro name="secondary-contributors"> |
| 1162 | <choose> |
| 1163 | <if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="any"> |
| 1164 | <text macro="secondary-contributors-periodical"/> |
| 1165 | </if> |
| 1166 | <else-if type="paper-conference"> |
| 1167 | <choose> |
| 1168 | <if variable="collection-editor compiler editor editorial-director" match="any"> |
| 1169 | <text macro="secondary-contributors-booklike"/> |
| 1170 | </if> |
| 1171 | <else> |
| 1172 | <text macro="secondary-contributors-periodical"/> |
| 1173 | </else> |
| 1174 | </choose> |
| 1175 | </else-if> |
| 1176 | <else> |
| 1177 | <text macro="secondary-contributors-booklike"/> |
| 1178 | </else> |
| 1179 | </choose> |
| 1180 | </macro> |
| 1181 | <macro name="secondary-contributors-periodical"> |
| 1182 | <group delimiter="; "> |
| 1183 | <choose> |
| 1184 | <if variable="title"> |
| 1185 | <names variable="interviewer" delimiter="; "> |
| 1186 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1187 | <label form="short" prefix=", " text-case="title"/> |
| 1188 | </names> |
| 1189 | </if> |
| 1190 | </choose> |
| 1191 | <names variable="translator narrator" delimiter="; "> |
| 1192 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1193 | <label form="short" prefix=", " text-case="title"/> |
| 1194 | </names> |
| 1195 | </group> |
| 1196 | </macro> |
| 1197 | <macro name="secondary-contributors-booklike"> |
| 1198 | <group delimiter="; "> |
| 1199 | <choose> |
| 1200 | <if variable="title"> |
| 1201 | <names variable="interviewer"> |
| 1202 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1203 | <label form="short" prefix=", " text-case="title"/> |
| 1204 | </names> |
| 1205 | </if> |
| 1206 | </choose> |
| 1207 | <choose> |
| 1208 | <if type="post webpage" match="none"> |
| 1209 | <!-- Webpages treat container-title like publisher --> |
| 1210 | <group delimiter="; "> |
| 1211 | <names variable="illustrator narrator" delimiter="; "> |
| 1212 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1213 | <label form="short" prefix=", " text-case="title"/> |
| 1214 | </names> |
| 1215 | <choose> |
| 1216 | <if variable="container-title" match="none"> |
| 1217 | <group delimiter="; "> |
| 1218 | <names variable="container-author"> |
| 1219 | <label form="verb-short" suffix=" " text-case="title"/> |
| 1220 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1221 | </names> |
| 1222 | <names variable="editor translator" delimiter="; "> |
| 1223 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1224 | <label form="short" prefix=", " text-case="title"/> |
| 1225 | </names> |
| 1226 | <names variable="compiler chair organizer curator series-creator executive-producer" delimiter="; "> |
| 1227 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1228 | <label form="long" prefix=", " text-case="title"/> |
| 1229 | </names> |
| 1230 | </group> |
| 1231 | </if> |
| 1232 | <else> |
| 1233 | <choose> |
| 1234 | <!-- TODO: Check logic once processors start to automatically populate editor-translator. --> |
| 1235 | <if variable="editor-translator" match="none"> |
| 1236 | <names variable="translator" delimiter="; "> |
| 1237 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1238 | <label form="short" prefix=", " text-case="title"/> |
| 1239 | </names> |
| 1240 | </if> |
| 1241 | </choose> |
| 1242 | </else> |
| 1243 | </choose> |
| 1244 | </group> |
| 1245 | </if> |
| 1246 | <else> |
| 1247 | <group delimiter="; "> |
| 1248 | <names variable="container-author"> |
| 1249 | <label form="verb-short" suffix=" " text-case="title"/> |
| 1250 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1251 | </names> |
| 1252 | <names variable="editor translator" delimiter="; "> |
| 1253 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1254 | <label form="short" prefix=", " text-case="title"/> |
| 1255 | </names> |
| 1256 | <names variable="illustrator narrator" delimiter="; "> |
| 1257 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1258 | <label form="short" prefix=", " text-case="title"/> |
| 1259 | </names> |
| 1260 | <names variable="compiler chair organizer curator series-creator executive-producer" delimiter="; "> |
| 1261 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1262 | <label form="long" prefix=", " text-case="title"/> |
| 1263 | </names> |
| 1264 | </group> |
| 1265 | </else> |
| 1266 | </choose> |
| 1267 | </group> |
| 1268 | </macro> |
| 1269 | <macro name="database-location"> |
| 1270 | <choose> |
| 1271 | <if variable="archive-place" match="none"> |
| 1272 | <!-- With `archive-place`: physical archives. Without: online archives. --> |
| 1273 | <text variable="archive_location"/> |
| 1274 | </if> |
| 1275 | </choose> |
| 1276 | </macro> |
| 1277 | <macro name="number"> |
| 1278 | <choose> |
| 1279 | <if variable="number"> |
| 1280 | <group delimiter=", "> |
| 1281 | <group delimiter=" "> |
| 1282 | <text variable="genre" text-case="title"/> |
| 1283 | <group delimiter=" "> |
| 1284 | <label variable="number" form="short" text-case="capitalize-first"/> |
| 1285 | <text variable="number"/> |
| 1286 | </group> |
| 1287 | </group> |
| 1288 | <choose> |
| 1289 | <if type="thesis"> |
| 1290 | <choose> |
| 1291 | <!-- Include the university in brackets if thesis is published --> |
| 1292 | <if variable="archive DOI URL" match="any"> |
| 1293 | <text variable="publisher"/> |
| 1294 | </if> |
| 1295 | </choose> |
| 1296 | </if> |
| 1297 | </choose> |
| 1298 | </group> |
| 1299 | </if> |
| 1300 | </choose> |
| 1301 | </macro> |
| 1302 | <macro name="locators-booklike"> |
| 1303 | <choose> |
| 1304 | <if type="article-journal article-magazine article-newspaper broadcast event interview patent performance periodical post post-weblog review review-book speech webpage" match="any"/> |
| 1305 | <else-if type="paper-conference"> |
| 1306 | <choose> |
| 1307 | <if variable="collection-editor compiler editor editorial-director" match="any"> |
| 1308 | <group delimiter=", "> |
| 1309 | <text macro="version"/> |
| 1310 | <text macro="edition"/> |
| 1311 | <text macro="volume-booklike"/> |
| 1312 | </group> |
| 1313 | </if> |
| 1314 | </choose> |
| 1315 | </else-if> |
| 1316 | <else> |
| 1317 | <group delimiter=", "> |
| 1318 | <text macro="version"/> |
| 1319 | <text macro="edition"/> |
| 1320 | <text macro="volume-booklike"/> |
| 1321 | </group> |
| 1322 | </else> |
| 1323 | </choose> |
| 1324 | </macro> |
| 1325 | <macro name="version"> |
| 1326 | <group delimiter=" "> |
| 1327 | <label variable="version" text-case="capitalize-first"/> |
| 1328 | <text variable="version"/> |
| 1329 | </group> |
| 1330 | </macro> |
| 1331 | <macro name="edition"> |
| 1332 | <choose> |
| 1333 | <if is-numeric="edition"> |
| 1334 | <group delimiter=" "> |
| 1335 | <number variable="edition" form="ordinal"/> |
| 1336 | <label variable="edition" form="short"/> |
| 1337 | </group> |
| 1338 | </if> |
| 1339 | <else> |
| 1340 | <text variable="edition"/> |
| 1341 | </else> |
| 1342 | </choose> |
| 1343 | </macro> |
| 1344 | <macro name="volume-booklike"> |
| 1345 | <group delimiter=", "> |
| 1346 | <!-- Report series [ex. 52] --> |
| 1347 | <choose> |
| 1348 | <if type="document report standard"> |
| 1349 | <group delimiter=" "> |
| 1350 | <text variable="collection-title" text-case="title"/> |
| 1351 | <text variable="collection-number"/> |
| 1352 | </group> |
| 1353 | </if> |
| 1354 | </choose> |
| 1355 | <group delimiter=" "> |
| 1356 | <label variable="supplement-number" text-case="capitalize-first"/> |
| 1357 | <text variable="supplement-number"/> |
| 1358 | </group> |
| 1359 | <choose> |
| 1360 | <if variable="volume" match="any"> |
| 1361 | <choose> |
| 1362 | <!-- Non-numeric volumes are already printed as part of the book title --> |
| 1363 | <if variable="volume-title"/> |
| 1364 | <else-if is-numeric="volume" match="none"/> |
| 1365 | <else> |
| 1366 | <group delimiter=" "> |
| 1367 | <label variable="volume" form="short" text-case="capitalize-first"/> |
| 1368 | <number variable="volume" form="numeric"/> |
| 1369 | </group> |
| 1370 | </else> |
| 1371 | </choose> |
| 1372 | </if> |
| 1373 | <else> |
| 1374 | <group> |
| 1375 | <label variable="number-of-volumes" form="short" text-case="capitalize-first" suffix=" "/> |
| 1376 | <text term="page-range-delimiter" prefix="1"/> |
| 1377 | <number variable="number-of-volumes" form="numeric"/> |
| 1378 | </group> |
| 1379 | </else> |
| 1380 | </choose> |
| 1381 | <group delimiter=" "> |
| 1382 | <label variable="issue" text-case="capitalize-first"/> |
| 1383 | <text variable="issue"/> |
| 1384 | </group> |
| 1385 | <group delimiter=" "> |
| 1386 | <label variable="page" form="short" suffix=" "/> |
| 1387 | <text variable="page"/> |
| 1388 | </group> |
| 1389 | </group> |
| 1390 | </macro> |
| 1391 | <macro name="reviewed-title"> |
| 1392 | <choose> |
| 1393 | <if variable="reviewed-title"> |
| 1394 | <!-- Not possible to distinguish TV series episode from other reviewed |
| 1395 | works without reviewed-container-title [Ex. 69] --> |
| 1396 | <!-- Adapt for reviewed-container-title if that becomes available --> |
| 1397 | <text variable="reviewed-title" font-style="italic"/> |
| 1398 | </if> |
| 1399 | <else> |
| 1400 | <!-- Assume title is title of reviewed work --> |
| 1401 | <text variable="title" font-style="italic"/> |
| 1402 | </else> |
| 1403 | </choose> |
| 1404 | </macro> |
| 1405 | <macro name="reviewed-title-intext"> |
| 1406 | <choose> |
| 1407 | <if variable="reviewed-title"> |
| 1408 | <!-- Not possible to distinguish TV series episode from other reviewed |
| 1409 | works without reviewed-container-title [Ex. 69] --> |
| 1410 | <!-- Adapt for reviewed-container-title if that becomes available --> |
| 1411 | <text variable="reviewed-title" form="short" font-style="italic" text-case="title"/> |
| 1412 | </if> |
| 1413 | <else> |
| 1414 | <!-- Assume title is title of reviewed work --> |
| 1415 | <text variable="title" form="short" font-style="italic" text-case="title"/> |
| 1416 | </else> |
| 1417 | </choose> |
| 1418 | </macro> |
| 1419 | <macro name="format"> |
| 1420 | <choose> |
| 1421 | <if variable="genre medium" match="any"> |
| 1422 | <group delimiter="; "> |
| 1423 | <choose> |
| 1424 | <if variable="number" match="none"> |
| 1425 | <text variable="genre" text-case="capitalize-first"/> |
| 1426 | </if> |
| 1427 | </choose> |
| 1428 | <text variable="medium" text-case="capitalize-first"/> |
| 1429 | </group> |
| 1430 | </if> |
| 1431 | <else> |
| 1432 | <text macro="generic-type-label"/> |
| 1433 | </else> |
| 1434 | </choose> |
| 1435 | </macro> |
| 1436 | <macro name="format-intext"> |
| 1437 | <choose> |
| 1438 | <if variable="genre" match="any"> |
| 1439 | <text variable="genre" text-case="capitalize-first"/> |
| 1440 | </if> |
| 1441 | <else-if variable="medium"> |
| 1442 | <text variable="medium" text-case="capitalize-first"/> |
| 1443 | </else-if> |
| 1444 | <else> |
| 1445 | <text macro="generic-type-label"/> |
| 1446 | </else> |
| 1447 | </choose> |
| 1448 | </macro> |
| 1449 | <macro name="generic-type-label"> |
| 1450 | <!-- Generic labels for specific types --> |
| 1451 | <choose> |
| 1452 | <if type="dataset"> |
| 1453 | <text term="dataset" text-case="capitalize-first"/> |
| 1454 | </if> |
| 1455 | <else-if type="software"> |
| 1456 | <text term="software" text-case="capitalize-first"/> |
| 1457 | </else-if> |
| 1458 | <else-if type="interview personal_communication" match="any"> |
| 1459 | <choose> |
| 1460 | <if variable="archive container-title DOI publisher URL" match="none"> |
| 1461 | <text term="personal-communication" text-case="capitalize-first"/> |
| 1462 | </if> |
| 1463 | <else-if type="interview"> |
| 1464 | <text term="interview" text-case="capitalize-first"/> |
| 1465 | </else-if> |
| 1466 | </choose> |
| 1467 | </else-if> |
| 1468 | <else-if type="map"> |
| 1469 | <text term="map" text-case="capitalize-first"/> |
| 1470 | </else-if> |
| 1471 | <else-if type="collection"> |
| 1472 | <text term="collection" text-case="capitalize-first"/> |
| 1473 | </else-if> |
| 1474 | <else-if type="song"> |
| 1475 | <text term="song" text-case="capitalize-first"/> |
| 1476 | </else-if> |
| 1477 | <else-if type="motion_picture"> |
| 1478 | <text term="motion_picture" text-case="capitalize-first"/> |
| 1479 | </else-if> |
| 1480 | <else-if type="post"> |
| 1481 | <text term="post" text-case="capitalize-first"/> |
| 1482 | </else-if> |
| 1483 | <else-if type="review"> |
| 1484 | <text term="review" text-case="capitalize-first"/> |
| 1485 | </else-if> |
| 1486 | <else-if type="review-book"> |
| 1487 | <text term="review-book" text-case="capitalize-first"/> |
| 1488 | </else-if> |
| 1489 | <else-if type="broadcast"> |
| 1490 | <text term="broadcast" text-case="capitalize-first"/> |
| 1491 | </else-if> |
| 1492 | <else-if type="figure"> |
| 1493 | <text term="figure" text-case="capitalize-first"/> |
| 1494 | </else-if> |
| 1495 | <else-if type="graphic"> |
| 1496 | <text term="graphic" text-case="capitalize-first"/> |
| 1497 | </else-if> |
| 1498 | </choose> |
| 1499 | </macro> |
| 1500 | <!-- APA 'source' element contains four parts: |
| 1501 | container, event, publisher, access --> |
| 1502 | <macro name="container"> |
| 1503 | <choose> |
| 1504 | <if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="any"> |
| 1505 | <!-- Periodical items --> |
| 1506 | <text macro="container-periodical"/> |
| 1507 | </if> |
| 1508 | <else-if type="paper-conference"> |
| 1509 | <!-- Determine if paper-conference is a periodical- or book-like --> |
| 1510 | <choose> |
| 1511 | <if variable="editor editorial-director collection-editor container-author" match="any"> |
| 1512 | <text macro="container-booklike"/> |
| 1513 | </if> |
| 1514 | <else> |
| 1515 | <text macro="container-periodical"/> |
| 1516 | </else> |
| 1517 | </choose> |
| 1518 | </else-if> |
| 1519 | <else-if type="post webpage" match="none"> |
| 1520 | <!-- post and webpage treat container-title like publisher --> |
| 1521 | <text macro="container-booklike"/> |
| 1522 | </else-if> |
| 1523 | </choose> |
| 1524 | </macro> |
| 1525 | <macro name="container-periodical"> |
| 1526 | <group delimiter=". "> |
| 1527 | <group delimiter=", "> |
| 1528 | <text variable="container-title" font-style="italic" text-case="title"/> |
| 1529 | <choose> |
| 1530 | <if variable="volume"> |
| 1531 | <group> |
| 1532 | <text variable="volume" font-style="italic"/> |
| 1533 | <text variable="issue" prefix="(" suffix=")"/> |
| 1534 | </group> |
| 1535 | </if> |
| 1536 | <else> |
| 1537 | <text variable="issue" font-style="italic"/> |
| 1538 | </else> |
| 1539 | </choose> |
| 1540 | <choose> |
| 1541 | <if variable="number"> |
| 1542 | <!-- Ex. 6: Journal article with article number or eLocator --> |
| 1543 | <group delimiter=" "> |
| 1544 | <text term="article-locator" text-case="capitalize-first"/> |
| 1545 | <text variable="number"/> |
| 1546 | </group> |
| 1547 | </if> |
| 1548 | <else> |
| 1549 | <text variable="page"/> |
| 1550 | </else> |
| 1551 | </choose> |
| 1552 | </group> |
| 1553 | <choose> |
| 1554 | <if variable="issued"> |
| 1555 | <choose> |
| 1556 | <if variable="issue number page volume" match="none"> |
| 1557 | <!-- We print the status variable directly rather than using in-press, etc. terms. --> |
| 1558 | <text variable="status" text-case="capitalize-first"/> |
| 1559 | </if> |
| 1560 | </choose> |
| 1561 | </if> |
| 1562 | </choose> |
| 1563 | </group> |
| 1564 | </macro> |
| 1565 | <macro name="container-booklike"> |
| 1566 | <choose> |
| 1567 | <if variable="container-title" match="any"> |
| 1568 | <group delimiter=" "> |
| 1569 | <choose> |
| 1570 | <if type="song"> |
| 1571 | <text term="on" text-case="capitalize-first"/> |
| 1572 | </if> |
| 1573 | <else> |
| 1574 | <text term="in" text-case="capitalize-first"/> |
| 1575 | </else> |
| 1576 | </choose> |
| 1577 | <group delimiter=", "> |
| 1578 | <names variable="executive-producer"> |
| 1579 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1580 | <label form="long" text-case="title" prefix=" (" suffix=")"/> |
| 1581 | <substitute> |
| 1582 | <names variable="series-creator"/> |
| 1583 | <names variable="editor-translator"> |
| 1584 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1585 | <label form="short" text-case="title" prefix=" (" suffix=")"/> |
| 1586 | </names> |
| 1587 | <!-- TODO: Translator omitted here on the assumption that editor-translators are uncommon |
| 1588 | for chapter citations. If needed, direct entry or automatic population of |
| 1589 | `editor-translator` can produce combined labels. --> |
| 1590 | <names variable="editor"> |
| 1591 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1592 | <label form="short" text-case="title" prefix=" (" suffix=")"/> |
| 1593 | </names> |
| 1594 | <names variable="editorial-director"> |
| 1595 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1596 | <label form="short" text-case="title" prefix=" (" suffix=")"/> |
| 1597 | </names> |
| 1598 | <names variable="compiler"/> |
| 1599 | <choose> |
| 1600 | <if type="event performance speech" match="any"> |
| 1601 | <names variable="chair"/> |
| 1602 | <names variable="organizer"/> |
| 1603 | </if> |
| 1604 | </choose> |
| 1605 | <names variable="curator"/> |
| 1606 | <names variable="collection-editor"> |
| 1607 | <name and="symbol" initialize-with=". " delimiter=", "/> |
| 1608 | <label form="short" text-case="title" prefix=" (" suffix=")"/> |
| 1609 | </names> |
| 1610 | <names variable="container-author"/> |
| 1611 | </substitute> |
| 1612 | </names> |
| 1613 | <group delimiter=": " font-style="italic"> |
| 1614 | <text variable="container-title"/> |
| 1615 | <text macro="volume-title"/> |
| 1616 | </group> |
| 1617 | </group> |
| 1618 | <text macro="parenthetical-container"/> |
| 1619 | <text macro="bracketed-container"/> |
| 1620 | </group> |
| 1621 | </if> |
| 1622 | </choose> |
| 1623 | </macro> |
| 1624 | <macro name="publisher"> |
| 1625 | <group delimiter="; "> |
| 1626 | <choose> |
| 1627 | <if type="thesis"> |
| 1628 | <choose> |
| 1629 | <if variable="archive DOI URL" match="none"> |
| 1630 | <text variable="publisher"/> |
| 1631 | </if> |
| 1632 | </choose> |
| 1633 | </if> |
| 1634 | <else-if type="post webpage" match="any"> |
| 1635 | <!-- For websites, treat container title like publisher --> |
| 1636 | <group delimiter="; "> |
| 1637 | <text variable="container-title" text-case="title"/> |
| 1638 | <text variable="publisher"/> |
| 1639 | </group> |
| 1640 | </else-if> |
| 1641 | <else-if type="paper-conference"> |
| 1642 | <!-- For paper-conference, don't print publisher if in a journal-like proceedings --> |
| 1643 | <choose> |
| 1644 | <if variable="collection-editor compiler editor editorial-director" match="any"> |
| 1645 | <text variable="publisher"/> |
| 1646 | </if> |
| 1647 | </choose> |
| 1648 | </else-if> |
| 1649 | <else-if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="none"> |
| 1650 | <text variable="publisher"/> |
| 1651 | </else-if> |
| 1652 | </choose> |
| 1653 | <group delimiter=", "> |
| 1654 | <choose> |
| 1655 | <if variable="archive-place"> |
| 1656 | <!-- With `archive-place`: physical archives. Without: online archives. --> |
| 1657 | <!-- For physical archives, print the location before the archive name. |
| 1658 | For electronic archives, these are printed in macro="description". --> |
| 1659 | <!-- Must test for archive_collection: |
| 1660 | With collection: archive_collection (archive_location), archive, archive-place |
| 1661 | No collection: archive (archive_location), archive-place |
| 1662 | --> |
| 1663 | <choose> |
| 1664 | <if variable="archive_collection"> |
| 1665 | <group delimiter=" "> |
| 1666 | <text variable="archive_collection"/> |
| 1667 | <text variable="archive_location" prefix="(" suffix=")"/> |
| 1668 | </group> |
| 1669 | <text variable="archive"/> |
| 1670 | <text variable="archive-place"/> |
| 1671 | </if> |
| 1672 | <else> |
| 1673 | <group delimiter=" "> |
| 1674 | <text variable="archive"/> |
| 1675 | <text variable="archive_location" prefix="(" suffix=")"/> |
| 1676 | </group> |
| 1677 | <text variable="archive-place"/> |
| 1678 | </else> |
| 1679 | </choose> |
| 1680 | </if> |
| 1681 | <else> |
| 1682 | <text variable="archive"/> |
| 1683 | </else> |
| 1684 | </choose> |
| 1685 | </group> |
| 1686 | </group> |
| 1687 | </macro> |
| 1688 | <macro name="access"> |
| 1689 | <choose> |
| 1690 | <if variable="DOI" match="any"> |
| 1691 | <text variable="DOI" prefix="https://doi.org/"/> |
| 1692 | </if> |
| 1693 | <else-if variable="URL"> |
| 1694 | <group delimiter=" "> |
| 1695 | <choose> |
| 1696 | <if variable="issued status" match="none"> |
| 1697 | <group delimiter=" "> |
| 1698 | <text term="retrieved" text-case="capitalize-first"/> |
| 1699 | <date variable="accessed" form="text" suffix=","/> |
| 1700 | <text term="from"/> |
| 1701 | </group> |
| 1702 | </if> |
| 1703 | </choose> |
| 1704 | <text variable="URL"/> |
| 1705 | </group> |
| 1706 | </else-if> |
| 1707 | </choose> |
| 1708 | </macro> |
| 1709 | <macro name="event"> |
| 1710 | <choose> |
| 1711 | <if variable="event event-title" match="any"> |
| 1712 | <!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to |
| 1713 | both publisher-place and event-place. Remove this 'choose' when that is changed. --> |
| 1714 | <choose> |
| 1715 | <if type="paper-conference"> |
| 1716 | <choose> |
| 1717 | <if variable="collection-editor compiler editor editorial-director issue page volume" match="none"> |
| 1718 | <!-- Don't print event info for conference papers published in a proceedings --> |
| 1719 | <group delimiter=", "> |
| 1720 | <text macro="event-title"/> |
| 1721 | <text variable="event-place"/> |
| 1722 | </group> |
| 1723 | </if> |
| 1724 | </choose> |
| 1725 | </if> |
| 1726 | <else> |
| 1727 | <!-- For other item types, print event info even if published (e.g., for collection catalogs, performance programs. |
| 1728 | These items aren't given explicit examples in the APA manual, so err on the side of providing too much information. --> |
| 1729 | <group delimiter=", "> |
| 1730 | <text macro="event-title"/> |
| 1731 | <text variable="event-place"/> |
| 1732 | </group> |
| 1733 | </else> |
| 1734 | </choose> |
| 1735 | </if> |
| 1736 | </choose> |
| 1737 | </macro> |
| 1738 | <macro name="event-title"> |
| 1739 | <choose> |
| 1740 | <!-- TODO: We expect "event-title" to be used, |
| 1741 | but processors and applications may not be updated yet. |
| 1742 | This macro ensures that either "event" or "event-title" can be accpeted. |
| 1743 | Remove if procesor logic and application adoption can handle this. --> |
| 1744 | <if variable="event-title"> |
| 1745 | <text variable="event-title"/> |
| 1746 | </if> |
| 1747 | <else> |
| 1748 | <text variable="event"/> |
| 1749 | </else> |
| 1750 | </choose> |
| 1751 | </macro> |
| 1752 | <!-- After 'source', APA also prints publication history (original publication, reprint info, retraction info) --> |
| 1753 | <macro name="publication-history"> |
| 1754 | <choose> |
| 1755 | <if type="patent"> |
| 1756 | <text variable="references" prefix="(" suffix=")"/> |
| 1757 | </if> |
| 1758 | <else> |
| 1759 | <group delimiter="; " prefix="(" suffix=")"> |
| 1760 | <!-- Print `status` here for things like "retracted" if it's not printed elsewhere already. --> |
| 1761 | <choose> |
| 1762 | <if variable="issued"> |
| 1763 | <choose> |
| 1764 | <if variable="issue number page volume" match="any"> |
| 1765 | <text variable="status" text-case="capitalize-first"/> |
| 1766 | </if> |
| 1767 | </choose> |
| 1768 | </if> |
| 1769 | </choose> |
| 1770 | <choose> |
| 1771 | <if variable="references"> |
| 1772 | <!-- This provides the option for more elaborate description |
| 1773 | of publication history, such as full "reprinted" references |
| 1774 | (examples 11, 43, 44) --> |
| 1775 | <text variable="references"/> |
| 1776 | </if> |
| 1777 | <else> |
| 1778 | <group delimiter=" "> |
| 1779 | <text term="original-work-published" text-case="capitalize-first"/> |
| 1780 | <choose> |
| 1781 | <if is-uncertain-date="original-date"> |
| 1782 | <text term="circa" form="short"/> |
| 1783 | </if> |
| 1784 | </choose> |
| 1785 | <date variable="original-date"> |
| 1786 | <date-part name="year"/> |
| 1787 | </date> |
| 1788 | </group> |
| 1789 | </else> |
| 1790 | </choose> |
| 1791 | </group> |
| 1792 | </else> |
| 1793 | </choose> |
| 1794 | </macro> |
| 1795 | <!-- Legal citations have their own rules --> |
| 1796 | <macro name="legal-cites"> |
| 1797 | <!-- `treaty`: for treaties --> |
| 1798 | <!-- `legal_case`: for all legal and court cases --> |
| 1799 | <!-- `bill`: for bills, resolutions, federal reports --> |
| 1800 | <!-- `hearing`: for hearings and testimony --> |
| 1801 | <!-- `legislation`: for statutes, constitutional items, and charters --> |
| 1802 | <!-- `regulation`: codified regulations, uncodified regulations, executive orders --> |
| 1803 | <group delimiter=" "> |
| 1804 | <choose> |
| 1805 | <if type="treaty"> |
| 1806 | <group delimiter=", " suffix="."> |
| 1807 | <!-- APA generally defers to Bluebook for legal citations, but diverges without |
| 1808 | explanation for treaty items. We follow the Bluebook format that was used |
| 1809 | in APA 6th ed. --> |
| 1810 | <!-- APA manual omits treaty parties/authors, but per Bluebook |
| 1811 | they should be included at least for bilateral treaties. --> |
| 1812 | <names variable="author"> |
| 1813 | <name initialize-with="." form="short" delimiter="-"/> |
| 1814 | </names> |
| 1815 | <text macro="date-legal"/> |
| 1816 | <!-- APA manual omits treaty source/report called for by Bluebook in favor of just URL. |
| 1817 | Both are included here, following the APA style used for all other item types |
| 1818 | to end the reference with a period, then give the URL afterward. --> |
| 1819 | <text macro="container-legal"/> |
| 1820 | </group> |
| 1821 | </if> |
| 1822 | <else> |
| 1823 | <group delimiter=" " suffix="."> |
| 1824 | <group delimiter=", "> |
| 1825 | <text macro="title-legal"/> |
| 1826 | <text macro="container-legal"/> |
| 1827 | </group> |
| 1828 | <text macro="date-legal"/> |
| 1829 | <text macro="parenthetical-legal"/> |
| 1830 | </group> |
| 1831 | </else> |
| 1832 | </choose> |
| 1833 | <text variable="references"/> |
| 1834 | <text macro="access"/> |
| 1835 | </group> |
| 1836 | </macro> |
| 1837 | <macro name="title-legal"> |
| 1838 | <choose> |
| 1839 | <if type="bill legal_case legislation regulation treaty" match="any"> |
| 1840 | <text variable="title" text-case="title"/> |
| 1841 | </if> |
| 1842 | <else-if type="hearing"> |
| 1843 | <!-- APA uses a comma delimiter and omits "hearing before the" for hearings with testimony, |
| 1844 | but follows Bluebook rules (colon delimiter, prefix before the committee name) for |
| 1845 | references to the whole hearing. We simply follow the Bluebook rules for both, but |
| 1846 | use APA style capitalization (not capitalizing "Before" or the title of the hearing). --> |
| 1847 | <group delimiter=": " font-style="italic"> |
| 1848 | <text variable="title" text-case="capitalize-first"/> |
| 1849 | <group delimiter=" "> |
| 1850 | <text term="hearing" form="long" text-case="capitalize-first"/> |
| 1851 | <group delimiter=" "> |
| 1852 | <group delimiter=" "> |
| 1853 | <!-- APA manual omits the bill number, but it should be included per Bluebook if relevant --> |
| 1854 | <text term="on"/> |
| 1855 | <text variable="number"/> |
| 1856 | </group> |
| 1857 | <group delimiter=" "> |
| 1858 | <!-- Use the `at` term to hold "before the" --> |
| 1859 | <text term="at" form="long"/> |
| 1860 | <text variable="section"/> |
| 1861 | </group> |
| 1862 | </group> |
| 1863 | </group> |
| 1864 | </group> |
| 1865 | </else-if> |
| 1866 | </choose> |
| 1867 | </macro> |
| 1868 | <macro name="date-legal"> |
| 1869 | <choose> |
| 1870 | <if type="treaty"> |
| 1871 | <date variable="issued" form="text"/> |
| 1872 | </if> |
| 1873 | <else-if type="legal_case"> |
| 1874 | <group prefix="(" suffix=")" delimiter=" "> |
| 1875 | <text variable="authority"/> |
| 1876 | <choose> |
| 1877 | <if variable="container-title" match="any"> |
| 1878 | <!-- Print only year for cases published in reporters--> |
| 1879 | <date variable="issued" form="numeric" date-parts="year"/> |
| 1880 | </if> |
| 1881 | <else> |
| 1882 | <!-- APA manual doesn't include examples of cases not yet |
| 1883 | published in a reporter, but this is Bluebook style. --> |
| 1884 | <date variable="issued" form="text"/> |
| 1885 | </else> |
| 1886 | </choose> |
| 1887 | </group> |
| 1888 | </else-if> |
| 1889 | <else-if type="bill hearing legislation regulation" match="any"> |
| 1890 | <group prefix="(" suffix=")" delimiter=" "> |
| 1891 | <group delimiter=" "> |
| 1892 | <date variable="original-date"> |
| 1893 | <date-part name="year"/> |
| 1894 | </date> |
| 1895 | <text term="and" form="symbol"/> |
| 1896 | </group> |
| 1897 | <choose> |
| 1898 | <if variable="issued"> |
| 1899 | <!-- APA manual includes "rev." before the revision year, |
| 1900 | but this isn't part of the Bluebook rules. --> |
| 1901 | <date variable="issued"> |
| 1902 | <date-part name="year"/> |
| 1903 | </date> |
| 1904 | </if> |
| 1905 | <else> |
| 1906 | <!-- Show proposal date for uncodified regualtions. |
| 1907 | Assume date is entered literally ala "proposed May 23, 2016". |
| 1908 | TODO: Add 'proposed' term here if that becomes available --> |
| 1909 | <date variable="submitted" form="text"/> |
| 1910 | </else> |
| 1911 | </choose> |
| 1912 | </group> |
| 1913 | </else-if> |
| 1914 | </choose> |
| 1915 | </macro> |
| 1916 | <macro name="container-legal"> |
| 1917 | <!-- Expect legal item container-titles to be stored in short form --> |
| 1918 | <choose> |
| 1919 | <if type="treaty"> |
| 1920 | <group delimiter=" "> |
| 1921 | <number variable="volume"/> |
| 1922 | <text variable="container-title"/> |
| 1923 | <choose> |
| 1924 | <if variable="page page-first" match="any"> |
| 1925 | <text variable="page-first"/> |
| 1926 | </if> |
| 1927 | <else> |
| 1928 | <group delimiter=" "> |
| 1929 | <label variable="number" form="short" text-case="capitalize-first"/> |
| 1930 | <text variable="number"/> |
| 1931 | </group> |
| 1932 | </else> |
| 1933 | </choose> |
| 1934 | </group> |
| 1935 | </if> |
| 1936 | <else-if type="legal_case"> |
| 1937 | <group delimiter=" "> |
| 1938 | <choose> |
| 1939 | <if variable="container-title"> |
| 1940 | <group delimiter=" "> |
| 1941 | <text variable="volume"/> |
| 1942 | <text variable="container-title"/> |
| 1943 | <group delimiter=" "> |
| 1944 | <label variable="section" form="symbol"/> |
| 1945 | <text variable="section"/> |
| 1946 | </group> |
| 1947 | <choose> |
| 1948 | <if variable="page page-first" match="any"> |
| 1949 | <text variable="page-first"/> |
| 1950 | </if> |
| 1951 | <else> |
| 1952 | <text value="___"/> |
| 1953 | </else> |
| 1954 | </choose> |
| 1955 | </group> |
| 1956 | </if> |
| 1957 | <else> |
| 1958 | <group delimiter=" "> |
| 1959 | <label variable="number" form="short" text-case="capitalize-first"/> |
| 1960 | <text variable="number"/> |
| 1961 | </group> |
| 1962 | </else> |
| 1963 | </choose> |
| 1964 | </group> |
| 1965 | </else-if> |
| 1966 | <else-if type="bill"> |
| 1967 | <group delimiter=", "> |
| 1968 | <group delimiter=" "> |
| 1969 | <text variable="genre"/> |
| 1970 | <group delimiter=" "> |
| 1971 | <choose> |
| 1972 | <!-- If there is no session number or code/record title, assume |
| 1973 | assume the item is a congressional report and include 'No.' term. --> |
| 1974 | <if variable="chapter-number container-title" match="none"> |
| 1975 | <!-- The item is a congressional report, rather than a bill or resultion. --> |
| 1976 | <label variable="number" form="short" text-case="capitalize-first"/> |
| 1977 | </if> |
| 1978 | </choose> |
| 1979 | <text variable="number"/> |
| 1980 | </group> |
| 1981 | </group> |
| 1982 | <group delimiter=" "> |
| 1983 | <text variable="authority"/> |
| 1984 | <!-- 'session' is `chapter-number` --> |
| 1985 | <text variable="chapter-number"/> |
| 1986 | </group> |
| 1987 | <group delimiter=" "> |
| 1988 | <text variable="volume"/> |
| 1989 | <text variable="container-title"/> |
| 1990 | <text variable="page-first"/> |
| 1991 | </group> |
| 1992 | </group> |
| 1993 | </else-if> |
| 1994 | <else-if type="hearing"> |
| 1995 | <group delimiter=" "> |
| 1996 | <text variable="authority"/> |
| 1997 | <!-- 'session' is `chapter-number` --> |
| 1998 | <text variable="chapter-number"/> |
| 1999 | </group> |
| 2000 | </else-if> |
| 2001 | <else-if type="legislation"> |
| 2002 | <choose> |
| 2003 | <if variable="number"> |
| 2004 | <!-- There's a public law number. --> |
| 2005 | <group delimiter=", "> |
| 2006 | <text variable="number" prefix="Pub. L. No. "/> |
| 2007 | <group delimiter=" "> |
| 2008 | <text variable="volume"/> |
| 2009 | <text variable="container-title"/> |
| 2010 | <text variable="page-first"/> |
| 2011 | </group> |
| 2012 | </group> |
| 2013 | </if> |
| 2014 | <else> |
| 2015 | <group delimiter=" "> |
| 2016 | <text variable="volume"/> |
| 2017 | <text variable="container-title"/> |
| 2018 | <choose> |
| 2019 | <if variable="section"> |
| 2020 | <group delimiter=" "> |
| 2021 | <label variable="section" form="symbol"/> |
| 2022 | <text variable="section"/> |
| 2023 | </group> |
| 2024 | </if> |
| 2025 | <else> |
| 2026 | <text variable="page-first"/> |
| 2027 | </else> |
| 2028 | </choose> |
| 2029 | </group> |
| 2030 | </else> |
| 2031 | </choose> |
| 2032 | </else-if> |
| 2033 | <else-if type="regulation"> |
| 2034 | <group delimiter=", "> |
| 2035 | <group delimiter=" "> |
| 2036 | <text variable="genre"/> |
| 2037 | <group delimiter=" "> |
| 2038 | <label variable="number" form="short" text-case="capitalize-first"/> |
| 2039 | <text variable="number"/> |
| 2040 | </group> |
| 2041 | </group> |
| 2042 | <group delimiter=" "> |
| 2043 | <text variable="volume"/> |
| 2044 | <text variable="container-title"/> |
| 2045 | <choose> |
| 2046 | <if variable="section"> |
| 2047 | <group delimiter=" "> |
| 2048 | <label variable="section" form="symbol"/> |
| 2049 | <text variable="section"/> |
| 2050 | </group> |
| 2051 | </if> |
| 2052 | <else> |
| 2053 | <text variable="page-first"/> |
| 2054 | </else> |
| 2055 | </choose> |
| 2056 | </group> |
| 2057 | </group> |
| 2058 | </else-if> |
| 2059 | </choose> |
| 2060 | </macro> |
| 2061 | <macro name="parenthetical-legal"> |
| 2062 | <choose> |
| 2063 | <if type="hearing"> |
| 2064 | <group prefix="(" suffix=")" delimiter=" "> |
| 2065 | <!-- Use the 'verb' form of the hearing term to hold 'testimony of' --> |
| 2066 | <text term="hearing" form="verb"/> |
| 2067 | <names variable="author"> |
| 2068 | <name and="symbol" delimiter=", "/> |
| 2069 | </names> |
| 2070 | </group> |
| 2071 | </if> |
| 2072 | <else-if type="bill legislation regulation" match="any"> |
| 2073 | <!-- For uncodified regulations, assume future code section is in `status`. --> |
| 2074 | <text variable="status" prefix="(" suffix=")"/> |
| 2075 | </else-if> |
| 2076 | </choose> |
| 2077 | </macro> |
| 2078 | <macro name="citation-locator"> |
| 2079 | <!-- Abbreviate page and paragraph, leave other locator labels in long form, cf. Rule 8.13 --> |
| 2080 | <group delimiter=" "> |
| 2081 | <choose> |
| 2082 | <if locator="page paragraph" match="any"> |
| 2083 | <label variable="locator" form="short"/> |
| 2084 | </if> |
| 2085 | <else> |
| 2086 | <label variable="locator" text-case="capitalize-first"/> |
| 2087 | </else> |
| 2088 | </choose> |
| 2089 | <text variable="locator"/> |
| 2090 | </group> |
| 2091 | </macro> |
| 2092 | <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"> |
| 2093 | <sort> |
| 2094 | <key macro="author-sort" names-min="3" names-use-first="1"/> |
| 2095 | <key macro="date-sort-group" sort="ascending"/> |
| 2096 | <key macro="date-sort" sort="ascending"/> |
| 2097 | <key variable="status"/> |
| 2098 | </sort> |
| 2099 | <layout prefix="(" suffix=")" delimiter="; "> |
| 2100 | <group delimiter=", "> |
| 2101 | <text macro="author-intext"/> |
| 2102 | <text macro="date-intext"/> |
| 2103 | <text macro="citation-locator"/> |
| 2104 | </group> |
| 2105 | </layout> |
| 2106 | </citation> |
| 2107 | <bibliography hanging-indent="true" et-al-min="21" et-al-use-first="19" et-al-use-last="true" entry-spacing="0" line-spacing="2"> |
| 2108 | <sort> |
| 2109 | <key macro="author-sort"/> |
| 2110 | <key macro="date-sort-group" sort="ascending"/> |
| 2111 | <key macro="date-sort" sort="ascending"/> |
| 2112 | <key variable="status"/> |
| 2113 | <key macro="title"/> |
| 2114 | </sort> |
| 2115 | <layout> |
| 2116 | <choose> |
| 2117 | <if type="bill hearing legal_case legislation regulation treaty" match="any"> |
| 2118 | <!-- Legal items have different orders and delimiters --> |
| 2119 | <text macro="legal-cites"/> |
| 2120 | </if> |
| 2121 | <else> |
| 2122 | <group delimiter=" "> |
| 2123 | <group delimiter=". " suffix="."> |
| 2124 | <text macro="author-bib"/> |
| 2125 | <text macro="date-bib"/> |
| 2126 | <text macro="title-and-descriptions"/> |
| 2127 | <text macro="container"/> |
| 2128 | <text macro="event"/> |
| 2129 | <text macro="publisher"/> |
| 2130 | </group> |
| 2131 | <text macro="access"/> |
| 2132 | <text macro="publication-history"/> |
| 2133 | </group> |
| 2134 | </else> |
| 2135 | </choose> |
| 2136 | </layout> |
| 2137 | </bibliography> |
| 2138 | </style> |