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