oxedyne/fe2o3/fe2o3_text/data/csl/styles/chicago-author-date.csl
164 KiB, 1 run
created by r1870400018:73046, 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" initialize-with=". " page-range-format="chicago-16" version="1.0"> |
| 3 | <!-- This file was generated by the Style Variant Builder <https://github.com/citation-style-language/style-variant-builder>. To contribute changes, modify the template and regenerate variants. --> |
| 4 | <info> |
| 5 | <title>Chicago Manual of Style 18th edition (author-date)</title> |
| 6 | <title-short>CMOS/CMS with Bluebook (author-date/AD [13.102])</title-short> |
| 7 | <id>http://www.zotero.org/styles/chicago-author-date</id> |
| 8 | <link href="http://www.zotero.org/styles/chicago-author-date" rel="self"/> |
| 9 | <link href="http://www.zotero.org/styles/chicago-notes-bibliography" rel="template"/> |
| 10 | <link href="https://www.chicagomanualofstyle.org/" rel="documentation"/> |
| 11 | <link href="https://zotero.org/groups/2205533/collections/5V67EPX3" rel="documentation"/> |
| 12 | <author> |
| 13 | <name>Andrew Dunning</name> |
| 14 | <uri>https://orcid.org/0000-0003-0464-5036</uri> |
| 15 | </author> |
| 16 | <category citation-format="author-date"/> |
| 17 | <category field="anthropology"/> |
| 18 | <category field="communications"/> |
| 19 | <category field="generic-base"/> |
| 20 | <category field="geography"/> |
| 21 | <category field="history"/> |
| 22 | <category field="humanities"/> |
| 23 | <category field="law"/> |
| 24 | <category field="linguistics"/> |
| 25 | <category field="literature"/> |
| 26 | <category field="philosophy"/> |
| 27 | <category field="political_science"/> |
| 28 | <category field="science"/> |
| 29 | <category field="social_science"/> |
| 30 | <category field="sociology"/> |
| 31 | <category field="theology"/> |
| 32 | <summary>Chicago-style source citations (with Bluebook for legal citations), author-date system</summary> |
| 33 | <updated>2025-02-09T00:00:00+00:00</updated> |
| 34 | <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> |
| 35 | </info> |
| 36 | <locale xml:lang="en"> |
| 37 | <terms> |
| 38 | <!-- Chicago omits 'by' from `verb-short` forms; it abbreviates only the most common roles --> |
| 39 | <term name="advance-online-publication">ahead of print</term> |
| 40 | <term name="anonymous">unsigned</term> |
| 41 | <term form="verb-short" name="collection-editor">ed.</term> |
| 42 | <term form="short" name="collection-number"> |
| 43 | <single>vol.</single> |
| 44 | <multiple>vols.</multiple> |
| 45 | </term> |
| 46 | <term form="verb-short" name="compiler">comp.</term> |
| 47 | <term form="verb-short" name="editor">ed.</term> |
| 48 | <term form="short" name="editor-translator"> |
| 49 | <single>ed. and trans.</single> |
| 50 | <multiple>eds. and trans.</multiple> |
| 51 | </term> |
| 52 | <term form="short" name="editortranslator"> |
| 53 | <single>ed. and trans.</single> |
| 54 | <multiple>eds. and trans.</multiple> |
| 55 | </term> |
| 56 | <term form="verb" name="editor-translator">edited and translated by</term> |
| 57 | <term form="verb" name="editortranslator">edited and translated by</term> |
| 58 | <term form="verb-short" name="editor-translator">ed. and trans.</term> |
| 59 | <term form="verb-short" name="editortranslator">ed. and trans.</term> |
| 60 | <term form="verb-short" name="illustrator">ill.</term> |
| 61 | <term form="short" name="legislation">Pub. L.</term> |
| 62 | <term name="manuscript">unpublished manuscript</term> |
| 63 | <term name="original-work-published">originally published as</term> |
| 64 | <term form="short" name="paper-conference">paper</term> |
| 65 | <!-- 'under' replaces 's.v.' from CMOS17 and earlier (CMOS18 14.130) --> |
| 66 | <term name="sub-verbo">under</term> |
| 67 | <term form="short" name="sub-verbo">under</term> |
| 68 | <term name="timestamp">at</term> |
| 69 | <term form="verb-short" name="translator">trans.</term> |
| 70 | </terms> |
| 71 | </locale> |
| 72 | <locale xml:lang="en-GB"> |
| 73 | <terms> |
| 74 | <!-- the Bibliography of Additional Resources recommends the New Oxford Style Manual as a British English guide, which the `en-GB` locale follows --> |
| 75 | <term form="short" name="collection-number"> |
| 76 | <single>vol.</single> |
| 77 | <multiple>vols</multiple> |
| 78 | </term> |
| 79 | <term form="short" name="editor-translator"> |
| 80 | <single>ed. and trans.</single> |
| 81 | <multiple>eds and trans.</multiple> |
| 82 | </term> |
| 83 | <term form="short" name="editortranslator"> |
| 84 | <single>ed. and trans.</single> |
| 85 | <multiple>eds and trans.</multiple> |
| 86 | </term> |
| 87 | <term form="verb-short" name="illustrator">illus.</term> |
| 88 | </terms> |
| 89 | </locale> |
| 90 | <!-- Contents: |
| 91 | |
| 92 | This file interprets Chicago using APA's four basic reference elements |
| 93 | (cf. CMOS18 14.2, 14.64, 14.161): |
| 94 | |
| 95 | 1. Author (CMOS18 13.74-86) |
| 96 | 2. Date (author-date system only, CMOS18 13.102) |
| 97 | 3. Title and descriptions (CMOS18 13.87-101) |
| 98 | 3.1. Title |
| 99 | 3.2. Description |
| 100 | 3.3. Identifiers (edition, contributors, volume) |
| 101 | 4. Source |
| 102 | 4.1. Serial sources |
| 103 | 4.2. Monographic sources |
| 104 | 4.3. Series |
| 105 | 4.4. Event |
| 106 | 4.5. Publisher |
| 107 | 4.6. Date |
| 108 | 4.7. Locator (including page references) |
| 109 | 4.8. Medium |
| 110 | 4.9. Archival location |
| 111 | 4.10. URL or persistent identifier |
| 112 | |
| 113 | Freeform annotations to bibliography entries: |
| 114 | |
| 115 | 5. Notes |
| 116 | |
| 117 | Chicago also provides parallel rules for legal references following |
| 118 | The Bluebook: A Uniform System of Citation (code shared with APA): |
| 119 | |
| 120 | 6. Legal references |
| 121 | --> |
| 122 | <!-- In this file, macros suffixed `-bib` and `-note` are parallel versions |
| 123 | of the same features for the bibliography and notes, and all changes |
| 124 | must be applied to both. They should only contain differences of |
| 125 | punctuation (periods in bibliography, commas in notes) and capitalization, |
| 126 | except where the comments indicate structural changes. --> |
| 127 | <!-- Categories of CSL item types: |
| 128 | |
| 129 | Serial |
| 130 | : article-journal article-magazine article-newspaper periodical post-weblog review review-book |
| 131 | |
| 132 | Serial or Monographic |
| 133 | : interview paper-conference |
| 134 | |
| 135 | Monographic with any of `collection-editor compiler editor editorial-director`. |
| 136 | A serial `paper-conference` is unpublished if it lacks any of `issue page supplement-number volume`. |
| 137 | |
| 138 | Monographic |
| 139 | : article book broadcast chapter classic collection dataset document |
| 140 | entry entry-dictionary entry-encyclopedia event figure |
| 141 | graphic manuscript map motion_picture musical_score |
| 142 | pamphlet patent performance personal_communication post report |
| 143 | software song speech standard thesis webpage |
| 144 | |
| 145 | Legal |
| 146 | : bill hearing legal_case legislation regulation treaty |
| 147 | --> |
| 148 | <!-- Variable labels --> |
| 149 | <macro name="label-chapter-number"> |
| 150 | <group delimiter=" "> |
| 151 | <choose> |
| 152 | <if is-numeric="chapter-number" type="song"> |
| 153 | <text value="track"/> |
| 154 | </if> |
| 155 | <else-if is-numeric="chapter-number"> |
| 156 | <label form="short" variable="chapter-number"/> |
| 157 | </else-if> |
| 158 | </choose> |
| 159 | <text variable="chapter-number"/> |
| 160 | </group> |
| 161 | </macro> |
| 162 | <macro name="label-chapter-number-capitalized"> |
| 163 | <group delimiter=" "> |
| 164 | <choose> |
| 165 | <if is-numeric="chapter-number" type="song"> |
| 166 | <text text-case="capitalize-first" value="track"/> |
| 167 | </if> |
| 168 | <else-if is-numeric="chapter-number"> |
| 169 | <label form="short" text-case="capitalize-first" variable="chapter-number"/> |
| 170 | </else-if> |
| 171 | </choose> |
| 172 | <text text-case="capitalize-first" variable="chapter-number"/> |
| 173 | </group> |
| 174 | </macro> |
| 175 | <macro name="label-collection-number"> |
| 176 | <group delimiter=" "> |
| 177 | <choose> |
| 178 | <if is-numeric="collection-number"> |
| 179 | <label form="short" variable="collection-number"/> |
| 180 | </if> |
| 181 | </choose> |
| 182 | <text variable="collection-number"/> |
| 183 | </group> |
| 184 | </macro> |
| 185 | <macro name="label-edition"> |
| 186 | <group delimiter=" "> |
| 187 | <choose> |
| 188 | <if is-numeric="edition"> |
| 189 | <number form="ordinal" variable="edition"/> |
| 190 | <label form="short" variable="edition"/> |
| 191 | </if> |
| 192 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 193 | <!-- serial types: full label (CMOS18 14.89) --> |
| 194 | <text variable="edition"/> |
| 195 | <label variable="edition"/> |
| 196 | </else-if> |
| 197 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 198 | <!-- monographic types --> |
| 199 | <text variable="edition"/> |
| 200 | </else-if> |
| 201 | <else-if match="any" type="interview paper-conference"> |
| 202 | <!-- serial types --> |
| 203 | <text variable="edition"/> |
| 204 | <label variable="edition"/> |
| 205 | </else-if> |
| 206 | <else> |
| 207 | <!-- monographic types --> |
| 208 | <text variable="edition"/> |
| 209 | </else> |
| 210 | </choose> |
| 211 | </group> |
| 212 | </macro> |
| 213 | <macro name="label-edition-capitalized"> |
| 214 | <group delimiter=" "> |
| 215 | <choose> |
| 216 | <if is-numeric="edition"> |
| 217 | <number form="ordinal" variable="edition"/> |
| 218 | <label form="short" variable="edition"/> |
| 219 | </if> |
| 220 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 221 | <!-- serial types: full label (CMOS18 14.89) --> |
| 222 | <text text-case="title" variable="edition"/> |
| 223 | <label text-case="capitalize-first" variable="edition"/> |
| 224 | </else-if> |
| 225 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 226 | <!-- monographic types --> |
| 227 | <text text-case="capitalize-first" variable="edition"/> |
| 228 | </else-if> |
| 229 | <else-if match="any" type="interview paper-conference"> |
| 230 | <!-- serial types --> |
| 231 | <text text-case="title" variable="edition"/> |
| 232 | <label text-case="capitalize-first" variable="edition"/> |
| 233 | </else-if> |
| 234 | <else> |
| 235 | <!-- monographic types --> |
| 236 | <text text-case="capitalize-first" variable="edition"/> |
| 237 | </else> |
| 238 | </choose> |
| 239 | </group> |
| 240 | </macro> |
| 241 | <macro name="label-issue"> |
| 242 | <group delimiter=" "> |
| 243 | <label form="short" variable="issue"/> |
| 244 | <text variable="issue"/> |
| 245 | </group> |
| 246 | </macro> |
| 247 | <macro name="label-locator"> |
| 248 | <group delimiter=" "> |
| 249 | <choose> |
| 250 | <if locator="page"/> |
| 251 | <else-if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 252 | <!-- Bluebook-style labels for legal types (CMOS18 14.174) --> |
| 253 | <choose> |
| 254 | <if locator="chapter paragraph section" match="any"> |
| 255 | <label form="symbol" variable="locator"/> |
| 256 | </if> |
| 257 | <else> |
| 258 | <label form="short" variable="locator"/> |
| 259 | </else> |
| 260 | </choose> |
| 261 | </else-if> |
| 262 | <else-if is-numeric="locator" locator="line"> |
| 263 | <label variable="locator"/> |
| 264 | </else-if> |
| 265 | <else-if is-numeric="locator"> |
| 266 | <label form="short" variable="locator"/> |
| 267 | </else-if> |
| 268 | <else-if locator="chapter line verse" match="any"/> |
| 269 | <!-- a non-numeric canonical reference is identified by its formatting and does not need a label (CMOS18 14.143-54) --> |
| 270 | <else> |
| 271 | <label form="short" variable="locator"/> |
| 272 | </else> |
| 273 | </choose> |
| 274 | <text variable="locator"/> |
| 275 | </group> |
| 276 | </macro> |
| 277 | <macro name="label-locator-all"> |
| 278 | <group delimiter=" "> |
| 279 | <label form="short" variable="locator"/> |
| 280 | <text variable="locator"/> |
| 281 | </group> |
| 282 | </macro> |
| 283 | <macro name="label-number-capitalized"> |
| 284 | <group delimiter=" "> |
| 285 | <choose> |
| 286 | <if type="standard"/> |
| 287 | <else-if is-numeric="number" match="any" type="legislation regulation"> |
| 288 | <label form="short" text-case="capitalize-first" variable="number"/> |
| 289 | </else-if> |
| 290 | </choose> |
| 291 | <text text-case="capitalize-first" variable="number"/> |
| 292 | </group> |
| 293 | </macro> |
| 294 | <macro name="label-number-of-volumes"> |
| 295 | <group delimiter=" "> |
| 296 | <text variable="number-of-volumes"/> |
| 297 | <choose> |
| 298 | <if is-numeric="number-of-volumes"> |
| 299 | <label form="short" variable="number-of-volumes"/> |
| 300 | </if> |
| 301 | </choose> |
| 302 | </group> |
| 303 | </macro> |
| 304 | <macro name="label-page"> |
| 305 | <group delimiter=" "> |
| 306 | <label form="short" variable="page"/> |
| 307 | <text variable="page"/> |
| 308 | </group> |
| 309 | </macro> |
| 310 | <macro name="label-part-number"> |
| 311 | <group delimiter=" "> |
| 312 | <choose> |
| 313 | <if is-numeric="part-number"> |
| 314 | <!-- TODO: Replace with `part-number` label when CSL provides one --> |
| 315 | <text form="short" term="part"/> |
| 316 | </if> |
| 317 | </choose> |
| 318 | <text variable="part-number"/> |
| 319 | </group> |
| 320 | </macro> |
| 321 | <macro name="label-part-number-capitalized"> |
| 322 | <group delimiter=" "> |
| 323 | <choose> |
| 324 | <if is-numeric="part-number"> |
| 325 | <!-- TODO: Replace with `part-number` label when CSL provides one --> |
| 326 | <text form="short" term="part" text-case="capitalize-first"/> |
| 327 | </if> |
| 328 | </choose> |
| 329 | <text text-case="capitalize-first" variable="part-number"/> |
| 330 | </group> |
| 331 | </macro> |
| 332 | <macro name="label-section-capitalized"> |
| 333 | <group delimiter=" "> |
| 334 | <choose> |
| 335 | <if is-numeric="section"> |
| 336 | <label form="short" text-case="capitalize-first" variable="section"/> |
| 337 | </if> |
| 338 | </choose> |
| 339 | <text text-case="title" variable="section"/> |
| 340 | </group> |
| 341 | </macro> |
| 342 | <macro name="label-section-symbol"> |
| 343 | <group delimiter=" "> |
| 344 | <label form="symbol" variable="section"/> |
| 345 | <text variable="section"/> |
| 346 | </group> |
| 347 | </macro> |
| 348 | <macro name="label-supplement-number"> |
| 349 | <group delimiter=" "> |
| 350 | <choose> |
| 351 | <!-- TODO: Replace with `supplement-number` label when CSL provides one --> |
| 352 | <if variable="issue supplement-number"> |
| 353 | <!-- if there is both an issue and supplement number, do not label both as 'no.' --> |
| 354 | <text form="short" term="supplement"/> |
| 355 | </if> |
| 356 | <else-if is-numeric="supplement-number" variable="volume-title"> |
| 357 | <!-- if there is a volume title, it is already described as a supplement --> |
| 358 | <text form="short" term="issue"/> |
| 359 | </else-if> |
| 360 | <else-if is-numeric="supplement-number" type="periodical" variable="title"> |
| 361 | <text form="short" term="issue"/> |
| 362 | </else-if> |
| 363 | <else-if is-numeric="supplement-number"> |
| 364 | <text form="short" term="supplement"/> |
| 365 | </else-if> |
| 366 | </choose> |
| 367 | <text variable="supplement-number"/> |
| 368 | </group> |
| 369 | </macro> |
| 370 | <macro name="label-version"> |
| 371 | <group delimiter=" "> |
| 372 | <choose> |
| 373 | <if type="software"> |
| 374 | <!-- short version label for software (CMOS18 14.169) --> |
| 375 | <label form="short" variable="version"/> |
| 376 | </if> |
| 377 | <else> |
| 378 | <label variable="version"/> |
| 379 | </else> |
| 380 | </choose> |
| 381 | <text variable="version"/> |
| 382 | </group> |
| 383 | </macro> |
| 384 | <macro name="label-version-capitalized"> |
| 385 | <group delimiter=" "> |
| 386 | <choose> |
| 387 | <if type="software"> |
| 388 | <!-- short version label for software (CMOS18 14.169) --> |
| 389 | <label form="short" text-case="capitalize-first" variable="version"/> |
| 390 | </if> |
| 391 | <else> |
| 392 | <label text-case="capitalize-first" variable="version"/> |
| 393 | </else> |
| 394 | </choose> |
| 395 | <text variable="version"/> |
| 396 | </group> |
| 397 | </macro> |
| 398 | <macro name="label-volume"> |
| 399 | <group delimiter=" "> |
| 400 | <choose> |
| 401 | <if is-numeric="volume"> |
| 402 | <label form="short" variable="volume"/> |
| 403 | </if> |
| 404 | </choose> |
| 405 | <text variable="volume"/> |
| 406 | </group> |
| 407 | </macro> |
| 408 | <macro name="label-volume-capitalized"> |
| 409 | <group delimiter=" "> |
| 410 | <choose> |
| 411 | <if is-numeric="volume"> |
| 412 | <label form="short" text-case="capitalize-first" variable="volume"/> |
| 413 | </if> |
| 414 | </choose> |
| 415 | <text text-case="capitalize-first" variable="volume"/> |
| 416 | </group> |
| 417 | </macro> |
| 418 | <!-- 1. Author (CMOS18 13.74-86) --> |
| 419 | <macro name="author-bib"> |
| 420 | <names variable="composer"> |
| 421 | <name and="text" delimiter-precedes-last="always" initialize="false" name-as-sort-order="first"/> |
| 422 | <label form="short" prefix=", "/> |
| 423 | <substitute> |
| 424 | <names variable="author"/> |
| 425 | <!-- cf. `interview` model (CMOS18 14.110); if it is desired to prioritize `host` over `guest`, the latter could be encoded as a `contributor` --> |
| 426 | <names variable="guest"/> |
| 427 | <names variable="host"/> |
| 428 | <choose> |
| 429 | <if type="song"> |
| 430 | <names variable="performer"/> |
| 431 | </if> |
| 432 | </choose> |
| 433 | <choose> |
| 434 | <if type="classic"> |
| 435 | <!-- contributors fall after the title of `classic` (CMOS18 14.147) --> |
| 436 | <text macro="author-title-substitute-bib"/> |
| 437 | </if> |
| 438 | <else-if type="entry-dictionary" variable="container-title"> |
| 439 | <!-- contributors fall after the title of unsigned reference entries (CMOS18 14.130) --> |
| 440 | <text macro="author-title-substitute-container"/> |
| 441 | </else-if> |
| 442 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 443 | <text macro="author-title-substitute-container"/> |
| 444 | </else-if> |
| 445 | </choose> |
| 446 | <names variable="illustrator"/> |
| 447 | <choose> |
| 448 | <if match="none" type="standard"> |
| 449 | <names variable="editor-translator"/> |
| 450 | <names variable="editor"/> |
| 451 | <names variable="translator"/> |
| 452 | <names variable="collection-editor"/> |
| 453 | </if> |
| 454 | </choose> |
| 455 | <names variable="director"/> |
| 456 | <choose> |
| 457 | <!-- serial `broadcast` prioritizes title (CMOS18 14.165, 14.168) --> |
| 458 | <if type="broadcast" variable="container-title number title"/> |
| 459 | <else> |
| 460 | <names variable="producer"/> |
| 461 | <names variable="executive-producer"/> |
| 462 | <names variable="series-creator"/> |
| 463 | <choose> |
| 464 | <if type="broadcast"> |
| 465 | <names variable="contributor"/> |
| 466 | </if> |
| 467 | </choose> |
| 468 | </else> |
| 469 | </choose> |
| 470 | <names variable="editorial-director"/> |
| 471 | <names variable="compiler"/> |
| 472 | <choose> |
| 473 | <if match="any" type="event performance speech"> |
| 474 | <names variable="chair"/> |
| 475 | <names variable="organizer"/> |
| 476 | </if> |
| 477 | </choose> |
| 478 | <names variable="curator"/> |
| 479 | <choose> |
| 480 | <if match="any" type="software webpage"> |
| 481 | <!-- `software` listed under the name of the publisher or developer (CMOS18 14.169); `webpage` listed under a site owner or sponsor (CMOS18 14.104) --> |
| 482 | <text variable="publisher"/> |
| 483 | </if> |
| 484 | <else-if type="standard"> |
| 485 | <!-- `standard` listed in bibliography under organization, but note omits this (CMOS18 14.159) --> |
| 486 | <text variable="authority"/> |
| 487 | </else-if> |
| 488 | </choose> |
| 489 | <text macro="author-title-substitute-container"/> |
| 490 | <text macro="author-title-substitute-bib"/> |
| 491 | <choose> |
| 492 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"/> |
| 493 | <else-if type="manuscript"> |
| 494 | <text macro="source-archive-bib"/> |
| 495 | </else-if> |
| 496 | </choose> |
| 497 | </substitute> |
| 498 | </names> |
| 499 | </macro> |
| 500 | <macro name="author-inline"> |
| 501 | <choose> |
| 502 | <if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 503 | <text macro="title-and-descriptions-short"/> |
| 504 | </if> |
| 505 | <else-if match="any" type="interview personal_communication"> |
| 506 | <text macro="author-inline-and-recipient"/> |
| 507 | </else-if> |
| 508 | <else> |
| 509 | <names variable="composer"> |
| 510 | <name and="text" form="short" initialize="true"/> |
| 511 | <substitute> |
| 512 | <names variable="author"/> |
| 513 | <names variable="guest"/> |
| 514 | <names variable="host"/> |
| 515 | <choose> |
| 516 | <if type="song"> |
| 517 | <names variable="performer"/> |
| 518 | </if> |
| 519 | </choose> |
| 520 | <choose> |
| 521 | <if match="any" type="classic performance"> |
| 522 | <!-- contributors fall after the title of `classic` (CMOS18 14.147), `performance` (CMOS18 14.166) --> |
| 523 | <text macro="author-title-substitute-short"/> |
| 524 | </if> |
| 525 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 526 | <!-- contributors fall after the title of unsigned reference entries (CMOS18 14.130) --> |
| 527 | <text macro="author-title-substitute-container-short"/> |
| 528 | </else-if> |
| 529 | </choose> |
| 530 | <names variable="illustrator"/> |
| 531 | <choose> |
| 532 | <if match="none" type="standard"> |
| 533 | <names variable="editor-translator"/> |
| 534 | <names variable="editor"/> |
| 535 | <names variable="translator"/> |
| 536 | <names variable="collection-editor"/> |
| 537 | </if> |
| 538 | </choose> |
| 539 | <choose> |
| 540 | <if type="broadcast" variable="container-title number title"/> |
| 541 | <else> |
| 542 | <names variable="director"/> |
| 543 | <names variable="producer"/> |
| 544 | <names variable="executive-producer"/> |
| 545 | <names variable="series-creator"/> |
| 546 | <choose> |
| 547 | <if type="broadcast"> |
| 548 | <names variable="contributor"/> |
| 549 | </if> |
| 550 | </choose> |
| 551 | </else> |
| 552 | </choose> |
| 553 | <names variable="editorial-director"/> |
| 554 | <names variable="compiler"/> |
| 555 | <choose> |
| 556 | <if match="any" type="event performance speech"> |
| 557 | <names variable="chair"/> |
| 558 | <names variable="organizer"/> |
| 559 | </if> |
| 560 | </choose> |
| 561 | <names variable="curator"/> |
| 562 | <choose> |
| 563 | <if match="any" type="software webpage"> |
| 564 | <!-- `software` listed under the name of the publisher or developer (CMOS18 14.169); `webpage` listed under a site owner or sponsor (CMOS18 14.104) --> |
| 565 | <text form="short" variable="publisher"/> |
| 566 | </if> |
| 567 | <else-if type="standard"> |
| 568 | <!-- `standard` listed in bibliography under organization, but note omits this (CMOS18 14.159) --> |
| 569 | <text form="short" variable="authority"/> |
| 570 | </else-if> |
| 571 | </choose> |
| 572 | <text macro="author-title-substitute-container-short"/> |
| 573 | <text macro="author-title-substitute-short"/> |
| 574 | <choose> |
| 575 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"/> |
| 576 | <else-if type="manuscript"> |
| 577 | <text macro="source-archive-note"/> |
| 578 | </else-if> |
| 579 | </choose> |
| 580 | </substitute> |
| 581 | </names> |
| 582 | </else> |
| 583 | </choose> |
| 584 | </macro> |
| 585 | <macro name="author-sort"> |
| 586 | <choose> |
| 587 | <if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 588 | <text macro="legal-title"/> |
| 589 | </if> |
| 590 | <else> |
| 591 | <text macro="author-bib"/> |
| 592 | </else> |
| 593 | </choose> |
| 594 | </macro> |
| 595 | <!-- Author elements --> |
| 596 | <macro name="author-inline-and-recipient"> |
| 597 | <!-- identical to `author-short-and-recipient` but with initialization --> |
| 598 | <group delimiter=" "> |
| 599 | <choose> |
| 600 | <!-- inaccessible `interview` or `personal_commmunication`: in-text citation (CMOS18 14.111) --> |
| 601 | <if match="none" variable="archive archive-place container-title DOI number publisher references URL"> |
| 602 | <choose> |
| 603 | <if position="first"> |
| 604 | <!-- do not shorten at first reference as there is no bibliography entry --> |
| 605 | <names variable="author"> |
| 606 | <name and="text" initialize="false"/> |
| 607 | <!-- never initialize --> |
| 608 | <substitute> |
| 609 | <text macro="title-and-descriptions-short"/> |
| 610 | </substitute> |
| 611 | </names> |
| 612 | </if> |
| 613 | <else> |
| 614 | <names variable="author"> |
| 615 | <name and="text" form="short" initialize="true"/> |
| 616 | <substitute> |
| 617 | <text macro="title-and-descriptions-short"/> |
| 618 | </substitute> |
| 619 | </names> |
| 620 | </else> |
| 621 | </choose> |
| 622 | <choose> |
| 623 | <if variable="genre"/> |
| 624 | <!-- recipient appears in the description if there is a `genre`; otherwise after `author` --> |
| 625 | <else-if position="first"> |
| 626 | <names variable="recipient"> |
| 627 | <label form="verb" suffix=" "/> |
| 628 | <name and="text" initialize="false"/> |
| 629 | </names> |
| 630 | </else-if> |
| 631 | <else> |
| 632 | <names variable="recipient"> |
| 633 | <label form="verb" suffix=" "/> |
| 634 | <name and="text" form="short" initialize="true"/> |
| 635 | </names> |
| 636 | </else> |
| 637 | </choose> |
| 638 | </if> |
| 639 | <!-- accessible `interview` or `personal_communication`: standard citation --> |
| 640 | <else-if variable="author recipient"> |
| 641 | <names variable="author"> |
| 642 | <name and="text" form="short" initialize="true"/> |
| 643 | </names> |
| 644 | <choose> |
| 645 | <if match="none" variable="genre"> |
| 646 | <names variable="recipient"> |
| 647 | <label form="verb" suffix=" "/> |
| 648 | <name and="text" form="short" initialize="true"/> |
| 649 | </names> |
| 650 | </if> |
| 651 | </choose> |
| 652 | </else-if> |
| 653 | <else> |
| 654 | <names variable="author"> |
| 655 | <name and="text" form="short" initialize="true"/> |
| 656 | <substitute> |
| 657 | <text macro="title-and-descriptions-short"/> |
| 658 | </substitute> |
| 659 | </names> |
| 660 | </else> |
| 661 | </choose> |
| 662 | </group> |
| 663 | </macro> |
| 664 | <macro name="author-title-substitute-bib"> |
| 665 | <choose> |
| 666 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 667 | <!-- If a review has no `reviewed-genre` or `reviewed-title`, assume that `title` contains the title of the reviewed work; the description provides it. --> |
| 668 | <choose> |
| 669 | <if variable="reviewed-genre title"> |
| 670 | <text macro="title-bib"/> |
| 671 | </if> |
| 672 | <else-if variable="reviewed-genre reviewed-title title"> |
| 673 | <text macro="title-bib"/> |
| 674 | </else-if> |
| 675 | <else> |
| 676 | <text macro="title-and-descriptions-bib"/> |
| 677 | </else> |
| 678 | </choose> |
| 679 | </if> |
| 680 | <else-if variable="title"> |
| 681 | <text macro="title-bib"/> |
| 682 | </else-if> |
| 683 | <else> |
| 684 | <!-- If an item has no `title`, substitute with descriptions. --> |
| 685 | <text macro="title-and-descriptions-bib"/> |
| 686 | </else> |
| 687 | </choose> |
| 688 | </macro> |
| 689 | <macro name="author-title-substitute-short"> |
| 690 | <choose> |
| 691 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 692 | <!-- If a review has no `reviewed-genre` or `reviewed-title`, assume that `title` contains the title of the reviewed work; the description provides it. --> |
| 693 | <choose> |
| 694 | <if variable="reviewed-genre title"> |
| 695 | <text macro="title-short"/> |
| 696 | </if> |
| 697 | <else-if variable="reviewed-genre reviewed-title title"> |
| 698 | <text macro="title-short"/> |
| 699 | </else-if> |
| 700 | <else> |
| 701 | <text macro="title-and-descriptions-short"/> |
| 702 | </else> |
| 703 | </choose> |
| 704 | </if> |
| 705 | <else-if variable="title"> |
| 706 | <text macro="title-short"/> |
| 707 | </else-if> |
| 708 | <else> |
| 709 | <!-- If an item has no `title`, substitute with descriptions and capitalize --> |
| 710 | <text macro="title-and-descriptions-bib"/> |
| 711 | </else> |
| 712 | </choose> |
| 713 | </macro> |
| 714 | <macro name="author-title-substitute-container"> |
| 715 | <choose> |
| 716 | <!-- no Chicago model for citing an anonymous article with an issue title in `volume-title` --> |
| 717 | <if variable="volume-title"/> |
| 718 | <else-if match="any" type="article-magazine article-newspaper"> |
| 719 | <!-- Anonymous magazine and newspaper articles substitute name of publication (CMOS18 14.87, 14.97) --> |
| 720 | <text macro="source-serial-name"/> |
| 721 | </else-if> |
| 722 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 723 | <!-- Publication name also substituted for unsigned reviews (CMOS18 14.102) --> |
| 724 | <text macro="source-serial-name"/> |
| 725 | </else-if> |
| 726 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 727 | <!-- Anonymous entries in reference works (CMOS18 14.130) --> |
| 728 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 729 | </else-if> |
| 730 | <else-if type="broadcast"> |
| 731 | <!-- TV broadcasts and podcasts (CMOS18 14.165, 14.168) --> |
| 732 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 733 | </else-if> |
| 734 | <else-if type="webpage"> |
| 735 | <!-- list a webpage under the website title if there is no owner or sponsor (CMOS18 14.104) --> |
| 736 | <choose> |
| 737 | <if variable="container-title-short"> |
| 738 | <text text-case="title" variable="container-title-short"/> |
| 739 | </if> |
| 740 | <else> |
| 741 | <text text-case="title" variable="container-title"/> |
| 742 | </else> |
| 743 | </choose> |
| 744 | </else-if> |
| 745 | </choose> |
| 746 | </macro> |
| 747 | <macro name="author-title-substitute-container-short"> |
| 748 | <choose> |
| 749 | <if match="any" type="article-magazine article-newspaper"> |
| 750 | <!-- Anonymous magazine/newspaper articles substitute name of publication (CMOS18 14.87, 14.97) --> |
| 751 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 752 | </if> |
| 753 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 754 | <!-- Publication name also substituted for unsigned reviews (CMOS18 14.102) --> |
| 755 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 756 | </else-if> |
| 757 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 758 | <!-- Anonymous entries in reference works (CMOS18 14.130) --> |
| 759 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 760 | </else-if> |
| 761 | <else-if type="broadcast"> |
| 762 | <!-- TV broadcasts and podcasts (CMOS18 14.165, 14.168) --> |
| 763 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 764 | </else-if> |
| 765 | <else-if type="webpage"> |
| 766 | <!-- list a webpage under the website title if there is no owner or sponsor (CMOS18 14.104) --> |
| 767 | <text form="short" text-case="title" variable="container-title"/> |
| 768 | </else-if> |
| 769 | </choose> |
| 770 | </macro> |
| 771 | <!-- 2. Date (CMOS18 13.102) --> |
| 772 | <macro name="date"> |
| 773 | <group delimiter="-"> |
| 774 | <choose> |
| 775 | <if variable="issued"> |
| 776 | <group delimiter=" "> |
| 777 | <!-- reprints and earlier editions may give original year in brackets (CMOS18 14.16) --> |
| 778 | <text macro="date-original-year" prefix="(" suffix=")"/> |
| 779 | <group> |
| 780 | <text macro="date-issued-year"/> |
| 781 | <text variable="year-suffix"/> |
| 782 | </group> |
| 783 | </group> |
| 784 | </if> |
| 785 | <else-if variable="event-date"> |
| 786 | <text macro="date-event-year"/> |
| 787 | </else-if> |
| 788 | <else-if variable="available-date"> |
| 789 | <date date-parts="year" form="numeric" variable="available-date"/> |
| 790 | </else-if> |
| 791 | <else-if variable="status"> |
| 792 | <!-- Print the status variable rather than use generic CSL terms (`in press`, etc.) --> |
| 793 | <text text-case="capitalize-first" variable="status"/> |
| 794 | <text variable="year-suffix"/> |
| 795 | </else-if> |
| 796 | <else-if type="collection"> |
| 797 | <!-- do not give n.d. for archival collections (CMOS18 14.128) --> |
| 798 | <text variable="year-suffix"/> |
| 799 | </else-if> |
| 800 | <else-if type="manuscript"> |
| 801 | <!-- do not give n.d. with a bare shelfmark --> |
| 802 | <choose> |
| 803 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"> |
| 804 | <text form="short" term="no date"/> |
| 805 | <text variable="year-suffix"/> |
| 806 | </if> |
| 807 | </choose> |
| 808 | </else-if> |
| 809 | <else> |
| 810 | <text form="short" term="no date"/> |
| 811 | <text variable="year-suffix"/> |
| 812 | </else> |
| 813 | </choose> |
| 814 | </group> |
| 815 | </macro> |
| 816 | <macro name="date-short"> |
| 817 | <group delimiter="-"> |
| 818 | <choose> |
| 819 | <if variable="issued"> |
| 820 | <group delimiter=" "> |
| 821 | <choose> |
| 822 | <if is-uncertain-date="original-date"> |
| 823 | <!-- Uncertain date already has square brackets --> |
| 824 | <text macro="date-original-year"/> |
| 825 | </if> |
| 826 | <else> |
| 827 | <text macro="date-original-year" prefix="[" suffix="]"/> |
| 828 | </else> |
| 829 | </choose> |
| 830 | <group> |
| 831 | <choose> |
| 832 | <if match="none" type="interview personal_communication"> |
| 833 | <text macro="date-issued-year"/> |
| 834 | </if> |
| 835 | <!-- accessible `interview` or `personal_communication` items appear in the bibliography; inaccessible items are in-text only --> |
| 836 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 837 | <text macro="date-issued-year"/> |
| 838 | </else-if> |
| 839 | <else> |
| 840 | <text macro="date-issued-full"/> |
| 841 | </else> |
| 842 | </choose> |
| 843 | <text variable="year-suffix"/> |
| 844 | </group> |
| 845 | </group> |
| 846 | </if> |
| 847 | <else-if variable="event-date"> |
| 848 | <text macro="date-event-year"/> |
| 849 | </else-if> |
| 850 | <else-if variable="available-date"> |
| 851 | <date date-parts="year" form="numeric" variable="available-date"/> |
| 852 | </else-if> |
| 853 | <else-if variable="status"> |
| 854 | <!-- Print the status variable rather than use generic CSL terms (`in press`, etc.) --> |
| 855 | <text text-case="lowercase" variable="status"/> |
| 856 | <text variable="year-suffix"/> |
| 857 | </else-if> |
| 858 | <else-if match="any" type="interview personal_communication"> |
| 859 | <choose> |
| 860 | <if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 861 | <!-- only give n.d. for accessible personal communication (CMOS18 14.111)--> |
| 862 | <text form="short" term="no date"/> |
| 863 | <text variable="year-suffix"/> |
| 864 | </if> |
| 865 | </choose> |
| 866 | </else-if> |
| 867 | <else-if match="any" type="classic collection entry entry-dictionary entry-encyclopedia"> |
| 868 | <!-- do not give n.d. for archival collections (CMOS18 14.128), `classic` (CMOS18 14.143), or reference entries (CMOS18 14.131) --> |
| 869 | <text variable="year-suffix"/> |
| 870 | </else-if> |
| 871 | <else-if type="manuscript"> |
| 872 | <!-- do not give n.d. with a bare shelfmark --> |
| 873 | <choose> |
| 874 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"> |
| 875 | <text form="short" term="no date"/> |
| 876 | <text variable="year-suffix"/> |
| 877 | </if> |
| 878 | </choose> |
| 879 | </else-if> |
| 880 | <else> |
| 881 | <text form="short" term="no date"/> |
| 882 | <text variable="year-suffix"/> |
| 883 | </else> |
| 884 | </choose> |
| 885 | </group> |
| 886 | </macro> |
| 887 | <macro name="date-sort-group"> |
| 888 | <!-- Sort items with and without dates (CMOS18 14.44): |
| 889 | |
| 890 | 1. items with dates (= 0) |
| 891 | 2. `no date` items (= 1) |
| 892 | 3. items with `status` (forthcoming, in press, etc.) (= 2) --> |
| 893 | <choose> |
| 894 | <if variable="issued"> |
| 895 | <text value="0"/> |
| 896 | </if> |
| 897 | <else-if variable="status"> |
| 898 | <text value="2"/> |
| 899 | </else-if> |
| 900 | <else> |
| 901 | <!-- n.d. --> |
| 902 | <text value="1"/> |
| 903 | </else> |
| 904 | </choose> |
| 905 | </macro> |
| 906 | <macro name="date-sort-year"> |
| 907 | <!-- while reference lists are to be sorted chronologically (CMOS18 13.112), it appears that only the year is to be taken into account (CMOS18 13.114) --> |
| 908 | <choose> |
| 909 | <if type="personal_communication" variable="event-date issued"> |
| 910 | <date date-parts="year" form="numeric" variable="event-date"/> |
| 911 | </if> |
| 912 | <else> |
| 913 | <text macro="date-issued-year"/> |
| 914 | </else> |
| 915 | </choose> |
| 916 | </macro> |
| 917 | <!-- Date elements --> |
| 918 | <macro name="date-event-full"> |
| 919 | <choose> |
| 920 | <if is-uncertain-date="issued"> |
| 921 | <!-- guessed-at date (CMOS18 14.44) --> |
| 922 | <date form="text" prefix="[" suffix="?]" variable="event-date"/> |
| 923 | </if> |
| 924 | <else> |
| 925 | <date form="text" variable="event-date"/> |
| 926 | </else> |
| 927 | </choose> |
| 928 | </macro> |
| 929 | <macro name="date-event-year"> |
| 930 | <choose> |
| 931 | <if is-uncertain-date="issued"> |
| 932 | <!-- guessed-at date (CMOS18 14.44) --> |
| 933 | <date date-parts="year" form="numeric" prefix="[" suffix="?]" variable="event-date"/> |
| 934 | </if> |
| 935 | <else> |
| 936 | <date date-parts="year" form="numeric" variable="event-date"/> |
| 937 | </else> |
| 938 | </choose> |
| 939 | </macro> |
| 940 | <macro name="date-issued-full"> |
| 941 | <choose> |
| 942 | <if is-uncertain-date="issued"> |
| 943 | <!-- guessed-at date (CMOS18 14.44) --> |
| 944 | <date form="text" prefix="[" suffix="?]" variable="issued"/> |
| 945 | </if> |
| 946 | <else> |
| 947 | <date form="text" variable="issued"/> |
| 948 | </else> |
| 949 | </choose> |
| 950 | </macro> |
| 951 | <macro name="date-issued-month"> |
| 952 | <date variable="issued"> |
| 953 | <date-part name="month"/> |
| 954 | </date> |
| 955 | </macro> |
| 956 | <macro name="date-issued-month-day"> |
| 957 | <date variable="issued"> |
| 958 | <date-part name="month"/> |
| 959 | <date-part name="day" prefix=" "/> |
| 960 | </date> |
| 961 | </macro> |
| 962 | <macro name="date-issued-year"> |
| 963 | <choose> |
| 964 | <if is-uncertain-date="issued"> |
| 965 | <!-- guessed-at date (CMOS18 14.44) --> |
| 966 | <date date-parts="year" form="numeric" prefix="[" suffix="?]" variable="issued"/> |
| 967 | </if> |
| 968 | <else> |
| 969 | <date date-parts="year" form="numeric" variable="issued"/> |
| 970 | </else> |
| 971 | </choose> |
| 972 | </macro> |
| 973 | <macro name="date-original-month"> |
| 974 | <date variable="original-date"> |
| 975 | <date-part name="month"/> |
| 976 | </date> |
| 977 | </macro> |
| 978 | <macro name="date-original-month-day"> |
| 979 | <date variable="original-date"> |
| 980 | <date-part name="month"/> |
| 981 | <date-part name="day" prefix=" "/> |
| 982 | </date> |
| 983 | </macro> |
| 984 | <macro name="date-original-year"> |
| 985 | <choose> |
| 986 | <if is-uncertain-date="original-date"> |
| 987 | <date date-parts="year" form="numeric" prefix="[" suffix="?]" variable="original-date"/> |
| 988 | </if> |
| 989 | <else> |
| 990 | <date date-parts="year" form="numeric" variable="original-date"/> |
| 991 | </else> |
| 992 | </choose> |
| 993 | </macro> |
| 994 | <!-- 3. Title and descriptions (CMOS18 13.87-101) --> |
| 995 | <macro name="title-and-descriptions-bib"> |
| 996 | <group delimiter=". "> |
| 997 | <choose> |
| 998 | <if variable="title"> |
| 999 | <text macro="title-bib"/> |
| 1000 | <text macro="description-bib"/> |
| 1001 | <text macro="identifier-bib"/> |
| 1002 | </if> |
| 1003 | <else-if match="any" type="bill report"> |
| 1004 | <!-- Bills, resolutions, and congressional reports substitute bill number if no title --> |
| 1005 | <!-- Congressional reports are indistinguishable from other reports --> |
| 1006 | <text macro="identifier-number-bib"/> |
| 1007 | <text macro="identifier-bib"/> |
| 1008 | <text macro="description-bib"/> |
| 1009 | </else-if> |
| 1010 | <else> |
| 1011 | <text macro="description-bib"/> |
| 1012 | <text macro="identifier-bib"/> |
| 1013 | </else> |
| 1014 | </choose> |
| 1015 | </group> |
| 1016 | </macro> |
| 1017 | <macro name="title-and-descriptions-short"> |
| 1018 | <choose> |
| 1019 | <if variable="title"> |
| 1020 | <text macro="title-short"/> |
| 1021 | </if> |
| 1022 | <else-if match="any" type="bill report"> |
| 1023 | <!-- Bills, resolutions, and congressional reports substitute bill number if no title --> |
| 1024 | <text macro="legal-identifier-bill-report"/> |
| 1025 | </else-if> |
| 1026 | <else> |
| 1027 | <text macro="description-short"/> |
| 1028 | </else> |
| 1029 | </choose> |
| 1030 | </macro> |
| 1031 | <macro name="title-and-source-bib"> |
| 1032 | <group delimiter=". "> |
| 1033 | <choose> |
| 1034 | <if type="broadcast" variable="container-title number title"> |
| 1035 | <!-- Bespoke `broadcast` format (CMOS18 14.165, 14.168) --> |
| 1036 | <text macro="source-monographic-title-specific-title-first"/> |
| 1037 | <group delimiter=", "> |
| 1038 | <text macro="identifier-number-bib"/> |
| 1039 | <text macro="title-bib"/> |
| 1040 | <text macro="description-bib"/> |
| 1041 | <text macro="source-monographic-identifier-contributors-bib"/> |
| 1042 | </group> |
| 1043 | <text macro="source-monographic-identifier-contributors-bib-container-author"/> |
| 1044 | <text macro="source-series-bib"/> |
| 1045 | <choose> |
| 1046 | <!-- show event information here only if not collapsed with `issued` (CMOS18 14.167) --> |
| 1047 | <if match="any" variable="event-date original-date original-publisher original-publisher-place publisher status"> |
| 1048 | <text macro="source-event-bib"/> |
| 1049 | </if> |
| 1050 | </choose> |
| 1051 | </if> |
| 1052 | <else-if type="chapter" variable="container-title genre"> |
| 1053 | <!-- 'introduction to', 'online appendix to' (CMOS18 14.12, 14.14) --> |
| 1054 | <group delimiter=" "> |
| 1055 | <text macro="title-and-descriptions-bib"/> |
| 1056 | <text macro="source-bib"/> |
| 1057 | </group> |
| 1058 | </else-if> |
| 1059 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 1060 | <!-- introduction to a special issue or supplement --> |
| 1061 | <group delimiter=" "> |
| 1062 | <text macro="title-and-descriptions-bib"/> |
| 1063 | <text macro="source-bib"/> |
| 1064 | </group> |
| 1065 | </else-if> |
| 1066 | <else> |
| 1067 | <text macro="title-and-descriptions-bib"/> |
| 1068 | <text macro="source-bib"/> |
| 1069 | </else> |
| 1070 | </choose> |
| 1071 | <group delimiter=", "> |
| 1072 | <choose> |
| 1073 | <!-- show event information here only if collapsed with `issued` (CMOS18 14.167) --> |
| 1074 | <if match="any" variable="event-date original-date original-publisher original-publisher-place publisher status"/> |
| 1075 | <!-- omit serial types --> |
| 1076 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"/> |
| 1077 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1078 | <!-- monographic types --> |
| 1079 | <text macro="source-event-bib"/> |
| 1080 | </else-if> |
| 1081 | <!-- omit serial types --> |
| 1082 | <else-if match="any" type="interview paper-conference"/> |
| 1083 | <else> |
| 1084 | <!-- monographic types --> |
| 1085 | <text macro="source-event-bib"/> |
| 1086 | </else> |
| 1087 | </choose> |
| 1088 | <text macro="source-monographic-publication-bib"/> |
| 1089 | </group> |
| 1090 | <text macro="source-medium-bib"/> |
| 1091 | <text macro="source-archive-bib"/> |
| 1092 | <text macro="source-date-accessed-DOI-URL-bib"/> |
| 1093 | </group> |
| 1094 | </macro> |
| 1095 | <!-- 3.1. Title --> |
| 1096 | <macro name="title-bib"> |
| 1097 | <choose> |
| 1098 | <if match="any" type="post webpage"> |
| 1099 | <!-- part number/title always at the analytic level --> |
| 1100 | <text macro="title-and-part-filter-review-bib"/> |
| 1101 | </if> |
| 1102 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1103 | <!-- serial types --> |
| 1104 | <text macro="title-and-part-filter-review-bib"/> |
| 1105 | </else-if> |
| 1106 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1107 | <!-- monographic types --> |
| 1108 | <text macro="title-monographic-bib-specific-title-first"/> |
| 1109 | </else-if> |
| 1110 | <else-if match="any" type="interview paper-conference"> |
| 1111 | <!-- serial types --> |
| 1112 | <text macro="title-and-part-filter-review-bib"/> |
| 1113 | </else-if> |
| 1114 | <else> |
| 1115 | <text macro="title-monographic-bib-specific-title-first"/> |
| 1116 | </else> |
| 1117 | </choose> |
| 1118 | </macro> |
| 1119 | <macro name="title-short"> |
| 1120 | <choose> |
| 1121 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1122 | <!-- If a review has no `reviewed-title`, assume that `title` contains the title of the reviewed work; the description provides it. --> |
| 1123 | <choose> |
| 1124 | <if variable="reviewed-genre title"> |
| 1125 | <!-- Quotes, title case --> |
| 1126 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1127 | </if> |
| 1128 | <else-if variable="reviewed-genre reviewed-title title"> |
| 1129 | <!-- Quotes, title case --> |
| 1130 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1131 | </else-if> |
| 1132 | <else> |
| 1133 | <text macro="description-short"/> |
| 1134 | </else> |
| 1135 | </choose> |
| 1136 | </if> |
| 1137 | <else> |
| 1138 | <text macro="title-primary-short"/> |
| 1139 | </else> |
| 1140 | </choose> |
| 1141 | </macro> |
| 1142 | <!-- Title elements --> |
| 1143 | <macro name="title-and-part-filter-review-bib"> |
| 1144 | <choose> |
| 1145 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1146 | <!-- `title` is only the review title if there is a separate `reviewed-genre` or `reviewed-title`; otherwise, it is the title of the reviewed work, printed in the description --> |
| 1147 | <choose> |
| 1148 | <if match="any" variable="reviewed-genre reviewed-title"> |
| 1149 | <text macro="title-and-part-title-bib"/> |
| 1150 | </if> |
| 1151 | </choose> |
| 1152 | </if> |
| 1153 | <else> |
| 1154 | <text macro="title-and-part-title-bib"/> |
| 1155 | </else> |
| 1156 | </choose> |
| 1157 | </macro> |
| 1158 | <macro name="title-and-part-title-bib"> |
| 1159 | <group delimiter=". "> |
| 1160 | <text macro="title-primary"/> |
| 1161 | <group delimiter=", "> |
| 1162 | <text macro="label-part-number-capitalized"/> |
| 1163 | <text macro="title-part"/> |
| 1164 | </group> |
| 1165 | </group> |
| 1166 | </macro> |
| 1167 | <macro name="title-monographic-bib-specific-title-first"> |
| 1168 | <!-- Use with author-date or notes and bibliography leading with volume title (CMOS18 14.21). --> |
| 1169 | <!-- For monographic items, assume `part-number` and `part-title` refer to the book/volume. --> |
| 1170 | <choose> |
| 1171 | <if variable="container-title"> |
| 1172 | <text macro="title-primary"/> |
| 1173 | </if> |
| 1174 | <!-- For monographic items without `container-title`, bibliography entries list `part-title` or `volume-title` first if available --> |
| 1175 | <else-if variable="part-title"> |
| 1176 | <text macro="title-part"/> |
| 1177 | </else-if> |
| 1178 | <else-if variable="volume-title"> |
| 1179 | <text macro="title-volume"/> |
| 1180 | </else-if> |
| 1181 | <else> |
| 1182 | <text macro="title-primary"/> |
| 1183 | </else> |
| 1184 | </choose> |
| 1185 | </macro> |
| 1186 | <macro name="title-part"> |
| 1187 | <choose> |
| 1188 | <if type="patent"> |
| 1189 | <!-- No italics or quotes, sentence case --> |
| 1190 | <text form="short" text-case="capitalize-first" variable="part-title"/> |
| 1191 | </if> |
| 1192 | <else-if match="any" type="bill collection legislation regulation treaty"> |
| 1193 | <!-- No italics or quotes, title case --> |
| 1194 | <text text-case="title" variable="part-title"/> |
| 1195 | </else-if> |
| 1196 | <else-if type="legal_case"> |
| 1197 | <!-- Italicized, sentence case --> |
| 1198 | <text font-style="italic" variable="part-title"/> |
| 1199 | </else-if> |
| 1200 | <else-if match="any" type="book classic graphic hearing map"> |
| 1201 | <!-- Italicized, title case (regardless of `container-title`) --> |
| 1202 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1203 | </else-if> |
| 1204 | <else-if type="entry-encyclopedia" variable="author container-title"> |
| 1205 | <!-- Signed encyclopedia entry in quotes, title case (CMOS18 14.132) --> |
| 1206 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1207 | </else-if> |
| 1208 | <else-if type="entry-dictionary" variable="container-title"> |
| 1209 | <!-- Quotes, sentence case --> |
| 1210 | <text quotes="true" variable="part-title"/> |
| 1211 | </else-if> |
| 1212 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 1213 | <!-- Quotes, sentence case --> |
| 1214 | <text quotes="true" variable="part-title"/> |
| 1215 | </else-if> |
| 1216 | <else-if type="post"> |
| 1217 | <!-- Quotes, sentence case --> |
| 1218 | <text quotes="true" variable="part-title"/> |
| 1219 | </else-if> |
| 1220 | <else-if type="webpage"> |
| 1221 | <!-- Quotes, title case --> |
| 1222 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1223 | </else-if> |
| 1224 | <!-- Other types are formatted based on presence of `container-title` --> |
| 1225 | <else-if variable="container-title"> |
| 1226 | <choose> |
| 1227 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1228 | <!-- serial types --> |
| 1229 | <!-- Quotes, title case --> |
| 1230 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1231 | </if> |
| 1232 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1233 | <!-- monographic types --> |
| 1234 | <!-- Italics, title case --> |
| 1235 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1236 | </else-if> |
| 1237 | <else-if match="any" type="interview paper-conference"> |
| 1238 | <!-- serial types --> |
| 1239 | <!-- Quotes, title case --> |
| 1240 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1241 | </else-if> |
| 1242 | <else> |
| 1243 | <!-- monographic types --> |
| 1244 | <!-- Italics, title case --> |
| 1245 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1246 | </else> |
| 1247 | </choose> |
| 1248 | </else-if> |
| 1249 | <else-if match="any" type="article dataset document interview manuscript paper-conference personal_communication speech thesis webpage"> |
| 1250 | <!-- Container-like but not necessarily with `container-title` --> |
| 1251 | <!-- Quotes, title case --> |
| 1252 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1253 | </else-if> |
| 1254 | <else> |
| 1255 | <!-- Italicized, title case (default) --> |
| 1256 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1257 | </else> |
| 1258 | </choose> |
| 1259 | </macro> |
| 1260 | <macro name="title-primary"> |
| 1261 | <choose> |
| 1262 | <if type="patent"> |
| 1263 | <!-- No italics or quotes, sentence case --> |
| 1264 | <text form="short" text-case="capitalize-first" variable="title"/> |
| 1265 | </if> |
| 1266 | <else-if match="any" type="bill collection legislation regulation treaty"> |
| 1267 | <!-- No italics or quotes, title case --> |
| 1268 | <text text-case="title" variable="title"/> |
| 1269 | </else-if> |
| 1270 | <else-if type="legal_case"> |
| 1271 | <!-- Italicized, sentence case --> |
| 1272 | <text font-style="italic" variable="title"/> |
| 1273 | </else-if> |
| 1274 | <else-if match="any" type="book classic graphic hearing map"> |
| 1275 | <!-- Italicized, title case (regardless of `container-title`) --> |
| 1276 | <text font-style="italic" text-case="title" variable="title"/> |
| 1277 | </else-if> |
| 1278 | <else-if type="entry-encyclopedia" variable="author container-title"> |
| 1279 | <!-- Signed encyclopedia entry in quotes, title case (CMOS18 14.132) --> |
| 1280 | <text quotes="true" text-case="title" variable="title"/> |
| 1281 | </else-if> |
| 1282 | <else-if type="entry-dictionary" variable="container-title"> |
| 1283 | <!-- Quotes, sentence case --> |
| 1284 | <text quotes="true" variable="title"/> |
| 1285 | </else-if> |
| 1286 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 1287 | <!-- Quotes, sentence case --> |
| 1288 | <text quotes="true" variable="title"/> |
| 1289 | </else-if> |
| 1290 | <else-if type="post"> |
| 1291 | <!-- Quotes, sentence case --> |
| 1292 | <text quotes="true" variable="title"/> |
| 1293 | </else-if> |
| 1294 | <!-- Other types are formatted based on presence of `container-title` --> |
| 1295 | <else-if variable="container-title"> |
| 1296 | <!-- Quotes, title case --> |
| 1297 | <text quotes="true" text-case="title" variable="title"/> |
| 1298 | </else-if> |
| 1299 | <else-if match="any" type="article dataset document interview manuscript paper-conference personal_communication speech thesis webpage"> |
| 1300 | <!-- Container-like but not necessarily with `container-title` --> |
| 1301 | <!-- Quotes, title case --> |
| 1302 | <text quotes="true" text-case="title" variable="title"/> |
| 1303 | </else-if> |
| 1304 | <else> |
| 1305 | <!-- Italicized, title case (default) --> |
| 1306 | <text font-style="italic" text-case="title" variable="title"/> |
| 1307 | </else> |
| 1308 | </choose> |
| 1309 | </macro> |
| 1310 | <macro name="title-primary-short"> |
| 1311 | <choose> |
| 1312 | <if type="patent"> |
| 1313 | <!-- No italics or quotes, sentence case --> |
| 1314 | <text form="short" text-case="capitalize-first" variable="title"/> |
| 1315 | </if> |
| 1316 | <else-if match="any" type="bill collection legislation regulation treaty"> |
| 1317 | <!-- No italics or quotes, title case --> |
| 1318 | <text form="short" text-case="title" variable="title"/> |
| 1319 | </else-if> |
| 1320 | <else-if type="legal_case"> |
| 1321 | <!-- Italicized, sentence case --> |
| 1322 | <text font-style="italic" form="short" variable="title"/> |
| 1323 | </else-if> |
| 1324 | <else-if match="any" type="book classic graphic hearing map"> |
| 1325 | <!-- Italicized, title case (regardless of `container-title`) --> |
| 1326 | <text font-style="italic" form="short" text-case="title" variable="title"/> |
| 1327 | </else-if> |
| 1328 | <else-if type="entry-encyclopedia" variable="author container-title"> |
| 1329 | <!-- Signed encyclopedia entry in quotes, title case (CMOS18 14.132) --> |
| 1330 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1331 | </else-if> |
| 1332 | <else-if type="entry-dictionary" variable="container-title"> |
| 1333 | <!-- Quotes, sentence case --> |
| 1334 | <text form="short" quotes="true" variable="title"/> |
| 1335 | </else-if> |
| 1336 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 1337 | <!-- Quotes, sentence case --> |
| 1338 | <text form="short" quotes="true" variable="title"/> |
| 1339 | </else-if> |
| 1340 | <else-if type="post"> |
| 1341 | <!-- Quotes, sentence case --> |
| 1342 | <text form="short" quotes="true" variable="title"/> |
| 1343 | </else-if> |
| 1344 | <!-- Other types are formatted based on presence of `container-title` --> |
| 1345 | <else-if variable="container-title"> |
| 1346 | <!-- Quotes, title case --> |
| 1347 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1348 | </else-if> |
| 1349 | <else-if match="any" type="article dataset document interview manuscript paper-conference personal_communication speech thesis webpage"> |
| 1350 | <!-- Container-like but not necessarily with `container-title` --> |
| 1351 | <!-- Quotes, title case --> |
| 1352 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1353 | </else-if> |
| 1354 | <else> |
| 1355 | <!-- Italicized, title case (default) --> |
| 1356 | <text font-style="italic" form="short" text-case="title" variable="title"/> |
| 1357 | </else> |
| 1358 | </choose> |
| 1359 | </macro> |
| 1360 | <macro name="title-volume"> |
| 1361 | <choose> |
| 1362 | <if type="manuscript"> |
| 1363 | <!-- Quotes, title case --> |
| 1364 | <text quotes="true" text-case="title" variable="volume-title"/> |
| 1365 | </if> |
| 1366 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1367 | <!-- serial types --> |
| 1368 | <!-- Quotes, title case --> |
| 1369 | <text quotes="true" text-case="title" variable="volume-title"/> |
| 1370 | </else-if> |
| 1371 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1372 | <!-- monographic types --> |
| 1373 | <!-- Italics, title case --> |
| 1374 | <text font-style="italic" text-case="title" variable="volume-title"/> |
| 1375 | </else-if> |
| 1376 | <else-if match="any" type="interview paper-conference"> |
| 1377 | <!-- serial types --> |
| 1378 | <!-- Quotes, title case --> |
| 1379 | <text quotes="true" text-case="title" variable="volume-title"/> |
| 1380 | </else-if> |
| 1381 | <else> |
| 1382 | <!-- monographic types --> |
| 1383 | <!-- Italics, title case --> |
| 1384 | <text font-style="italic" text-case="title" variable="volume-title"/> |
| 1385 | </else> |
| 1386 | </choose> |
| 1387 | </macro> |
| 1388 | <!-- 3.2. Description --> |
| 1389 | <macro name="description-bib"> |
| 1390 | <choose> |
| 1391 | <if match="any" type="interview" variable="interviewer"> |
| 1392 | <text macro="description-interview-bib"/> |
| 1393 | </if> |
| 1394 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1395 | <text macro="description-review-bib"/> |
| 1396 | </else-if> |
| 1397 | <else-if type="personal_communication"> |
| 1398 | <text macro="description-letter-bib"/> |
| 1399 | </else-if> |
| 1400 | <else-if type="song" variable="composer"> |
| 1401 | <text macro="description-song-bib"/> |
| 1402 | </else-if> |
| 1403 | <!-- thesis type appears with university name (CMOS18 14.113) --> |
| 1404 | <else-if type="thesis"/> |
| 1405 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1406 | <!-- serial types --> |
| 1407 | <text macro="description-serial-bib"/> |
| 1408 | </else-if> |
| 1409 | <else-if type="paper-conference"> |
| 1410 | <text macro="description-paper-conference-bib"/> |
| 1411 | </else-if> |
| 1412 | <else-if match="none" variable="container-title"> |
| 1413 | <text macro="description-format-bib"/> |
| 1414 | </else-if> |
| 1415 | <!-- For conference presentations/performances/events, chapters in reports/standards/generic documents, software, place description within the source element --> |
| 1416 | <else-if match="any" type="document report software standard"/> |
| 1417 | <else-if match="any" type="event paper-conference performance speech"> |
| 1418 | <choose> |
| 1419 | <if match="any" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 1420 | <text macro="description-format-bib"/> |
| 1421 | </if> |
| 1422 | </choose> |
| 1423 | </else-if> |
| 1424 | <else> |
| 1425 | <text macro="description-format-bib"/> |
| 1426 | </else> |
| 1427 | </choose> |
| 1428 | </macro> |
| 1429 | <macro name="description-short"> |
| 1430 | <choose> |
| 1431 | <if match="any" type="interview" variable="interviewer"> |
| 1432 | <choose> |
| 1433 | <if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 1434 | <text macro="description-interview-short"/> |
| 1435 | </if> |
| 1436 | <else> |
| 1437 | <!-- for an inaccessible `interview`, give a full in-text description at the first citation --> |
| 1438 | <choose> |
| 1439 | <if position="first"> |
| 1440 | <text macro="description-interview-note"/> |
| 1441 | </if> |
| 1442 | <else> |
| 1443 | <text macro="description-interview-short"/> |
| 1444 | </else> |
| 1445 | </choose> |
| 1446 | </else> |
| 1447 | </choose> |
| 1448 | </if> |
| 1449 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1450 | <text macro="description-review-short"/> |
| 1451 | </else-if> |
| 1452 | <else-if type="personal_communication"> |
| 1453 | <text macro="description-letter-short"/> |
| 1454 | </else-if> |
| 1455 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1456 | <!-- serial types --> |
| 1457 | <text macro="description-serial-short"/> |
| 1458 | </else-if> |
| 1459 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1460 | <!-- monographic types --> |
| 1461 | <text macro="description-format-short"/> |
| 1462 | </else-if> |
| 1463 | <else-if type="paper-conference"> |
| 1464 | <!-- serial `paper-conference` --> |
| 1465 | <text macro="description-serial-short"/> |
| 1466 | </else-if> |
| 1467 | <else> |
| 1468 | <!-- monographic types --> |
| 1469 | <text macro="description-format-short"/> |
| 1470 | </else> |
| 1471 | </choose> |
| 1472 | </macro> |
| 1473 | <!-- Description elements --> |
| 1474 | <macro name="description-format-bib"> |
| 1475 | <choose> |
| 1476 | <if variable="genre number"/> |
| 1477 | <else-if variable="genre"> |
| 1478 | <text text-case="capitalize-first" variable="genre"/> |
| 1479 | </else-if> |
| 1480 | <!-- generic labels if unpublished --> |
| 1481 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"/> |
| 1482 | <else-if type="manuscript"> |
| 1483 | <!-- 'unpublished manuscript' if no `genre` (CMOS18 14.114) --> |
| 1484 | <text term="manuscript" text-case="capitalize-first"/> |
| 1485 | </else-if> |
| 1486 | <else-if type="personal_communication"> |
| 1487 | <!-- 'personal communication' if no `genre` (CMOS18 14.111) --> |
| 1488 | <text term="personal-communication" text-case="capitalize-first"/> |
| 1489 | </else-if> |
| 1490 | </choose> |
| 1491 | </macro> |
| 1492 | <macro name="description-format-note"> |
| 1493 | <choose> |
| 1494 | <if variable="genre number"/> |
| 1495 | <else-if variable="genre"> |
| 1496 | <text variable="genre"/> |
| 1497 | </else-if> |
| 1498 | <!-- generic labels if unpublished --> |
| 1499 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"/> |
| 1500 | <else-if type="manuscript"> |
| 1501 | <!-- 'unpublished manuscript' if no `genre` (CMOS18 14.114) --> |
| 1502 | <text term="manuscript"/> |
| 1503 | </else-if> |
| 1504 | <else-if type="personal_communication"> |
| 1505 | <!-- 'personal communication' if no `genre` (CMOS18 14.111) --> |
| 1506 | <text term="personal-communication"/> |
| 1507 | </else-if> |
| 1508 | </choose> |
| 1509 | </macro> |
| 1510 | <macro name="description-format-short"> |
| 1511 | <group delimiter=" "> |
| 1512 | <choose> |
| 1513 | <if type="chapter" variable="container-title genre"> |
| 1514 | <!-- untitled introductions: cf. review model, which includes a title (CMOS18 14.101) --> |
| 1515 | <text form="short" variable="genre"/> |
| 1516 | <choose> |
| 1517 | <if match="none" position="ibid ibid-with-locator"> |
| 1518 | <!-- CMOS team suggests leaving out title in repeated references --> |
| 1519 | <text macro="source-monographic-preposition-note"/> |
| 1520 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 1521 | </if> |
| 1522 | </choose> |
| 1523 | </if> |
| 1524 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 1525 | <!-- untitled introduction to a special issue or supplement --> |
| 1526 | <text form="short" variable="genre"/> |
| 1527 | <choose> |
| 1528 | <if match="none" position="ibid ibid-with-locator"> |
| 1529 | <text macro="source-monographic-preposition-note"/> |
| 1530 | <text form="short" quotes="true" text-case="title" variable="volume-title"/> |
| 1531 | </if> |
| 1532 | </choose> |
| 1533 | </else-if> |
| 1534 | <else-if variable="genre"> |
| 1535 | <text form="short" variable="genre"/> |
| 1536 | </else-if> |
| 1537 | <else-if variable="medium"> |
| 1538 | <text form="short" variable="medium"/> |
| 1539 | </else-if> |
| 1540 | <else-if variable="chapter-number container-title"> |
| 1541 | <text macro="source-monographic-preposition-note"/> |
| 1542 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 1543 | </else-if> |
| 1544 | <else-if variable="chapter-number"> |
| 1545 | <text macro="label-chapter-number"/> |
| 1546 | </else-if> |
| 1547 | <!-- generic labels if unpublished --> |
| 1548 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"/> |
| 1549 | <else-if type="manuscript"> |
| 1550 | <!-- 'unpublished manuscript' if no `genre` (CMOS18 14.114) --> |
| 1551 | <text term="manuscript"/> |
| 1552 | </else-if> |
| 1553 | <else-if type="personal_communication"> |
| 1554 | <!-- 'pers. comm.' if no `genre` (CMOS18 14.111) --> |
| 1555 | <text form="short" term="personal-communication"/> |
| 1556 | </else-if> |
| 1557 | </choose> |
| 1558 | </group> |
| 1559 | </macro> |
| 1560 | <macro name="description-interview-bib"> |
| 1561 | <group delimiter=", "> |
| 1562 | <choose> |
| 1563 | <if variable="genre number"> |
| 1564 | <!-- `genre` printed with `number` --> |
| 1565 | <names variable="interviewer"> |
| 1566 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1567 | <name and="text" initialize="false"/> |
| 1568 | </names> |
| 1569 | </if> |
| 1570 | <else-if variable="genre"> |
| 1571 | <group delimiter=" "> |
| 1572 | <text text-case="capitalize-first" variable="genre"/> |
| 1573 | <group delimiter=" "> |
| 1574 | <text form="verb" term="container-author"/> |
| 1575 | <names variable="interviewer"> |
| 1576 | <name and="text" initialize="false"/> |
| 1577 | </names> |
| 1578 | </group> |
| 1579 | </group> |
| 1580 | </else-if> |
| 1581 | <else-if variable="interviewer"> |
| 1582 | <names variable="interviewer"> |
| 1583 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1584 | <name and="text" initialize="false"/> |
| 1585 | </names> |
| 1586 | </else-if> |
| 1587 | <else> |
| 1588 | <text macro="description-format-bib"/> |
| 1589 | </else> |
| 1590 | </choose> |
| 1591 | <text macro="source-event-place-first"/> |
| 1592 | </group> |
| 1593 | </macro> |
| 1594 | <macro name="description-interview-note"> |
| 1595 | <group delimiter=", "> |
| 1596 | <choose> |
| 1597 | <if variable="genre number"> |
| 1598 | <!-- `genre` printed with `number` --> |
| 1599 | <names variable="interviewer"> |
| 1600 | <label form="verb" suffix=" "/> |
| 1601 | <name and="text" initialize="false"/> |
| 1602 | </names> |
| 1603 | </if> |
| 1604 | <else-if variable="genre"> |
| 1605 | <group delimiter=" "> |
| 1606 | <text variable="genre"/> |
| 1607 | <group delimiter=" "> |
| 1608 | <text form="verb" term="container-author"/> |
| 1609 | <names variable="interviewer"> |
| 1610 | <name and="text" initialize="false"/> |
| 1611 | </names> |
| 1612 | </group> |
| 1613 | </group> |
| 1614 | </else-if> |
| 1615 | <else-if variable="interviewer"> |
| 1616 | <names variable="interviewer"> |
| 1617 | <label form="verb" suffix=" "/> |
| 1618 | <name and="text" initialize="false"/> |
| 1619 | </names> |
| 1620 | </else-if> |
| 1621 | <else> |
| 1622 | <text macro="description-format-note"/> |
| 1623 | </else> |
| 1624 | </choose> |
| 1625 | <text macro="source-event-place-first"/> |
| 1626 | </group> |
| 1627 | </macro> |
| 1628 | <macro name="description-interview-short"> |
| 1629 | <choose> |
| 1630 | <if disambiguate="true"> |
| 1631 | <names variable="interviewer"> |
| 1632 | <label form="verb" suffix=" "/> |
| 1633 | <name and="text" form="short" initialize="true"/> |
| 1634 | <substitute> |
| 1635 | <text macro="description-format-short"/> |
| 1636 | </substitute> |
| 1637 | </names> |
| 1638 | </if> |
| 1639 | <else-if match="any" variable="genre medium"> |
| 1640 | <choose> |
| 1641 | <if match="any" variable="author chair collection-editor compiler composer curator director editor editor-translator editorial-director executive-producer guest host illustrator organizer producer series-creator translator"> |
| 1642 | <text macro="description-format-short"/> |
| 1643 | </if> |
| 1644 | <else> |
| 1645 | <!-- capitalize if no author or title --> |
| 1646 | <text macro="description-format-bib"/> |
| 1647 | </else> |
| 1648 | </choose> |
| 1649 | </else-if> |
| 1650 | <else> |
| 1651 | <!-- generic description for an unpublished interview (CMOS18 14.108) --> |
| 1652 | <text term="interview"/> |
| 1653 | </else> |
| 1654 | </choose> |
| 1655 | </macro> |
| 1656 | <macro name="description-letter-bib"> |
| 1657 | <choose> |
| 1658 | <if variable="recipient"> |
| 1659 | <group delimiter=", "> |
| 1660 | <choose> |
| 1661 | <if variable="genre number"> |
| 1662 | <!-- `genre` appears with `number` --> |
| 1663 | <names variable="recipient"> |
| 1664 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1665 | <name and="text" initialize="false"/> |
| 1666 | </names> |
| 1667 | </if> |
| 1668 | <else-if variable="genre"> |
| 1669 | <group delimiter=" "> |
| 1670 | <text macro="description-format-bib"/> |
| 1671 | <names variable="recipient"> |
| 1672 | <label form="verb" suffix=" "/> |
| 1673 | <name and="text" initialize="false"/> |
| 1674 | </names> |
| 1675 | </group> |
| 1676 | </else-if> |
| 1677 | <else> |
| 1678 | <names variable="recipient"> |
| 1679 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1680 | <name and="text" initialize="false"/> |
| 1681 | </names> |
| 1682 | </else> |
| 1683 | </choose> |
| 1684 | <text variable="event-place"/> |
| 1685 | <text macro="date-event-full"/> |
| 1686 | </group> |
| 1687 | </if> |
| 1688 | <else> |
| 1689 | <text macro="description-format-bib"/> |
| 1690 | </else> |
| 1691 | </choose> |
| 1692 | </macro> |
| 1693 | <macro name="description-letter-short"> |
| 1694 | <!-- shortened notes ideally give author, recipient, place, and date (CMOS18 14.13) --> |
| 1695 | <group delimiter=", "> |
| 1696 | <choose> |
| 1697 | <if variable="genre recipient"> |
| 1698 | <group delimiter=" "> |
| 1699 | <text macro="description-format-short"/> |
| 1700 | <names variable="recipient"> |
| 1701 | <label form="verb" suffix=" "/> |
| 1702 | <name and="text" form="short" initialize="true"/> |
| 1703 | </names> |
| 1704 | </group> |
| 1705 | </if> |
| 1706 | <else> |
| 1707 | <text macro="description-format-short"/> |
| 1708 | </else> |
| 1709 | </choose> |
| 1710 | <text variable="event-place"/> |
| 1711 | <choose> |
| 1712 | <if variable="event-date"> |
| 1713 | <text macro="date-event-full"/> |
| 1714 | </if> |
| 1715 | <else> |
| 1716 | <text macro="date-issued-full"/> |
| 1717 | </else> |
| 1718 | </choose> |
| 1719 | </group> |
| 1720 | </macro> |
| 1721 | <macro name="description-paper-conference-bib"> |
| 1722 | <choose> |
| 1723 | <if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1724 | <!-- monographic types --> |
| 1725 | <text macro="description-format-bib"/> |
| 1726 | </if> |
| 1727 | <else> |
| 1728 | <!-- serial types --> |
| 1729 | <group delimiter=". "> |
| 1730 | <text macro="description-serial-bib"/> |
| 1731 | <text macro="source-event-bib"/> |
| 1732 | </group> |
| 1733 | </else> |
| 1734 | </choose> |
| 1735 | </macro> |
| 1736 | <macro name="description-review-bib"> |
| 1737 | <!-- Reviewed item --> |
| 1738 | <group delimiter=". "> |
| 1739 | <group delimiter=", "> |
| 1740 | <group delimiter=" "> |
| 1741 | <text macro="description-review-genre-bib"/> |
| 1742 | <text macro="description-review-title"/> |
| 1743 | </group> |
| 1744 | <choose> |
| 1745 | <if variable="reviewed-genre reviewed-title title"> |
| 1746 | <names variable="reviewed-author"> |
| 1747 | <label form="verb" suffix=" "/> |
| 1748 | <name and="text" initialize="false"/> |
| 1749 | </names> |
| 1750 | </if> |
| 1751 | <else-if variable="reviewed-genre"/> |
| 1752 | <else> |
| 1753 | <names variable="reviewed-author"> |
| 1754 | <label form="verb" suffix=" "/> |
| 1755 | <name and="text" initialize="false"/> |
| 1756 | </names> |
| 1757 | </else> |
| 1758 | </choose> |
| 1759 | <text macro="source-event-place-first"/> |
| 1760 | </group> |
| 1761 | <text macro="label-section-capitalized"/> |
| 1762 | </group> |
| 1763 | </macro> |
| 1764 | <macro name="description-review-genre-bib"> |
| 1765 | <choose> |
| 1766 | <if variable="reviewed-genre"> |
| 1767 | <group delimiter=" "> |
| 1768 | <text macro="description-review-term-unsigned-bib"/> |
| 1769 | <text variable="reviewed-genre"/> |
| 1770 | <choose> |
| 1771 | <if match="none" variable="reviewed-title"> |
| 1772 | <names variable="reviewed-author"> |
| 1773 | <label form="verb" suffix=" "/> |
| 1774 | <name and="text" initialize="false"/> |
| 1775 | </names> |
| 1776 | </if> |
| 1777 | </choose> |
| 1778 | </group> |
| 1779 | </if> |
| 1780 | <else-if variable="number"> |
| 1781 | <text macro="description-review-term-unsigned-bib"/> |
| 1782 | </else-if> |
| 1783 | <!-- If no `reviewed-genre`, assume that `genre` is entered as 'Review of the book' or similar --> |
| 1784 | <else-if variable="genre"> |
| 1785 | <text text-case="capitalize-first" variable="genre"/> |
| 1786 | </else-if> |
| 1787 | <else> |
| 1788 | <text macro="description-review-term-unsigned-bib"/> |
| 1789 | </else> |
| 1790 | </choose> |
| 1791 | </macro> |
| 1792 | <macro name="description-review-short"> |
| 1793 | <choose> |
| 1794 | <if match="any" position="ibid ibid-with-locator"> |
| 1795 | <text term="review"/> |
| 1796 | </if> |
| 1797 | <else> |
| 1798 | <group delimiter=" "> |
| 1799 | <text term="review-of"/> |
| 1800 | <text macro="description-review-title-short"/> |
| 1801 | </group> |
| 1802 | </else> |
| 1803 | </choose> |
| 1804 | </macro> |
| 1805 | <macro name="description-review-term-unsigned-bib"> |
| 1806 | <!-- Anonymous reviews appear as 'unsigned' (CMOS18 14.102) --> |
| 1807 | <choose> |
| 1808 | <if match="any" variable="author chair collection-editor compiler composer curator director editor editor-translator editorial-director executive-producer guest host illustrator organizer producer series-creator translator"> |
| 1809 | <text term="review-of" text-case="capitalize-first"/> |
| 1810 | </if> |
| 1811 | <else> |
| 1812 | <group delimiter=" "> |
| 1813 | <text term="anonymous" text-case="capitalize-first"/> |
| 1814 | <text term="review-of"/> |
| 1815 | </group> |
| 1816 | </else> |
| 1817 | </choose> |
| 1818 | </macro> |
| 1819 | <macro name="description-review-title"> |
| 1820 | <choose> |
| 1821 | <if match="any" variable="reviewed-genre reviewed-title"> |
| 1822 | <!-- Not possible to distinguish TV series episode from other reviewed works without a reviewed source title --> |
| 1823 | <!-- Adapt for `reviewed-container-title` or similar if it becomes available --> |
| 1824 | <text font-style="italic" text-case="title" variable="reviewed-title"/> |
| 1825 | </if> |
| 1826 | <else> |
| 1827 | <!-- Assume title is title of reviewed work --> |
| 1828 | <text font-style="italic" text-case="title" variable="title"/> |
| 1829 | </else> |
| 1830 | </choose> |
| 1831 | </macro> |
| 1832 | <macro name="description-review-title-short"> |
| 1833 | <choose> |
| 1834 | <if match="any" variable="reviewed-genre reviewed-title"> |
| 1835 | <!-- Not possible to distinguish TV series episode from other reviewed works without a reviewed source title --> |
| 1836 | <!-- Adapt for `reviewed-container-title` or similar if it becomes available --> |
| 1837 | <text font-style="italic" form="short" text-case="title" variable="reviewed-title"/> |
| 1838 | </if> |
| 1839 | <else> |
| 1840 | <!-- Assume title is title of reviewed work --> |
| 1841 | <text font-style="italic" form="short" text-case="title" variable="title"/> |
| 1842 | </else> |
| 1843 | </choose> |
| 1844 | </macro> |
| 1845 | <macro name="description-serial-bib"> |
| 1846 | <group delimiter=". "> |
| 1847 | <text macro="description-format-bib"/> |
| 1848 | <!-- `section` provides magazine departments (CMOS18 14.88) and newspaper column names (CMOS18 14.93) --> |
| 1849 | <text macro="label-section-capitalized"/> |
| 1850 | </group> |
| 1851 | </macro> |
| 1852 | <macro name="description-serial-short"> |
| 1853 | <choose> |
| 1854 | <if variable="title"/> |
| 1855 | <else-if variable="genre"> |
| 1856 | <text macro="description-format-short"/> |
| 1857 | </else-if> |
| 1858 | <else> |
| 1859 | <text form="short" text-case="title" variable="section"/> |
| 1860 | </else> |
| 1861 | </choose> |
| 1862 | </macro> |
| 1863 | <macro name="description-song-bib"> |
| 1864 | <!-- Performer of classical music works --> |
| 1865 | <!-- TODO: remove when Zotero fixes mapping of performer to `author` --> |
| 1866 | <group delimiter=" "> |
| 1867 | <!-- Based on `description-format` macro --> |
| 1868 | <choose> |
| 1869 | <if variable="genre"> |
| 1870 | <text text-case="capitalize-first" variable="genre"/> |
| 1871 | <text form="verb" term="performer"/> |
| 1872 | </if> |
| 1873 | <!-- providing 'performed by' label for recorded readings (CMOS18 14.164), but it should be omitted for classical music (CMOS18 14.163) --> |
| 1874 | <else> |
| 1875 | <text form="verb" term="performer" text-case="capitalize-first"/> |
| 1876 | </else> |
| 1877 | </choose> |
| 1878 | <names variable="author"> |
| 1879 | <name and="text" initialize="false"/> |
| 1880 | <substitute> |
| 1881 | <names variable="performer"/> |
| 1882 | </substitute> |
| 1883 | </names> |
| 1884 | </group> |
| 1885 | </macro> |
| 1886 | <!-- 3.3. Identifier (edition, contributors, volume) --> |
| 1887 | <macro name="identifier-bib"> |
| 1888 | <group delimiter=". "> |
| 1889 | <choose> |
| 1890 | <if type="patent"> |
| 1891 | <text macro="identifier-patent"/> |
| 1892 | </if> |
| 1893 | <else-if type="report"> |
| 1894 | <text macro="identifier-report-bib"/> |
| 1895 | </else-if> |
| 1896 | <else-if match="any" type="post webpage"> |
| 1897 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 1898 | <text macro="identifier-number-bib"/> |
| 1899 | <text macro="label-version-capitalized"/> |
| 1900 | <text macro="identifier-edition-bib"/> |
| 1901 | <text macro="identifier-contributors-bib"/> |
| 1902 | </else-if> |
| 1903 | <else-if variable="container-title"> |
| 1904 | <choose> |
| 1905 | <if match="any" type="broadcast graphic map motion_picture"> |
| 1906 | <!-- For audiovisual media, number information comes after `title`, not `container-title`; `song` places album catalogue `number` with `publisher` (CMOS18 14.163-164) --> |
| 1907 | <text macro="identifier-number-bib"/> |
| 1908 | </if> |
| 1909 | </choose> |
| 1910 | <text macro="identifier-contributors-bib"/> |
| 1911 | </else-if> |
| 1912 | <else> |
| 1913 | <choose> |
| 1914 | <if match="none" type="song"> |
| 1915 | <text macro="identifier-number-bib"/> |
| 1916 | </if> |
| 1917 | </choose> |
| 1918 | <text macro="label-version-capitalized"/> |
| 1919 | <text macro="identifier-edition-bib"/> |
| 1920 | <text macro="identifier-contributors-and-volume-bib"/> |
| 1921 | </else> |
| 1922 | </choose> |
| 1923 | </group> |
| 1924 | </macro> |
| 1925 | <!-- Identifier elements --> |
| 1926 | <macro name="identifier-contributors-bib"> |
| 1927 | <choose> |
| 1928 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1929 | <text macro="identifier-contributors-serial-bib"/> |
| 1930 | </if> |
| 1931 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1932 | <text macro="identifier-contributors-monographic-bib"/> |
| 1933 | </else-if> |
| 1934 | <else-if match="any" type="interview paper-conference"> |
| 1935 | <text macro="identifier-contributors-serial-bib"/> |
| 1936 | </else-if> |
| 1937 | <else> |
| 1938 | <text macro="identifier-contributors-monographic-bib"/> |
| 1939 | </else> |
| 1940 | </choose> |
| 1941 | </macro> |
| 1942 | <macro name="identifier-contributors-monographic-bib"> |
| 1943 | <group delimiter=". "> |
| 1944 | <choose> |
| 1945 | <if match="any" type="post webpage"> |
| 1946 | <names variable="container-author"> |
| 1947 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1948 | <name and="text" initialize="false"/> |
| 1949 | </names> |
| 1950 | <names variable="editor-translator"> |
| 1951 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1952 | <name and="text" initialize="false"/> |
| 1953 | </names> |
| 1954 | <names delimiter=". " variable="editor translator"> |
| 1955 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1956 | <name and="text" initialize="false"/> |
| 1957 | </names> |
| 1958 | <names variable="editorial-director"> |
| 1959 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1960 | <name and="text" initialize="false"/> |
| 1961 | </names> |
| 1962 | <names variable="guest"> |
| 1963 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1964 | <name and="text" initialize="false"/> |
| 1965 | </names> |
| 1966 | <names variable="host"> |
| 1967 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1968 | <name and="text" initialize="false"/> |
| 1969 | </names> |
| 1970 | <names variable="illustrator"> |
| 1971 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1972 | <name and="text" initialize="false"/> |
| 1973 | </names> |
| 1974 | <names variable="narrator"> |
| 1975 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1976 | <name and="text" initialize="false"/> |
| 1977 | </names> |
| 1978 | <names delimiter=". " variable="compiler chair organizer curator"> |
| 1979 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1980 | <name and="text" initialize="false"/> |
| 1981 | </names> |
| 1982 | <names delimiter=". " variable="series-creator executive-producer"> |
| 1983 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1984 | <name and="text" initialize="false"/> |
| 1985 | </names> |
| 1986 | <names variable="producer"> |
| 1987 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1988 | <name and="text" initialize="false"/> |
| 1989 | </names> |
| 1990 | <names variable="director"> |
| 1991 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1992 | <name and="text" initialize="false"/> |
| 1993 | </names> |
| 1994 | <choose> |
| 1995 | <if match="any" type="broadcast performance"> |
| 1996 | <names variable="script-writer"> |
| 1997 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1998 | <name and="text" initialize="false"/> |
| 1999 | </names> |
| 2000 | </if> |
| 2001 | </choose> |
| 2002 | <names variable="performer"> |
| 2003 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2004 | <name and="text" initialize="false"/> |
| 2005 | </names> |
| 2006 | <choose> |
| 2007 | <if match="none" type="thesis"> |
| 2008 | <names variable="contributor"> |
| 2009 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2010 | <name and="text" initialize="false"/> |
| 2011 | </names> |
| 2012 | </if> |
| 2013 | </choose> |
| 2014 | </if> |
| 2015 | <else> |
| 2016 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 2017 | <choose> |
| 2018 | <if match="none" variable="container-title"> |
| 2019 | <names variable="container-author"> |
| 2020 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2021 | <name and="text" initialize="false"/> |
| 2022 | </names> |
| 2023 | <names variable="editor-translator"> |
| 2024 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2025 | <name and="text" initialize="false"/> |
| 2026 | </names> |
| 2027 | <names delimiter=". " variable="editor translator"> |
| 2028 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2029 | <name and="text" initialize="false"/> |
| 2030 | </names> |
| 2031 | <names variable="editorial-director"> |
| 2032 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2033 | <name and="text" initialize="false"/> |
| 2034 | </names> |
| 2035 | <names variable="guest"> |
| 2036 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2037 | <name and="text" initialize="false"/> |
| 2038 | </names> |
| 2039 | <names variable="host"> |
| 2040 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2041 | <name and="text" initialize="false"/> |
| 2042 | </names> |
| 2043 | </if> |
| 2044 | </choose> |
| 2045 | <names variable="illustrator"> |
| 2046 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2047 | <name and="text" initialize="false"/> |
| 2048 | </names> |
| 2049 | <names variable="narrator"> |
| 2050 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2051 | <name and="text" initialize="false"/> |
| 2052 | </names> |
| 2053 | <choose> |
| 2054 | <if match="none" variable="container-title"> |
| 2055 | <names delimiter=". " variable="compiler chair organizer curator"> |
| 2056 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2057 | <name and="text" initialize="false"/> |
| 2058 | </names> |
| 2059 | <names delimiter=". " variable="series-creator executive-producer"> |
| 2060 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2061 | <name and="text" initialize="false"/> |
| 2062 | </names> |
| 2063 | <names variable="producer"> |
| 2064 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2065 | <name and="text" initialize="false"/> |
| 2066 | </names> |
| 2067 | <names variable="director"> |
| 2068 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2069 | <name and="text" initialize="false"/> |
| 2070 | </names> |
| 2071 | <choose> |
| 2072 | <if match="any" type="broadcast performance"> |
| 2073 | <names variable="script-writer"> |
| 2074 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2075 | <name and="text" initialize="false"/> |
| 2076 | </names> |
| 2077 | </if> |
| 2078 | </choose> |
| 2079 | <names variable="performer"> |
| 2080 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2081 | <name and="text" initialize="false"/> |
| 2082 | </names> |
| 2083 | <choose> |
| 2084 | <if match="none" type="song thesis"> |
| 2085 | <names variable="contributor"> |
| 2086 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2087 | <name and="text" initialize="false"/> |
| 2088 | </names> |
| 2089 | </if> |
| 2090 | </choose> |
| 2091 | </if> |
| 2092 | </choose> |
| 2093 | <choose> |
| 2094 | <if type="song"> |
| 2095 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 2096 | <names variable="contributor"> |
| 2097 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2098 | <name and="text" initialize="false"/> |
| 2099 | </names> |
| 2100 | </if> |
| 2101 | </choose> |
| 2102 | </else> |
| 2103 | </choose> |
| 2104 | </group> |
| 2105 | </macro> |
| 2106 | <macro name="identifier-contributors-serial-bib"> |
| 2107 | <group delimiter=". "> |
| 2108 | <names delimiter=". " variable="translator narrator"> |
| 2109 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2110 | <name and="text" initialize="false"/> |
| 2111 | </names> |
| 2112 | <names delimiter=". " variable="compiler chair organizer curator"> |
| 2113 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2114 | <name and="text" initialize="false"/> |
| 2115 | </names> |
| 2116 | <names delimiter=". " variable="series-creator executive-producer"> |
| 2117 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2118 | <name and="text" initialize="false"/> |
| 2119 | </names> |
| 2120 | <names variable="producer"> |
| 2121 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2122 | <name and="text" initialize="false"/> |
| 2123 | </names> |
| 2124 | <names variable="director"> |
| 2125 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2126 | <name and="text" initialize="false"/> |
| 2127 | </names> |
| 2128 | <names variable="script-writer"> |
| 2129 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2130 | <name and="text" initialize="false"/> |
| 2131 | </names> |
| 2132 | <names variable="performer"> |
| 2133 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2134 | <name and="text" initialize="false"/> |
| 2135 | </names> |
| 2136 | </group> |
| 2137 | </macro> |
| 2138 | <macro name="identifier-contributors-and-volume-bib"> |
| 2139 | <choose> |
| 2140 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 2141 | <!-- serial types --> |
| 2142 | <text macro="identifier-contributors-serial-bib"/> |
| 2143 | </if> |
| 2144 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2145 | <!-- monographic types --> |
| 2146 | <text macro="identifier-contributors-and-volume-monographic-bib-specific-title-first"/> |
| 2147 | </else-if> |
| 2148 | <else-if match="any" type="interview paper-conference"> |
| 2149 | <!-- serial types --> |
| 2150 | <text macro="identifier-contributors-serial-bib"/> |
| 2151 | </else-if> |
| 2152 | <else> |
| 2153 | <!-- monographic types --> |
| 2154 | <text macro="identifier-contributors-and-volume-monographic-bib-specific-title-first"/> |
| 2155 | </else> |
| 2156 | </choose> |
| 2157 | </macro> |
| 2158 | <macro name="identifier-contributors-and-volume-monographic-bib-specific-title-first"> |
| 2159 | <group delimiter=". "> |
| 2160 | <text macro="identifier-contributors-monographic-bib"/> |
| 2161 | <group delimiter=", "> |
| 2162 | <text macro="identifier-volume-bib-specific-title-first"/> |
| 2163 | <choose> |
| 2164 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 2165 | <!-- cite multivolume `collection-editor`; otherwise it belongs with `collection-title` --> |
| 2166 | <names variable="collection-editor"> |
| 2167 | <label form="verb" suffix=" "/> |
| 2168 | <name and="text" initialize="false"/> |
| 2169 | </names> |
| 2170 | </if> |
| 2171 | </choose> |
| 2172 | </group> |
| 2173 | <choose> |
| 2174 | <if match="none" variable="part-number part-title volume volume-title"> |
| 2175 | <text macro="label-number-of-volumes"/> |
| 2176 | </if> |
| 2177 | </choose> |
| 2178 | </group> |
| 2179 | </macro> |
| 2180 | <macro name="identifier-edition-bib"> |
| 2181 | <choose> |
| 2182 | <!-- ensure `source-publication-history-bib` does not duplicate edition --> |
| 2183 | <if variable="original-title"> |
| 2184 | <text macro="label-edition-capitalized"/> |
| 2185 | </if> |
| 2186 | <else-if variable="issued original-date"/> |
| 2187 | <else> |
| 2188 | <text macro="label-edition-capitalized"/> |
| 2189 | </else> |
| 2190 | </choose> |
| 2191 | </macro> |
| 2192 | <macro name="identifier-edition-note"> |
| 2193 | <choose> |
| 2194 | <!-- ensure `source-publication-history-note` does not duplicate edition --> |
| 2195 | <if variable="original-title"> |
| 2196 | <text macro="label-edition"/> |
| 2197 | </if> |
| 2198 | <else-if variable="issued original-date"/> |
| 2199 | <else> |
| 2200 | <text macro="label-edition"/> |
| 2201 | </else> |
| 2202 | </choose> |
| 2203 | </macro> |
| 2204 | <macro name="identifier-number-bib"> |
| 2205 | <group delimiter=" "> |
| 2206 | <choose> |
| 2207 | <if type="thesis"/> |
| 2208 | <else-if is-numeric="number" type="broadcast" variable="genre"> |
| 2209 | <text text-case="capitalize-first" variable="genre"/> |
| 2210 | <text variable="number"/> |
| 2211 | </else-if> |
| 2212 | <else-if is-numeric="number" type="broadcast"> |
| 2213 | <text text-case="capitalize-first" value="episode"/> |
| 2214 | <text variable="number"/> |
| 2215 | </else-if> |
| 2216 | <else-if variable="number"> |
| 2217 | <text text-case="title" variable="genre"/> |
| 2218 | <text macro="label-number-capitalized"/> |
| 2219 | </else-if> |
| 2220 | </choose> |
| 2221 | </group> |
| 2222 | </macro> |
| 2223 | <macro name="identifier-patent"> |
| 2224 | <group delimiter=", "> |
| 2225 | <group delimiter=" "> |
| 2226 | <!-- `authority`: US ; `genre`: patent ; `number`: 123,445 --> |
| 2227 | <text form="short" variable="authority"/> |
| 2228 | <!-- 'US Patent' capitalized in both bibliography and note forms --> |
| 2229 | <choose> |
| 2230 | <if variable="genre"> |
| 2231 | <text text-case="capitalize-first" variable="genre"/> |
| 2232 | </if> |
| 2233 | <else> |
| 2234 | <text term="patent" text-case="capitalize-first"/> |
| 2235 | </else> |
| 2236 | </choose> |
| 2237 | <text variable="number"/> |
| 2238 | </group> |
| 2239 | <group delimiter=" "> |
| 2240 | <text value="filed"/> |
| 2241 | <date form="text" variable="submitted"/> |
| 2242 | </group> |
| 2243 | <group delimiter=" "> |
| 2244 | <choose> |
| 2245 | <if variable="issued submitted"> |
| 2246 | <text term="and"/> |
| 2247 | </if> |
| 2248 | </choose> |
| 2249 | <text value="issued"/> |
| 2250 | <!-- Always give full issue date, even in author-date (CMOS18 14.158) --> |
| 2251 | <text macro="date-issued-full"/> |
| 2252 | </group> |
| 2253 | </group> |
| 2254 | </macro> |
| 2255 | <macro name="identifier-report-bib"> |
| 2256 | <group delimiter=". "> |
| 2257 | <choose> |
| 2258 | <if variable="container-title"> |
| 2259 | <!-- If the report is a chapter in a larger report, then most identifying information is printed in the source. --> |
| 2260 | <text macro="identifier-contributors-bib"/> |
| 2261 | </if> |
| 2262 | <else-if variable="title"> |
| 2263 | <text macro="identifier-number-bib"/> |
| 2264 | <text macro="label-version-capitalized"/> |
| 2265 | <text macro="identifier-edition-bib"/> |
| 2266 | <text macro="identifier-contributors-and-volume-bib"/> |
| 2267 | </else-if> |
| 2268 | <else> |
| 2269 | <!-- If there is no `title`, then `genre` and `number` are already printed as the title. --> |
| 2270 | <text macro="label-version-capitalized"/> |
| 2271 | <text macro="identifier-edition-bib"/> |
| 2272 | <text macro="identifier-contributors-and-volume-bib"/> |
| 2273 | </else> |
| 2274 | </choose> |
| 2275 | </group> |
| 2276 | </macro> |
| 2277 | <macro name="identifier-volume-bib-specific-title-first"> |
| 2278 | <!-- In author-date, bibliography must be listed under the individual volume title rather than the general title of the multivolume set; this is also allowable in notes styles (CMOS18 14.21) --> |
| 2279 | <group delimiter=", "> |
| 2280 | <choose> |
| 2281 | <if variable="part-number part-title volume volume-title"> |
| 2282 | <!-- part and title with individual titles --> |
| 2283 | <group delimiter=" "> |
| 2284 | <text macro="label-part-number-capitalized"/> |
| 2285 | <text value="of"/> |
| 2286 | <text macro="title-volume"/> |
| 2287 | </group> |
| 2288 | <group delimiter=" "> |
| 2289 | <text macro="label-volume"/> |
| 2290 | <text value="of"/> |
| 2291 | <text macro="title-primary"/> |
| 2292 | </group> |
| 2293 | </if> |
| 2294 | <else-if match="any" variable="part-title volume-title"> |
| 2295 | <group delimiter=" "> |
| 2296 | <choose> |
| 2297 | <if variable="part-number volume"> |
| 2298 | <group delimiter=", "> |
| 2299 | <text macro="label-volume-capitalized"/> |
| 2300 | <text macro="label-part-number"/> |
| 2301 | <text value="of"/> |
| 2302 | </group> |
| 2303 | </if> |
| 2304 | <else-if variable="part-number"> |
| 2305 | <text macro="label-part-number-capitalized"/> |
| 2306 | <text value="of"/> |
| 2307 | </else-if> |
| 2308 | <else-if variable="volume"> |
| 2309 | <text macro="label-volume-capitalized"/> |
| 2310 | <text value="of"/> |
| 2311 | </else-if> |
| 2312 | </choose> |
| 2313 | <text macro="title-primary"/> |
| 2314 | </group> |
| 2315 | </else-if> |
| 2316 | <else-if variable="part-number volume"> |
| 2317 | <text macro="label-volume-capitalized"/> |
| 2318 | <text macro="label-part-number"/> |
| 2319 | </else-if> |
| 2320 | <else-if variable="part-number"> |
| 2321 | <text macro="label-part-number-capitalized"/> |
| 2322 | </else-if> |
| 2323 | <else-if variable="volume"> |
| 2324 | <text macro="label-volume-capitalized"/> |
| 2325 | </else-if> |
| 2326 | </choose> |
| 2327 | </group> |
| 2328 | </macro> |
| 2329 | <!-- 4. Source --> |
| 2330 | <macro name="source-bib"> |
| 2331 | <choose> |
| 2332 | <if match="any" type="patent post webpage"/> |
| 2333 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 2334 | <text macro="source-serial-bib"/> |
| 2335 | </else-if> |
| 2336 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2337 | <text macro="source-monographic-bib"/> |
| 2338 | </else-if> |
| 2339 | <else-if match="any" type="interview paper-conference"> |
| 2340 | <text macro="source-serial-bib"/> |
| 2341 | </else-if> |
| 2342 | <else> |
| 2343 | <text macro="source-monographic-bib"/> |
| 2344 | </else> |
| 2345 | </choose> |
| 2346 | </macro> |
| 2347 | <!-- 4.1. Serial sources --> |
| 2348 | <macro name="source-serial-bib"> |
| 2349 | <group delimiter=". "> |
| 2350 | <text macro="source-serial-title-volume-bib"/> |
| 2351 | <choose> |
| 2352 | <if match="any" type="article-magazine article-newspaper"> |
| 2353 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 2354 | <group delimiter=", "> |
| 2355 | <text macro="source-serial-title-bib"/> |
| 2356 | <text macro="source-serial-identifier-bib"/> |
| 2357 | </group> |
| 2358 | </if> |
| 2359 | <else-if variable="collection-title volume"> |
| 2360 | <group delimiter=", "> |
| 2361 | <text macro="source-serial-title-bib"/> |
| 2362 | <text macro="source-serial-identifier-bib"/> |
| 2363 | </group> |
| 2364 | </else-if> |
| 2365 | <else-if variable="volume"> |
| 2366 | <group delimiter=" "> |
| 2367 | <text macro="source-serial-title-bib"/> |
| 2368 | <text macro="source-serial-identifier-bib"/> |
| 2369 | </group> |
| 2370 | </else-if> |
| 2371 | <else> |
| 2372 | <group delimiter=", "> |
| 2373 | <text macro="source-serial-title-bib"/> |
| 2374 | <text macro="source-serial-identifier-bib"/> |
| 2375 | </group> |
| 2376 | </else> |
| 2377 | </choose> |
| 2378 | </group> |
| 2379 | </macro> |
| 2380 | <!-- Serial source title --> |
| 2381 | <macro name="source-serial-name"> |
| 2382 | <group delimiter=" "> |
| 2383 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 2384 | <choose> |
| 2385 | <!-- TODO: remove conditional when Zotero stops double-mapping `event-place` and `publisher-place` --> |
| 2386 | <if match="none" variable="event-date event-title"> |
| 2387 | <text prefix="(" suffix=")" variable="publisher-place"/> |
| 2388 | </if> |
| 2389 | </choose> |
| 2390 | </group> |
| 2391 | </macro> |
| 2392 | <macro name="source-serial-title-bib"> |
| 2393 | <group delimiter=", "> |
| 2394 | <choose> |
| 2395 | <!-- Journal special issues (CMOS18 14.77) and supplements (CMOS18 14.78) --> |
| 2396 | <if match="none" variable="container-title"/> |
| 2397 | <else-if match="none" type="periodical" variable="supplement-number volume-title"/> |
| 2398 | <!-- TODO: use `container-genre` here once available to allow a custom description of the journal volume --> |
| 2399 | <else-if variable="supplement-number volume-title"> |
| 2400 | <text term="supplement" text-case="capitalize-first"/> |
| 2401 | </else-if> |
| 2402 | <else-if type="periodical" variable="supplement-number title"> |
| 2403 | <text term="supplement" text-case="capitalize-first"/> |
| 2404 | </else-if> |
| 2405 | <else-if variable="volume-title"> |
| 2406 | <text term="special-issue" text-case="capitalize-first"/> |
| 2407 | </else-if> |
| 2408 | <else-if type="periodical" variable="title"> |
| 2409 | <text term="special-issue" text-case="capitalize-first"/> |
| 2410 | </else-if> |
| 2411 | </choose> |
| 2412 | <text macro="source-serial-name"/> |
| 2413 | <choose> |
| 2414 | <!-- 'ahead of print' is placed akin to a series (CMOS18 14.75) --> |
| 2415 | <if match="any" variable="collection-title issue number page supplement-number volume volume-title"/> |
| 2416 | <else-if match="any" variable="available-date status"/> |
| 2417 | <else-if type="article-journal" variable="DOI issued"> |
| 2418 | <text term="advance-online-publication"/> |
| 2419 | </else-if> |
| 2420 | </choose> |
| 2421 | </group> |
| 2422 | </macro> |
| 2423 | <macro name="source-serial-title-volume-bib"> |
| 2424 | <choose> |
| 2425 | <if variable="volume-title"> |
| 2426 | <!-- Journal special issues (CMOS18 14.77) and supplements (CMOS18 14.78) --> |
| 2427 | <group delimiter=", "> |
| 2428 | <group delimiter=" "> |
| 2429 | <text macro="source-monographic-preposition-bib"/> |
| 2430 | <text macro="title-volume"/> |
| 2431 | </group> |
| 2432 | <text macro="source-monographic-identifier-contributors-bib"/> |
| 2433 | </group> |
| 2434 | </if> |
| 2435 | </choose> |
| 2436 | </macro> |
| 2437 | <!-- Serial source identifier --> |
| 2438 | <macro name="source-serial-identifier-bib"> |
| 2439 | <group delimiter=", "> |
| 2440 | <choose> |
| 2441 | <if match="any" type="article-magazine article-newspaper"> |
| 2442 | <group delimiter=". "> |
| 2443 | <text macro="source-serial-identifier-volume-author-date"/> |
| 2444 | <!-- newspaper edition always capitalized (CMOS18 14.89) --> |
| 2445 | <text macro="label-edition-capitalized"/> |
| 2446 | </group> |
| 2447 | <text macro="source-serial-locator"/> |
| 2448 | </if> |
| 2449 | <else-if match="any" variable="issue supplement-number volume"> |
| 2450 | <group delimiter=": "> |
| 2451 | <text macro="source-serial-identifier-volume-author-date"/> |
| 2452 | <text macro="source-serial-locator"/> |
| 2453 | </group> |
| 2454 | </else-if> |
| 2455 | <else> |
| 2456 | <text macro="source-serial-identifier-volume-author-date"/> |
| 2457 | <text macro="source-serial-locator"/> |
| 2458 | </else> |
| 2459 | <!-- TODO: If CSL adds `date-part` detection, add two further conditions to address CMOS18 14.74: delimiting with ":" if there is a `volume` and no month or `issue` or `supplement number`; delimiting with ", " or there is an `issue` or `supplement number` and no month --> |
| 2460 | </choose> |
| 2461 | </group> |
| 2462 | </macro> |
| 2463 | <macro name="source-serial-identifier-volume-author-date"> |
| 2464 | <group delimiter=", "> |
| 2465 | <choose> |
| 2466 | <if match="any" type="article-magazine article-newspaper"> |
| 2467 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 2468 | <text variable="collection-title"/> |
| 2469 | <text macro="source-serial-volume-status-bib"/> |
| 2470 | </if> |
| 2471 | <else-if match="any" variable="issue supplement-number volume"> |
| 2472 | <choose> |
| 2473 | <if match="any" variable="author chair collection-editor compiler composer curator director editor editor-translator editorial-director executive-producer guest host illustrator organizer producer series-creator translator"/> |
| 2474 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 2475 | <!-- date appears first if the review `container-title` has been substituted for a missing author (CMOS18 14.87, 14.102) --> |
| 2476 | <choose> |
| 2477 | <!-- extra date details only appear with a lone volume or issue --> |
| 2478 | <if variable="issue volume"/> |
| 2479 | <else-if variable="supplement-number"/> |
| 2480 | <else-if match="any" variable="issue volume"> |
| 2481 | <text macro="source-date-specific-title-first"/> |
| 2482 | </else-if> |
| 2483 | </choose> |
| 2484 | </else-if> |
| 2485 | </choose> |
| 2486 | <!-- `collection-title` is for any serial with multiple series (e.g. '4th ser.') --> |
| 2487 | <text variable="collection-title"/> |
| 2488 | <group delimiter=" "> |
| 2489 | <choose> |
| 2490 | <if variable="volume"> |
| 2491 | <choose> |
| 2492 | <if variable="collection-title"> |
| 2493 | <text macro="label-volume"/> |
| 2494 | </if> |
| 2495 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 2496 | <!-- provide label if a review `container-title` has been substituted for a missing author (CMOS18 14.87, 14.102) --> |
| 2497 | <choose> |
| 2498 | <if match="any" variable="author chair collection-editor compiler composer curator director editor editor-translator editorial-director executive-producer guest host illustrator organizer producer series-creator translator"> |
| 2499 | <text variable="volume"/> |
| 2500 | </if> |
| 2501 | <!-- TODO: when CSL provides date part detection, volume should be lowercase if there is a month, but otherwise capitalized --> |
| 2502 | <else> |
| 2503 | <text macro="label-volume-capitalized"/> |
| 2504 | </else> |
| 2505 | </choose> |
| 2506 | </else-if> |
| 2507 | <else> |
| 2508 | <text variable="volume"/> |
| 2509 | </else> |
| 2510 | </choose> |
| 2511 | <group delimiter=", " prefix="(" suffix=")"> |
| 2512 | <choose> |
| 2513 | <if match="any" variable="issue supplement-number"> |
| 2514 | <text variable="issue"/> |
| 2515 | <text macro="label-supplement-number"/> |
| 2516 | </if> |
| 2517 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 2518 | <!-- date for unsigned reviews only appears here if it did not earlier (CMOS18 14.102) --> |
| 2519 | <choose> |
| 2520 | <if match="any" variable="author chair collection-editor compiler composer curator director editor editor-translator editorial-director executive-producer guest host illustrator organizer producer series-creator translator"> |
| 2521 | <text macro="source-date-specific-title-first"/> |
| 2522 | </if> |
| 2523 | </choose> |
| 2524 | </else-if> |
| 2525 | <else> |
| 2526 | <text macro="source-date-specific-title-first"/> |
| 2527 | </else> |
| 2528 | </choose> |
| 2529 | </group> |
| 2530 | </if> |
| 2531 | <else-if match="any" variable="issue supplement-number"> |
| 2532 | <group delimiter=" "> |
| 2533 | <group delimiter=", "> |
| 2534 | <text macro="label-issue"/> |
| 2535 | <text macro="label-supplement-number"/> |
| 2536 | </group> |
| 2537 | <choose> |
| 2538 | <if match="any" variable="author chair collection-editor compiler composer curator director editor editor-translator editorial-director executive-producer guest host illustrator organizer producer series-creator translator"> |
| 2539 | <text macro="source-date-specific-title-first" prefix="(" suffix=")"/> |
| 2540 | </if> |
| 2541 | </choose> |
| 2542 | </group> |
| 2543 | </else-if> |
| 2544 | </choose> |
| 2545 | </group> |
| 2546 | </else-if> |
| 2547 | <else> |
| 2548 | <text variable="collection-title"/> |
| 2549 | <choose> |
| 2550 | <if match="any" type="interview post-weblog"> |
| 2551 | <!-- publisher possible with broadcast `interview` (CMOS18 14.110) or `post-weblog` (CMOS18 14.105) --> |
| 2552 | <text variable="publisher"/> |
| 2553 | </if> |
| 2554 | </choose> |
| 2555 | <text macro="source-serial-volume-status-bib"/> |
| 2556 | </else> |
| 2557 | </choose> |
| 2558 | </group> |
| 2559 | </macro> |
| 2560 | <macro name="source-serial-volume-status-bib"> |
| 2561 | <group delimiter=", "> |
| 2562 | <choose> |
| 2563 | <if match="any" variable="collection-title issue number page supplement-number volume volume-title"/> |
| 2564 | <else-if variable="issued"/> |
| 2565 | <else-if variable="available-date"> |
| 2566 | <group delimiter=" "> |
| 2567 | <!-- article accepted for publication and available on publisher website (CMOS18 14.75) --> |
| 2568 | <!-- TODO: use CSL term for `available-date` when available --> |
| 2569 | <text value="accepted"/> |
| 2570 | <date form="text" variable="available-date"/> |
| 2571 | </group> |
| 2572 | </else-if> |
| 2573 | </choose> |
| 2574 | <group delimiter=" "> |
| 2575 | <text macro="source-date-status-bib"/> |
| 2576 | <text macro="source-date-specific-title-first"/> |
| 2577 | </group> |
| 2578 | </group> |
| 2579 | </macro> |
| 2580 | <!-- Serial source locator --> |
| 2581 | <macro name="source-serial-locator"> |
| 2582 | <choose> |
| 2583 | <if match="any" variable="locator number"> |
| 2584 | <group delimiter=", "> |
| 2585 | <text macro="label-locator"/> |
| 2586 | <!-- an article ID appears alongside locators in notes (CMOS18 14.71) --> |
| 2587 | <choose> |
| 2588 | <!-- if there is an `archive` with no other reference, `number` appears in `source-archive-database-number` --> |
| 2589 | <if match="any" variable="archive_collection archive_location archive-place"> |
| 2590 | <text variable="number"/> |
| 2591 | </if> |
| 2592 | <else-if variable="archive"/> |
| 2593 | <else> |
| 2594 | <text variable="number"/> |
| 2595 | </else> |
| 2596 | </choose> |
| 2597 | </group> |
| 2598 | </if> |
| 2599 | <!-- do not give pages for magazines or newspapers (CMOS18 14.87, 14.89) --> |
| 2600 | <else-if match="any" type="article-magazine article-newspaper"/> |
| 2601 | <else> |
| 2602 | <text variable="page"/> |
| 2603 | </else> |
| 2604 | </choose> |
| 2605 | </macro> |
| 2606 | <!-- 4.2. Monographic sources --> |
| 2607 | <macro name="source-monographic-bib"> |
| 2608 | <group delimiter=". "> |
| 2609 | <!-- Monographic sources repeat main reference elements --> |
| 2610 | <choose> |
| 2611 | <if variable="container-title"> |
| 2612 | <group delimiter=", "> |
| 2613 | <group delimiter=" "> |
| 2614 | <text macro="source-monographic-preposition-bib"/> |
| 2615 | <text macro="source-monographic-title-specific-title-first"/> |
| 2616 | </group> |
| 2617 | <text macro="source-monographic-description"/> |
| 2618 | <text macro="source-monographic-identifier-bib"/> |
| 2619 | <text macro="source-monographic-locator"/> |
| 2620 | </group> |
| 2621 | </if> |
| 2622 | </choose> |
| 2623 | <text macro="source-monographic-identifier-contributors-bib-container-author"/> |
| 2624 | <text macro="source-series-bib"/> |
| 2625 | <choose> |
| 2626 | <!-- show event information here only if not collapsed with `issued` (CMOS18 14.167) --> |
| 2627 | <if match="any" variable="event-date original-date original-publisher original-publisher-place publisher status"> |
| 2628 | <text macro="source-event-bib"/> |
| 2629 | </if> |
| 2630 | </choose> |
| 2631 | </group> |
| 2632 | </macro> |
| 2633 | <!-- Monographic source title --> |
| 2634 | <macro name="source-monographic-preposition-bib"> |
| 2635 | <choose> |
| 2636 | <if match="any" type="broadcast motion_picture"/> |
| 2637 | <else-if type="chapter" variable="container-title genre"> |
| 2638 | <text value="to"/> |
| 2639 | </else-if> |
| 2640 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 2641 | <text value="to"/> |
| 2642 | </else-if> |
| 2643 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 2644 | <choose> |
| 2645 | <if match="any" variable="author composer"> |
| 2646 | <!-- Give preposition only for signed entries; otherwise, title is substituted --> |
| 2647 | <text term="in" text-case="capitalize-first"/> |
| 2648 | </if> |
| 2649 | </choose> |
| 2650 | </else-if> |
| 2651 | <!-- if printing chapter page numbers (CMOS17/classic): |
| 2652 | <else-if variable="chapter-number page title"><text term="in" text-case="capitalize-first"/></else-if> |
| 2653 | --> |
| 2654 | <else-if variable="chapter-number"> |
| 2655 | <group delimiter=" "> |
| 2656 | <text macro="label-chapter-number-capitalized"/> |
| 2657 | <choose> |
| 2658 | <if type="song"> |
| 2659 | <text term="on"/> |
| 2660 | </if> |
| 2661 | <else> |
| 2662 | <text term="in"/> |
| 2663 | </else> |
| 2664 | </choose> |
| 2665 | </group> |
| 2666 | </else-if> |
| 2667 | <else> |
| 2668 | <text term="in" text-case="capitalize-first"/> |
| 2669 | </else> |
| 2670 | </choose> |
| 2671 | </macro> |
| 2672 | <macro name="source-monographic-preposition-note"> |
| 2673 | <choose> |
| 2674 | <if match="any" type="broadcast motion_picture"/> |
| 2675 | <else-if type="chapter" variable="container-title genre"> |
| 2676 | <text value="to"/> |
| 2677 | </else-if> |
| 2678 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 2679 | <text value="to"/> |
| 2680 | </else-if> |
| 2681 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 2682 | <choose> |
| 2683 | <if match="any" variable="author composer"> |
| 2684 | <!-- Give preposition only for signed entries; otherwise, title is substituted --> |
| 2685 | <text term="in"/> |
| 2686 | </if> |
| 2687 | </choose> |
| 2688 | </else-if> |
| 2689 | <!-- if printing chapter page numbers (CMOS17/classic): |
| 2690 | <else-if variable="chapter-number page title"><text term="in"/></else-if> |
| 2691 | --> |
| 2692 | <else-if variable="chapter-number"> |
| 2693 | <group delimiter=" "> |
| 2694 | <text macro="label-chapter-number"/> |
| 2695 | <choose> |
| 2696 | <if type="song"> |
| 2697 | <text term="on"/> |
| 2698 | </if> |
| 2699 | <else> |
| 2700 | <text term="in"/> |
| 2701 | </else> |
| 2702 | </choose> |
| 2703 | </group> |
| 2704 | </else-if> |
| 2705 | <else> |
| 2706 | <text term="in"/> |
| 2707 | </else> |
| 2708 | </choose> |
| 2709 | </macro> |
| 2710 | <macro name="source-monographic-title-specific-title-first"> |
| 2711 | <choose> |
| 2712 | <if variable="part-title"> |
| 2713 | <text macro="title-part"/> |
| 2714 | </if> |
| 2715 | <else-if variable="volume-title"> |
| 2716 | <text macro="title-volume"/> |
| 2717 | </else-if> |
| 2718 | <else> |
| 2719 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 2720 | </else> |
| 2721 | </choose> |
| 2722 | </macro> |
| 2723 | <!-- Monographic source description --> |
| 2724 | <macro name="source-monographic-description"> |
| 2725 | <choose> |
| 2726 | <if match="any" type="document report software standard"> |
| 2727 | <!-- place description after `container-title` --> |
| 2728 | <text macro="description-format-note"/> |
| 2729 | </if> |
| 2730 | <else-if match="any" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"/> |
| 2731 | <else-if match="any" type="event paper-conference performance speech"> |
| 2732 | <!-- unpublished conference presentations should describe the session --> |
| 2733 | <text macro="description-format-note"/> |
| 2734 | </else-if> |
| 2735 | </choose> |
| 2736 | </macro> |
| 2737 | <!-- Monographic source identifier --> |
| 2738 | <macro name="source-monographic-identifier-bib"> |
| 2739 | <!-- Based on `identifier-bib` --> |
| 2740 | <choose> |
| 2741 | <if variable="container-title"> |
| 2742 | <group delimiter=", "> |
| 2743 | <choose> |
| 2744 | <if match="none" type="broadcast graphic map motion_picture song"> |
| 2745 | <!-- For audiovisual media, number information comes after `title`, not `container-title`; `song` places album catalogue `number` with `publisher` (CMOS18 14.163-164) --> |
| 2746 | <text macro="identifier-number-bib"/> |
| 2747 | </if> |
| 2748 | </choose> |
| 2749 | <text macro="label-version"/> |
| 2750 | <!-- use note form as `edition` is not capitalized here --> |
| 2751 | <text macro="identifier-edition-note"/> |
| 2752 | <text macro="source-monographic-identifier-contributors-and-volume-bib-specific-title-first"/> |
| 2753 | </group> |
| 2754 | </if> |
| 2755 | </choose> |
| 2756 | </macro> |
| 2757 | <macro name="source-monographic-identifier-contributors-bib"> |
| 2758 | <choose> |
| 2759 | <if variable="container-author container-title"> |
| 2760 | <!-- set off `container-author` from other contributors in the bibliography (CMOS18 14.12; for page location, CMOS17 14.110) --> |
| 2761 | <names variable="container-author"> |
| 2762 | <label form="verb" suffix=" "/> |
| 2763 | <name and="text" initialize="false"/> |
| 2764 | </names> |
| 2765 | <!-- other contributors shift to `source-monographic-identifier-contributors-bib-container-author` --> |
| 2766 | </if> |
| 2767 | <else> |
| 2768 | <group delimiter=", "> |
| 2769 | <names variable="editor-translator"> |
| 2770 | <label form="verb" suffix=" "/> |
| 2771 | <name and="text" initialize="false"/> |
| 2772 | </names> |
| 2773 | <names delimiter=", " variable="editor translator"> |
| 2774 | <label form="verb" suffix=" "/> |
| 2775 | <name and="text" initialize="false"/> |
| 2776 | </names> |
| 2777 | <names variable="guest"> |
| 2778 | <label form="verb" suffix=" "/> |
| 2779 | <name and="text" initialize="false"/> |
| 2780 | </names> |
| 2781 | <names variable="host"> |
| 2782 | <label form="verb" suffix=" "/> |
| 2783 | <name and="text" initialize="false"/> |
| 2784 | </names> |
| 2785 | <names delimiter=", " variable="chair organizer"> |
| 2786 | <label form="verb" suffix=" "/> |
| 2787 | <name and="text" initialize="false"/> |
| 2788 | </names> |
| 2789 | <names delimiter=", " variable="illustrator narrator compiler curator"> |
| 2790 | <label form="verb" suffix=" "/> |
| 2791 | <name and="text" initialize="false"/> |
| 2792 | </names> |
| 2793 | <names delimiter=", " variable="series-creator executive-producer"> |
| 2794 | <label form="verb" suffix=" "/> |
| 2795 | <name and="text" initialize="false"/> |
| 2796 | </names> |
| 2797 | <names variable="producer"> |
| 2798 | <label form="verb" suffix=" "/> |
| 2799 | <name and="text" initialize="false"/> |
| 2800 | </names> |
| 2801 | <names variable="editorial-director"> |
| 2802 | <label form="verb" suffix=" "/> |
| 2803 | <name and="text" initialize="false"/> |
| 2804 | </names> |
| 2805 | <choose> |
| 2806 | <if match="any" type="broadcast performance"> |
| 2807 | <names variable="script-writer"> |
| 2808 | <label form="verb" suffix=" "/> |
| 2809 | <name and="text" initialize="false"/> |
| 2810 | </names> |
| 2811 | </if> |
| 2812 | </choose> |
| 2813 | <names variable="director"> |
| 2814 | <label form="verb" suffix=" "/> |
| 2815 | <name and="text" initialize="false"/> |
| 2816 | </names> |
| 2817 | <names variable="performer"> |
| 2818 | <label form="verb" suffix=" "/> |
| 2819 | <name and="text" initialize="false"/> |
| 2820 | </names> |
| 2821 | <choose> |
| 2822 | <if match="none" type="song thesis"> |
| 2823 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 2824 | <names variable="contributor"> |
| 2825 | <label form="verb" suffix=" "/> |
| 2826 | <name and="text" initialize="false"/> |
| 2827 | </names> |
| 2828 | </if> |
| 2829 | </choose> |
| 2830 | </group> |
| 2831 | </else> |
| 2832 | </choose> |
| 2833 | </macro> |
| 2834 | <macro name="source-monographic-identifier-contributors-bib-container-author"> |
| 2835 | <!-- set off `container-author` from other contributors in the bibliography (CMOS18 14.12; for page location, CMOS17 14.110) --> |
| 2836 | <choose> |
| 2837 | <if variable="container-author container-title"> |
| 2838 | <group delimiter=". "> |
| 2839 | <names variable="editor-translator"> |
| 2840 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2841 | <name and="text" initialize="false"/> |
| 2842 | </names> |
| 2843 | <names delimiter=". " variable="editor translator"> |
| 2844 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2845 | <name and="text" initialize="false"/> |
| 2846 | </names> |
| 2847 | <names variable="guest"> |
| 2848 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2849 | <name and="text" initialize="false"/> |
| 2850 | </names> |
| 2851 | <names variable="host"> |
| 2852 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2853 | <name and="text" initialize="false"/> |
| 2854 | </names> |
| 2855 | <names delimiter=". " variable="chair organizer"> |
| 2856 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2857 | <name and="text" initialize="false"/> |
| 2858 | </names> |
| 2859 | <names delimiter=". " variable="illustrator narrator compiler curator"> |
| 2860 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2861 | <name and="text" initialize="false"/> |
| 2862 | </names> |
| 2863 | <names delimiter=". " variable="series-creator executive-producer"> |
| 2864 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2865 | <name and="text" initialize="false"/> |
| 2866 | </names> |
| 2867 | <names variable="producer"> |
| 2868 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2869 | <name and="text" initialize="false"/> |
| 2870 | </names> |
| 2871 | <names variable="editorial-director"> |
| 2872 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2873 | <name and="text" initialize="false"/> |
| 2874 | </names> |
| 2875 | <choose> |
| 2876 | <if match="any" type="broadcast performance"> |
| 2877 | <names variable="script-writer"> |
| 2878 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2879 | <name and="text" initialize="false"/> |
| 2880 | </names> |
| 2881 | </if> |
| 2882 | </choose> |
| 2883 | <names variable="director"> |
| 2884 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2885 | <name and="text" initialize="false"/> |
| 2886 | </names> |
| 2887 | <names variable="performer"> |
| 2888 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2889 | <name and="text" initialize="false"/> |
| 2890 | </names> |
| 2891 | <choose> |
| 2892 | <if match="none" type="song thesis"> |
| 2893 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 2894 | <names variable="contributor"> |
| 2895 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2896 | <name and="text" initialize="false"/> |
| 2897 | </names> |
| 2898 | </if> |
| 2899 | </choose> |
| 2900 | </group> |
| 2901 | </if> |
| 2902 | </choose> |
| 2903 | </macro> |
| 2904 | <macro name="source-monographic-identifier-contributors-and-volume-bib-specific-title-first"> |
| 2905 | <group delimiter=", "> |
| 2906 | <text macro="source-monographic-identifier-contributors-bib"/> |
| 2907 | <text macro="source-monographic-identifier-volume-bib-specific-title-first"/> |
| 2908 | <choose> |
| 2909 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 2910 | <!-- cite multivolume `collection-editor`; otherwise it belongs with `collection-title` --> |
| 2911 | <names variable="collection-editor"> |
| 2912 | <label form="verb" suffix=" "/> |
| 2913 | <name and="text" initialize="false"/> |
| 2914 | </names> |
| 2915 | </if> |
| 2916 | </choose> |
| 2917 | <choose> |
| 2918 | <if match="any" variable="part-number part-title volume volume-title"/> |
| 2919 | <else-if variable="page"/> |
| 2920 | <else> |
| 2921 | <text macro="label-number-of-volumes"/> |
| 2922 | </else> |
| 2923 | </choose> |
| 2924 | </group> |
| 2925 | </macro> |
| 2926 | <macro name="source-monographic-identifier-volume-bib-specific-title-first"> |
| 2927 | <!-- based on `identifier-volume-bib-specific-title-first` without capitalization; giving `container-title` rather than `title-primary`; and ensuring volume number --> |
| 2928 | <group delimiter=", "> |
| 2929 | <choose> |
| 2930 | <if variable="part-number part-title volume volume-title"> |
| 2931 | <!-- part and title with individual titles --> |
| 2932 | <group delimiter=" "> |
| 2933 | <text macro="label-part-number"/> |
| 2934 | <text value="of"/> |
| 2935 | <text macro="title-volume"/> |
| 2936 | </group> |
| 2937 | <group delimiter=" "> |
| 2938 | <text macro="label-volume"/> |
| 2939 | <text value="of"/> |
| 2940 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 2941 | </group> |
| 2942 | </if> |
| 2943 | <else-if match="any" variable="part-title volume-title"> |
| 2944 | <group delimiter=" "> |
| 2945 | <choose> |
| 2946 | <if variable="part-number volume"> |
| 2947 | <group delimiter=", "> |
| 2948 | <text macro="label-volume"/> |
| 2949 | <text macro="label-part-number"/> |
| 2950 | <text value="of"/> |
| 2951 | </group> |
| 2952 | </if> |
| 2953 | <else-if variable="part-number"> |
| 2954 | <text macro="label-part-number"/> |
| 2955 | <text value="of"/> |
| 2956 | </else-if> |
| 2957 | <else-if variable="volume"> |
| 2958 | <text macro="label-volume"/> |
| 2959 | <text value="of"/> |
| 2960 | </else-if> |
| 2961 | </choose> |
| 2962 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 2963 | </group> |
| 2964 | </else-if> |
| 2965 | <else-if variable="part-number"> |
| 2966 | <text macro="label-volume"/> |
| 2967 | <text macro="label-part-number"/> |
| 2968 | </else-if> |
| 2969 | <else-if is-numeric="volume" match="none"> |
| 2970 | <text macro="label-volume"/> |
| 2971 | </else-if> |
| 2972 | <else-if variable="container-title"> |
| 2973 | <!-- remove condition in styles that print chapter page numbers (CMOS17/classic) --> |
| 2974 | <text macro="label-volume"/> |
| 2975 | </else-if> |
| 2976 | <else-if is-numeric="volume" variable="page"> |
| 2977 | <choose> |
| 2978 | <!-- check for variables that might come between the volume and page number --> |
| 2979 | <if variable="collection-editor"> |
| 2980 | <text macro="label-volume"/> |
| 2981 | </if> |
| 2982 | </choose> |
| 2983 | </else-if> |
| 2984 | <else> |
| 2985 | <text macro="label-volume"/> |
| 2986 | </else> |
| 2987 | </choose> |
| 2988 | </group> |
| 2989 | </macro> |
| 2990 | <!-- Monographic source locator --> |
| 2991 | <macro name="source-monographic-locator"> |
| 2992 | <choose> |
| 2993 | <!-- archival locators appear after the shelfmark (CMOS18 14.127) --> |
| 2994 | <if locator="column" variable="archive archive_location"/> |
| 2995 | <else-if locator="folio" variable="archive archive_location"/> |
| 2996 | <else-if locator="page" variable="archive archive_location"/> |
| 2997 | <else-if is-numeric="volume" locator="page"> |
| 2998 | <!-- separate a volume and page number with a colon (CMOS18 14.18) --> |
| 2999 | <group delimiter=":"> |
| 3000 | <choose> |
| 3001 | <if match="any" variable="part-number part-title volume-title"/> |
| 3002 | <else-if variable="collection-editor"/> |
| 3003 | <else> |
| 3004 | <text variable="volume"/> |
| 3005 | </else> |
| 3006 | </choose> |
| 3007 | <text variable="locator"/> |
| 3008 | </group> |
| 3009 | </else-if> |
| 3010 | <else-if variable="locator"> |
| 3011 | <text macro="label-locator"/> |
| 3012 | </else-if> |
| 3013 | <!-- remove `container-title` condition in styles that print chapter page numbers (CMOS17/classic) --> |
| 3014 | <else-if variable="container-title"/> |
| 3015 | <else-if is-numeric="volume" variable="page"> |
| 3016 | <!-- collapse the volume and page number if adjacent (CMOS18 14.18) --> |
| 3017 | <group delimiter=":"> |
| 3018 | <choose> |
| 3019 | <!-- check for variables that might come between the volume and page number --> |
| 3020 | <if match="any" variable="part-number part-title volume-title"/> |
| 3021 | <else-if variable="collection-editor"/> |
| 3022 | <else> |
| 3023 | <text variable="volume"/> |
| 3024 | </else> |
| 3025 | </choose> |
| 3026 | <text variable="page"/> |
| 3027 | </group> |
| 3028 | </else-if> |
| 3029 | <!-- archival locators appear after the shelfmark (CMOS18 14.127) --> |
| 3030 | <else-if variable="archive archive_location page"/> |
| 3031 | <else> |
| 3032 | <text variable="page"/> |
| 3033 | </else> |
| 3034 | </choose> |
| 3035 | </macro> |
| 3036 | <!-- 4.3. Series --> |
| 3037 | <macro name="source-series-bib"> |
| 3038 | <group delimiter=", "> |
| 3039 | <choose> |
| 3040 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 3041 | <text macro="source-series-title"/> |
| 3042 | </if> |
| 3043 | <else-if variable="collection-editor collection-title"> |
| 3044 | <!-- `collection-editor` belongs with `collection-title` if the item is not multivolume --> |
| 3045 | <text text-case="title" variable="collection-title"/> |
| 3046 | <names variable="collection-editor"> |
| 3047 | <label form="verb" suffix=" "/> |
| 3048 | <name and="text" initialize="false"/> |
| 3049 | </names> |
| 3050 | <text macro="label-collection-number"/> |
| 3051 | <text macro="label-issue"/> |
| 3052 | </else-if> |
| 3053 | <else> |
| 3054 | <text macro="source-series-title"/> |
| 3055 | </else> |
| 3056 | </choose> |
| 3057 | </group> |
| 3058 | </macro> |
| 3059 | <macro name="source-series-title"> |
| 3060 | <group delimiter=", "> |
| 3061 | <choose> |
| 3062 | <if variable="issue"> |
| 3063 | <text text-case="title" variable="collection-title"/> |
| 3064 | <text macro="label-collection-number"/> |
| 3065 | <text macro="label-issue"/> |
| 3066 | </if> |
| 3067 | <else-if is-numeric="collection-number" variable="collection-title"> |
| 3068 | <group delimiter=" "> |
| 3069 | <text text-case="title" variable="collection-title"/> |
| 3070 | <text variable="collection-number"/> |
| 3071 | </group> |
| 3072 | </else-if> |
| 3073 | <else-if variable="collection-title"> |
| 3074 | <text text-case="title" variable="collection-title"/> |
| 3075 | <text variable="collection-number"/> |
| 3076 | </else-if> |
| 3077 | </choose> |
| 3078 | </group> |
| 3079 | </macro> |
| 3080 | <!-- 4.4. Event --> |
| 3081 | <macro name="source-event-bib"> |
| 3082 | <group delimiter=" "> |
| 3083 | <choose> |
| 3084 | <!-- omit types that provide event information in description --> |
| 3085 | <if match="any" type="interview" variable="interviewer"/> |
| 3086 | <else-if type="personal_communication" variable="recipient"/> |
| 3087 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"/> |
| 3088 | <else-if match="any" variable="event event-date event-title"> |
| 3089 | <!-- TODO: To prevent Zotero from printing `event-place`, due to its double-mapping of `publisher-place` and `event-place`. Remove this when that is changed. --> |
| 3090 | <choose> |
| 3091 | <if type="paper-conference"> |
| 3092 | <choose> |
| 3093 | <if match="none" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 3094 | <!-- Don't print event info for conference papers published in proceedings --> |
| 3095 | <text macro="source-event-status-bib"/> |
| 3096 | <text macro="source-event-description-bib"/> |
| 3097 | </if> |
| 3098 | </choose> |
| 3099 | </if> |
| 3100 | <else> |
| 3101 | <!-- For other item types, print event info even if published (e.g. collection catalogs, performance programs). --> |
| 3102 | <text macro="source-event-status-bib"/> |
| 3103 | <text macro="source-event-description-bib"/> |
| 3104 | </else> |
| 3105 | </choose> |
| 3106 | </else-if> |
| 3107 | </choose> |
| 3108 | </group> |
| 3109 | </macro> |
| 3110 | <macro name="source-event-place-first"> |
| 3111 | <!-- for descriptive elements for interviews, reviews, letters --> |
| 3112 | <choose> |
| 3113 | <if match="any" variable="event event-date event-title"> |
| 3114 | <group delimiter=", "> |
| 3115 | <text variable="event-title"/> |
| 3116 | <text variable="event-place"/> |
| 3117 | <text macro="date-event-full"/> |
| 3118 | </group> |
| 3119 | </if> |
| 3120 | </choose> |
| 3121 | </macro> |
| 3122 | <macro name="source-event-status-bib"> |
| 3123 | <group delimiter=" "> |
| 3124 | <choose> |
| 3125 | <if type="broadcast" variable="status"> |
| 3126 | <!-- 'aired', 'performed', etc. (CMOS18 14.165) --> |
| 3127 | <text text-case="capitalize-first" variable="status"/> |
| 3128 | </if> |
| 3129 | <else-if type="paper-conference"> |
| 3130 | <choose> |
| 3131 | <if variable="genre"> |
| 3132 | <text text-case="capitalize-first" value="presented"/> |
| 3133 | </if> |
| 3134 | <else> |
| 3135 | <text form="short" term="paper-conference" text-case="capitalize-first"/> |
| 3136 | <text value="presented"/> |
| 3137 | </else> |
| 3138 | </choose> |
| 3139 | <choose> |
| 3140 | <if variable="event-title"> |
| 3141 | <text term="at"/> |
| 3142 | </if> |
| 3143 | </choose> |
| 3144 | </else-if> |
| 3145 | <else-if type="song"> |
| 3146 | <text text-case="capitalize-first" value="recorded"/> |
| 3147 | <choose> |
| 3148 | <if variable="event-title"> |
| 3149 | <text term="at"/> |
| 3150 | </if> |
| 3151 | </choose> |
| 3152 | </else-if> |
| 3153 | <else-if variable="event-date issued"/> |
| 3154 | <else-if variable="issued"/> |
| 3155 | <else> |
| 3156 | <text text-case="capitalize-first" variable="status"/> |
| 3157 | </else> |
| 3158 | </choose> |
| 3159 | </group> |
| 3160 | </macro> |
| 3161 | <macro name="source-event-title"> |
| 3162 | <choose> |
| 3163 | <!-- TODO: We expect `event-title` to be used, but processors and applications may not be updated yet. This macro ensures that either `event` or `event-title` can be accepted. Remove if processor logic and application adoption can handle this. --> |
| 3164 | <if variable="event-title"> |
| 3165 | <text variable="event-title"/> |
| 3166 | </if> |
| 3167 | <else> |
| 3168 | <text variable="event"/> |
| 3169 | </else> |
| 3170 | </choose> |
| 3171 | </macro> |
| 3172 | <macro name="source-event-title-capitalized"> |
| 3173 | <choose> |
| 3174 | <!-- TODO: We expect `event-title` to be used, but processors and applications may not be updated yet. This macro ensures that either `event` or `event-title` can be accepted. Remove if processor logic and application adoption can handle this. --> |
| 3175 | <if variable="event-title"> |
| 3176 | <text text-case="capitalize-first" variable="event-title"/> |
| 3177 | </if> |
| 3178 | <else> |
| 3179 | <text text-case="capitalize-first" variable="event"/> |
| 3180 | </else> |
| 3181 | </choose> |
| 3182 | </macro> |
| 3183 | <macro name="source-event-description-bib"> |
| 3184 | <group delimiter=", "> |
| 3185 | <choose> |
| 3186 | <if type="song"> |
| 3187 | <text macro="source-event-title"/> |
| 3188 | </if> |
| 3189 | <else-if type="paper-conference" variable="genre"> |
| 3190 | <text macro="source-event-title-capitalized"/> |
| 3191 | </else-if> |
| 3192 | <else-if type="paper-conference"> |
| 3193 | <text macro="source-event-title"/> |
| 3194 | </else-if> |
| 3195 | <else> |
| 3196 | <text macro="source-event-title-capitalized"/> |
| 3197 | </else> |
| 3198 | </choose> |
| 3199 | <text macro="date-event-full"/> |
| 3200 | <text variable="event-place"/> |
| 3201 | </group> |
| 3202 | </macro> |
| 3203 | <!-- 4.5. Facts of publication --> |
| 3204 | <macro name="source-monographic-publication-bib"> |
| 3205 | <group delimiter=". "> |
| 3206 | <choose> |
| 3207 | <!-- `patent` date in identification (CMOS18 14.158) --> |
| 3208 | <if type="patent"/> |
| 3209 | <!-- omit serial types --> |
| 3210 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"/> |
| 3211 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 3212 | <!-- monographic types --> |
| 3213 | <text macro="source-publication-and-date-bib"/> |
| 3214 | </else-if> |
| 3215 | <!-- omit serial types --> |
| 3216 | <else-if match="any" type="interview paper-conference"/> |
| 3217 | <else> |
| 3218 | <!-- monographic types --> |
| 3219 | <text macro="source-publication-and-date-bib"/> |
| 3220 | </else> |
| 3221 | </choose> |
| 3222 | <text macro="source-publication-original-title-bib"/> |
| 3223 | </group> |
| 3224 | </macro> |
| 3225 | <macro name="source-publication-and-date-bib"> |
| 3226 | <group delimiter=", "> |
| 3227 | <choose> |
| 3228 | <if match="any" type="post webpage"> |
| 3229 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 3230 | <!-- avoid possible repetition of `container-title` with author-date: --> |
| 3231 | <choose> |
| 3232 | <if variable="publisher"> |
| 3233 | <text text-case="title" variable="container-title"/> |
| 3234 | </if> |
| 3235 | <else-if type="webpage" variable="container-title container-title-short"/> |
| 3236 | <else> |
| 3237 | <text text-case="title" variable="container-title"/> |
| 3238 | </else> |
| 3239 | </choose> |
| 3240 | </if> |
| 3241 | </choose> |
| 3242 | <choose> |
| 3243 | <if type="broadcast" variable="DOI"> |
| 3244 | <!-- a podcast publisher appears before the date, whereas the network of an aired show appears after (CMOS18 14.165); unfortunately CSL stores both in `publisher` --> |
| 3245 | <!-- TODO: `DOI` or `URL` detection is the only way to distinguish radio/TV from podcasts, but it is obviously imprecise; modify if CSL provides a `podcast` type --> |
| 3246 | <text macro="source-publication-history-bib"/> |
| 3247 | </if> |
| 3248 | <else-if type="broadcast" variable="URL"> |
| 3249 | <text macro="source-publication-history-bib"/> |
| 3250 | </else-if> |
| 3251 | <else-if type="broadcast"/> |
| 3252 | <else> |
| 3253 | <text macro="source-publication-history-bib"/> |
| 3254 | </else> |
| 3255 | </choose> |
| 3256 | <group delimiter=" "> |
| 3257 | <text macro="source-date-status-bib"/> |
| 3258 | <text macro="source-date-specific-title-first"/> |
| 3259 | </group> |
| 3260 | <choose> |
| 3261 | <if type="broadcast" variable="URL"/> |
| 3262 | <else-if type="broadcast"> |
| 3263 | <group delimiter=" "> |
| 3264 | <text term="on"/> |
| 3265 | <text macro="source-publication-history-bib"/> |
| 3266 | </group> |
| 3267 | </else-if> |
| 3268 | </choose> |
| 3269 | </group> |
| 3270 | </macro> |
| 3271 | <!-- Facts of publication elements --> |
| 3272 | <macro name="source-publication-description-bib"> |
| 3273 | <choose> |
| 3274 | <if type="article" variable="genre"/> |
| 3275 | <else-if type="article"> |
| 3276 | <!-- `preprint` term attached to repository name, but specific working paper descriptors appear in description (CMOS18 14.76, 14.116) --> |
| 3277 | <text term="preprint" text-case="capitalize-first"/> |
| 3278 | </else-if> |
| 3279 | <else-if type="thesis"> |
| 3280 | <!-- thesis type appears with university name (CMOS18 14.113) --> |
| 3281 | <text text-case="capitalize-first" variable="genre"/> |
| 3282 | </else-if> |
| 3283 | <else-if match="any" variable="original-publisher original-publisher-place"> |
| 3284 | <choose> |
| 3285 | <!-- `edition` provides an alternative label to `reprint` (CMOS18 14.16) --> |
| 3286 | <if match="any" variable="edition original-title"/> |
| 3287 | <else-if match="none" type="book chapter classic entry entry-dictionary entry-encyclopedia interview musical_score pamphlet paper-conference report thesis"/> |
| 3288 | <else-if variable="issued original-date"> |
| 3289 | <text text-case="capitalize-first" value="reprint"/> |
| 3290 | </else-if> |
| 3291 | </choose> |
| 3292 | </else-if> |
| 3293 | </choose> |
| 3294 | </macro> |
| 3295 | <macro name="source-publication-history-bib"> |
| 3296 | <choose> |
| 3297 | <if variable="original-title"> |
| 3298 | <!-- `original-title` is covered in `source-publication-original-title-bib` --> |
| 3299 | <group delimiter=", "> |
| 3300 | <text macro="source-publication-description-bib"/> |
| 3301 | <text macro="source-publication-publisher-bib"/> |
| 3302 | </group> |
| 3303 | </if> |
| 3304 | <else-if match="any" variable="edition original-publisher original-publisher-place"> |
| 3305 | <group delimiter=". "> |
| 3306 | <!-- full stop to separate original date if `original-publisher` (CMOS18 14.16) --> |
| 3307 | <group delimiter=", "> |
| 3308 | <text macro="source-publication-publisher-original-bib"/> |
| 3309 | <text macro="source-date-original"/> |
| 3310 | </group> |
| 3311 | <group delimiter=". "> |
| 3312 | <choose> |
| 3313 | <if variable="issued original-date"> |
| 3314 | <text macro="label-edition-capitalized"/> |
| 3315 | </if> |
| 3316 | </choose> |
| 3317 | <group delimiter=", "> |
| 3318 | <text macro="source-publication-description-bib"/> |
| 3319 | <text macro="source-publication-publisher-bib"/> |
| 3320 | </group> |
| 3321 | </group> |
| 3322 | </group> |
| 3323 | </else-if> |
| 3324 | <else> |
| 3325 | <group delimiter="; "> |
| 3326 | <!-- semicolon to separate original date if no publisher (CMOS18 14.165) --> |
| 3327 | <text macro="source-date-original"/> |
| 3328 | <group delimiter=", "> |
| 3329 | <text macro="source-publication-description-bib"/> |
| 3330 | <text macro="source-publication-publisher-bib"/> |
| 3331 | </group> |
| 3332 | </group> |
| 3333 | </else> |
| 3334 | </choose> |
| 3335 | </macro> |
| 3336 | <macro name="source-publication-original-title-bib"> |
| 3337 | <!-- Work originally published under a different title (CMOS18 13.101) --> |
| 3338 | <choose> |
| 3339 | <if variable="original-title"> |
| 3340 | <group delimiter=" "> |
| 3341 | <text term="original-work-published" text-case="capitalize-first"/> |
| 3342 | <group delimiter=", "> |
| 3343 | <names variable="original-author"> |
| 3344 | <name and="text" initialize="false"/> |
| 3345 | </names> |
| 3346 | <text font-style="italic" text-case="title" variable="original-title"/> |
| 3347 | </group> |
| 3348 | <group delimiter=", " prefix="(" suffix=")"> |
| 3349 | <text macro="source-publication-publisher-original-bib"/> |
| 3350 | <text macro="source-date-original"/> |
| 3351 | </group> |
| 3352 | </group> |
| 3353 | </if> |
| 3354 | </choose> |
| 3355 | </macro> |
| 3356 | <macro name="source-publication-publisher-bib"> |
| 3357 | <group delimiter=" "> |
| 3358 | <choose> |
| 3359 | <if type="thesis" variable="publisher"> |
| 3360 | <text text-case="capitalize-first" variable="publisher"/> |
| 3361 | </if> |
| 3362 | <else-if variable="publisher"> |
| 3363 | <group delimiter=": "> |
| 3364 | <!-- <text text-case="capitalize-first" variable="publisher-place"/> --> |
| 3365 | <text text-case="capitalize-first" variable="publisher"/> |
| 3366 | </group> |
| 3367 | </else-if> |
| 3368 | <!-- TODO: remove conditional when Zotero fixes double-mapping of `event-place` --> |
| 3369 | <else-if match="any" variable="event-date event-title"/> |
| 3370 | <else> |
| 3371 | <text text-case="capitalize-first" variable="publisher-place"/> |
| 3372 | </else> |
| 3373 | </choose> |
| 3374 | <choose> |
| 3375 | <if type="song"> |
| 3376 | <!-- Album catalogue number follows label name (CMOS18 14.163-164) --> |
| 3377 | <text variable="number"/> |
| 3378 | </if> |
| 3379 | </choose> |
| 3380 | </group> |
| 3381 | </macro> |
| 3382 | <macro name="source-publication-publisher-original-bib"> |
| 3383 | <choose> |
| 3384 | <if variable="original-publisher"> |
| 3385 | <group delimiter=": "> |
| 3386 | <!-- <text text-case="capitalize-first" variable="original-publisher-place"/> --> |
| 3387 | <text text-case="capitalize-first" variable="original-publisher"/> |
| 3388 | </group> |
| 3389 | </if> |
| 3390 | <else> |
| 3391 | <text text-case="capitalize-first" variable="original-publisher-place"/> |
| 3392 | </else> |
| 3393 | </choose> |
| 3394 | </macro> |
| 3395 | <!-- 4.6. Date --> |
| 3396 | <macro name="source-date-specific-title-first"> |
| 3397 | <!-- date for the last-mentioned title, for author-date or notes and bibliography leading with volume title (CMOS18 14.21) --> |
| 3398 | <choose> |
| 3399 | <if variable="available-date volume-title"> |
| 3400 | <!-- TODO: Is there a better CSL variable for a date of a multivolume work (CMOS18 14.21)? --> |
| 3401 | <date date-parts="year" form="numeric" variable="available-date"/> |
| 3402 | </if> |
| 3403 | <else-if variable="available-date part-title"> |
| 3404 | <date date-parts="year" form="numeric" variable="available-date"/> |
| 3405 | </else-if> |
| 3406 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 3407 | <!-- serial types --> |
| 3408 | <text macro="source-date-issued-month-day"/> |
| 3409 | <!-- for CMOS17 author-date: --> |
| 3410 | <!-- <text macro="source-date-issued-full-serial"/> --> |
| 3411 | <!-- for notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 3412 | <!-- <text macro="source-date-issued-or-status"/> --> |
| 3413 | </else-if> |
| 3414 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 3415 | <!-- monographic types --> |
| 3416 | <text macro="source-date-issued-month-day"/> |
| 3417 | <!-- for notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 3418 | <!-- <text macro="source-date-issued-or-status"/> --> |
| 3419 | </else-if> |
| 3420 | <else-if match="any" type="interview paper-conference"> |
| 3421 | <!-- serial types --> |
| 3422 | <text macro="source-date-issued-month-day"/> |
| 3423 | <!-- for CMOS17 author-date: --> |
| 3424 | <!-- <text macro="source-date-issued-full-serial"/> --> |
| 3425 | <!-- for notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 3426 | <!-- <text macro="source-date-issued-or-status"/> --> |
| 3427 | </else-if> |
| 3428 | <else> |
| 3429 | <!-- monographic types --> |
| 3430 | <text macro="source-date-issued-month-day"/> |
| 3431 | <!-- for notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 3432 | <!-- <text macro="source-date-issued-or-status"/> --> |
| 3433 | </else> |
| 3434 | </choose> |
| 3435 | </macro> |
| 3436 | <!-- Date elements --> |
| 3437 | <macro name="source-date-issued-month-day"> |
| 3438 | <!-- Use with author-date --> |
| 3439 | <!-- Give full date for more ephemeral types --> |
| 3440 | <!-- NB: any changes must also be applied to `source-date-original-month-day` --> |
| 3441 | <choose> |
| 3442 | <if type="personal_communication" variable="event-date issued"> |
| 3443 | <!-- Provide issue date for letters listed under event-date --> |
| 3444 | <text macro="date-issued-year"/> |
| 3445 | </if> |
| 3446 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 3447 | <choose> |
| 3448 | <if match="any" variable="DOI URL"> |
| 3449 | <!-- Online reference works use full dates (CMOS18 14.131) --> |
| 3450 | <text macro="date-issued-month-day"/> |
| 3451 | </if> |
| 3452 | </choose> |
| 3453 | </else-if> |
| 3454 | <else-if match="any" type="article broadcast collection dataset document event graphic manuscript map patent performance personal_communication post software song speech standard webpage"> |
| 3455 | <text macro="date-issued-month-day"/> |
| 3456 | </else-if> |
| 3457 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 3458 | <text macro="source-date-issued-month-day-serial"/> |
| 3459 | </else-if> |
| 3460 | <!-- omit monographic types --> |
| 3461 | <else-if match="any" variable="collection-editor compiler editor editorial-director"/> |
| 3462 | <else-if match="any" type="interview paper-conference"> |
| 3463 | <!-- serial types --> |
| 3464 | <text macro="source-date-issued-month-day-serial"/> |
| 3465 | </else-if> |
| 3466 | </choose> |
| 3467 | </macro> |
| 3468 | <macro name="source-date-issued-month-day-serial"> |
| 3469 | <choose> |
| 3470 | <if match="any" type="article-magazine article-newspaper"> |
| 3471 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 3472 | <text macro="date-issued-month-day"/> |
| 3473 | </if> |
| 3474 | <else-if match="any" variable="issue supplement-number volume"> |
| 3475 | <text macro="date-issued-month"/> |
| 3476 | </else-if> |
| 3477 | <else> |
| 3478 | <text macro="date-issued-month-day"/> |
| 3479 | </else> |
| 3480 | </choose> |
| 3481 | </macro> |
| 3482 | <macro name="source-date-original"> |
| 3483 | <text macro="source-date-original-month-day"/> |
| 3484 | </macro> |
| 3485 | <macro name="source-date-original-month-day"> |
| 3486 | <!-- Give full date for more ephemeral types --> |
| 3487 | <!-- Macro derived from `source-date-issued-month-day` --> |
| 3488 | <choose> |
| 3489 | <if type="personal_communication" variable="event-date original-date"> |
| 3490 | <!-- Provide original date for letters listed under event-date --> |
| 3491 | <text macro="date-original-year"/> |
| 3492 | </if> |
| 3493 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 3494 | <choose> |
| 3495 | <if match="any" variable="DOI URL"> |
| 3496 | <!-- Online reference works use full dates (CMOS18 14.131) --> |
| 3497 | <text macro="date-original-month-day"/> |
| 3498 | </if> |
| 3499 | </choose> |
| 3500 | </else-if> |
| 3501 | <else-if match="any" type="article broadcast collection dataset document event graphic manuscript map patent performance personal_communication post software song speech standard webpage"> |
| 3502 | <text macro="date-original-month-day"/> |
| 3503 | </else-if> |
| 3504 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 3505 | <choose> |
| 3506 | <if match="any" variable="issue supplement-number volume"> |
| 3507 | <text macro="date-original-month"/> |
| 3508 | </if> |
| 3509 | <else> |
| 3510 | <text macro="date-original-month-day"/> |
| 3511 | </else> |
| 3512 | </choose> |
| 3513 | </else-if> |
| 3514 | <else-if match="any" type="interview paper-conference"> |
| 3515 | <choose> |
| 3516 | <if match="any" variable="collection-editor compiler editor editorial-director"/> |
| 3517 | <else-if match="any" variable="issue supplement-number volume"> |
| 3518 | <text macro="date-original-month"/> |
| 3519 | </else-if> |
| 3520 | <else> |
| 3521 | <text macro="date-original-month-day"/> |
| 3522 | </else> |
| 3523 | </choose> |
| 3524 | </else-if> |
| 3525 | </choose> |
| 3526 | </macro> |
| 3527 | <macro name="source-date-status-bib"> |
| 3528 | <choose> |
| 3529 | <if type="broadcast" variable="event-title issued status"/> |
| 3530 | <!-- on a `broadcast`, if there is an `event-title`, `status` appears with `event-date` as part of `source-event` (CMOS18 14.165) --> |
| 3531 | <else-if variable="issued status"> |
| 3532 | <!-- `status` specifies date type, e.g. 'effective', 'last modified', 'approved' (CMOS18 14.104 for `webpage`; CMOS18 14.159 for `standard`) --> |
| 3533 | <choose> |
| 3534 | <if type="webpage" variable="container-title"> |
| 3535 | <text variable="status"/> |
| 3536 | </if> |
| 3537 | <else-if type="webpage" variable="author publisher"> |
| 3538 | <text variable="status"/> |
| 3539 | </else-if> |
| 3540 | <else-if type="webpage" variable="translator publisher"> |
| 3541 | <text variable="status"/> |
| 3542 | </else-if> |
| 3543 | <else-if type="webpage"> |
| 3544 | <!-- capitalize `status` if there is nothing else after the `title` (either no website title or substituted publisher) --> |
| 3545 | <text text-case="capitalize-first" variable="status"/> |
| 3546 | </else-if> |
| 3547 | <else-if match="any" variable="original-date original-publisher original-publisher-place original-title publisher"> |
| 3548 | <text variable="status"/> |
| 3549 | </else-if> |
| 3550 | <else> |
| 3551 | <text text-case="capitalize-first" variable="status"/> |
| 3552 | </else> |
| 3553 | </choose> |
| 3554 | </else-if> |
| 3555 | <else-if type="broadcast" variable="issued URL"/> |
| 3556 | <else-if type="broadcast" variable="issued"> |
| 3557 | <!-- `status` of a radio or TV broadcast is 'aired' if unspecified (CMOS18 14.165) --> |
| 3558 | <text text-case="capitalize-first" value="aired"/> |
| 3559 | </else-if> |
| 3560 | <else-if type="software" variable="issued publisher"> |
| 3561 | <!-- `status` of software is 'released' if unspecified (CMOS18 14.169) --> |
| 3562 | <choose> |
| 3563 | <if match="any" variable="author chair collection-editor compiler composer contributor curator director editor editor-translator editorial-director executive-producer guest host illustrator organizer producer series-creator translator"> |
| 3564 | <!-- lowercase if `publisher` is adjacent --> |
| 3565 | <text value="released"/> |
| 3566 | </if> |
| 3567 | <else> |
| 3568 | <text text-case="capitalize-first" value="released"/> |
| 3569 | </else> |
| 3570 | </choose> |
| 3571 | </else-if> |
| 3572 | <else-if type="software" variable="original-date"> |
| 3573 | <!-- lowercase if `original-date` is adjacent --> |
| 3574 | <text value="released"/> |
| 3575 | </else-if> |
| 3576 | <else-if type="software" variable="issued"> |
| 3577 | <!-- capitalize if `publisher` is not present --> |
| 3578 | <text text-case="capitalize-first" value="released"/> |
| 3579 | </else-if> |
| 3580 | </choose> |
| 3581 | </macro> |
| 3582 | <!-- 4.7. Locator (including page references) --> |
| 3583 | <macro name="source-locator-author-date"> |
| 3584 | <choose> |
| 3585 | <if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 3586 | <choose> |
| 3587 | <if match="any" variable="author locator"> |
| 3588 | <text macro="label-locator"/> |
| 3589 | </if> |
| 3590 | <else-if variable="container-title title"> |
| 3591 | <!-- unsigned reference entry title appears in the locator (CMOS18 13.130) --> |
| 3592 | <group delimiter=" "> |
| 3593 | <choose> |
| 3594 | <if match="none" variable="DOI URL"> |
| 3595 | <!-- Only print reference entries use `sub-verbo` (CMOS18 14.131) --> |
| 3596 | <text form="short" term="sub-verbo"/> |
| 3597 | </if> |
| 3598 | </choose> |
| 3599 | <text form="short" quotes="true" variable="title"/> |
| 3600 | </group> |
| 3601 | </else-if> |
| 3602 | </choose> |
| 3603 | </if> |
| 3604 | <else> |
| 3605 | <text macro="label-locator"/> |
| 3606 | </else> |
| 3607 | </choose> |
| 3608 | </macro> |
| 3609 | <!-- 4.8. Medium --> |
| 3610 | <macro name="source-medium-bib"> |
| 3611 | <group delimiter=", "> |
| 3612 | <text text-case="capitalize-first" variable="medium"/> |
| 3613 | <text variable="scale"/> |
| 3614 | <text variable="dimensions"/> |
| 3615 | </group> |
| 3616 | </macro> |
| 3617 | <macro name="source-medium-note"> |
| 3618 | <group delimiter=", "> |
| 3619 | <text variable="medium"/> |
| 3620 | <text variable="scale"/> |
| 3621 | <text variable="dimensions"/> |
| 3622 | </group> |
| 3623 | </macro> |
| 3624 | <!-- 4.9. Archival location --> |
| 3625 | <macro name="source-archive-bib"> |
| 3626 | <group delimiter=" "> |
| 3627 | <choose> |
| 3628 | <if type="graphic"> |
| 3629 | <text macro="source-archive-reference-institution-first"/> |
| 3630 | </if> |
| 3631 | <else> |
| 3632 | <text macro="source-archive-reference-location-first-bib"/> |
| 3633 | </else> |
| 3634 | </choose> |
| 3635 | <text macro="source-archive-database-number" prefix="(" suffix=")"/> |
| 3636 | </group> |
| 3637 | </macro> |
| 3638 | <macro name="source-archive-note"> |
| 3639 | <group delimiter=" "> |
| 3640 | <choose> |
| 3641 | <if type="graphic"> |
| 3642 | <text macro="source-archive-reference-institution-first"/> |
| 3643 | </if> |
| 3644 | <else> |
| 3645 | <text macro="source-archive-reference-location-first-note"/> |
| 3646 | </else> |
| 3647 | </choose> |
| 3648 | <text macro="source-archive-database-number" prefix="(" suffix=")"/> |
| 3649 | </group> |
| 3650 | </macro> |
| 3651 | <!-- Archival elements --> |
| 3652 | <macro name="source-archive-database-number"> |
| 3653 | <!-- database identifier, if not included elsewhere (CMOS18 14.113) --> |
| 3654 | <choose> |
| 3655 | <if match="any" variable="archive_collection archive_location archive-place"/> |
| 3656 | <!-- `number` never shown elsewhere with a thesis --> |
| 3657 | <else-if type="thesis"> |
| 3658 | <text variable="number"/> |
| 3659 | </else-if> |
| 3660 | <!-- `number` shown with `genre` --> |
| 3661 | <else-if match="any" type="dataset entry song" variable="genre"/> |
| 3662 | <else-if variable="archive"> |
| 3663 | <text variable="number"/> |
| 3664 | </else-if> |
| 3665 | </choose> |
| 3666 | </macro> |
| 3667 | <macro name="source-archive-locator"> |
| 3668 | <choose> |
| 3669 | <!-- physical locators with archival references appear after the shelfmark (CMOS18 14.127) --> |
| 3670 | <if locator="column" variable="archive archive_location"> |
| 3671 | <!-- archival locators must always be labelled to avoid confusion with `archive_location` (CMOS18 14.123) --> |
| 3672 | <text macro="label-locator-all"/> |
| 3673 | </if> |
| 3674 | <else-if locator="folio" variable="archive archive_location"> |
| 3675 | <text macro="label-locator-all"/> |
| 3676 | </else-if> |
| 3677 | <else-if locator="page" variable="archive archive_location"> |
| 3678 | <text macro="label-locator-all"/> |
| 3679 | </else-if> |
| 3680 | <else-if variable="archive archive_location page"> |
| 3681 | <choose> |
| 3682 | <if is-numeric="page"> |
| 3683 | <!-- TODO: remove this conditional when `page` parsing is fixed for different locator types --> |
| 3684 | <text macro="label-page"/> |
| 3685 | </if> |
| 3686 | <else> |
| 3687 | <text variable="page"/> |
| 3688 | </else> |
| 3689 | </choose> |
| 3690 | </else-if> |
| 3691 | </choose> |
| 3692 | </macro> |
| 3693 | <macro name="source-archive-reference-institution-first"> |
| 3694 | <!-- Archive (gallery) name first for art (CMOS18 14.133) --> |
| 3695 | <group delimiter=", "> |
| 3696 | <text variable="archive"/> |
| 3697 | <text variable="archive-place"/> |
| 3698 | <text variable="archive_collection"/> |
| 3699 | <text variable="archive_location"/> |
| 3700 | <text macro="source-archive-locator"/> |
| 3701 | </group> |
| 3702 | </macro> |
| 3703 | <macro name="source-archive-reference-location-first-bib"> |
| 3704 | <!-- Order of elements begins with the most specific (CMOS18 14.128) --> |
| 3705 | <group delimiter=". "> |
| 3706 | <group delimiter=", "> |
| 3707 | <text text-case="capitalize-first" variable="archive_location"/> |
| 3708 | <text macro="source-archive-locator"/> |
| 3709 | </group> |
| 3710 | <text variable="archive_collection"/> |
| 3711 | <group delimiter=", "> |
| 3712 | <text variable="archive"/> |
| 3713 | <text variable="archive-place"/> |
| 3714 | </group> |
| 3715 | </group> |
| 3716 | </macro> |
| 3717 | <macro name="source-archive-reference-location-first-note"> |
| 3718 | <!-- Order of elements begins with the most specific (CMOS18 14.127) --> |
| 3719 | <group delimiter=", "> |
| 3720 | <text variable="archive_location"/> |
| 3721 | <text macro="source-archive-locator"/> |
| 3722 | <text variable="archive_collection"/> |
| 3723 | <text variable="archive"/> |
| 3724 | <text variable="archive-place"/> |
| 3725 | </group> |
| 3726 | </macro> |
| 3727 | <!-- 4.10. URL or persistent identifier --> |
| 3728 | <macro name="source-date-accessed-DOI-URL-bib"> |
| 3729 | <group delimiter=". "> |
| 3730 | <choose> |
| 3731 | <if variable="DOI"/> |
| 3732 | <else-if match="any" variable="available-date event-date issued status"/> |
| 3733 | <else-if variable="accessed URL"> |
| 3734 | <group delimiter=" "> |
| 3735 | <text term="accessed" text-case="capitalize-first"/> |
| 3736 | <date form="text" variable="accessed"/> |
| 3737 | </group> |
| 3738 | </else-if> |
| 3739 | </choose> |
| 3740 | <text macro="source-DOI-URL"/> |
| 3741 | </group> |
| 3742 | </macro> |
| 3743 | <macro name="source-DOI-URL"> |
| 3744 | <choose> |
| 3745 | <if variable="DOI"> |
| 3746 | <text prefix="https://doi.org/" variable="DOI"/> |
| 3747 | </if> |
| 3748 | <else-if variable="URL"> |
| 3749 | <text variable="URL"/> |
| 3750 | </else-if> |
| 3751 | </choose> |
| 3752 | </macro> |
| 3753 | <!-- 5. Notes --> |
| 3754 | <!-- TODO: add variables for distributor and exhibitions if available in CSL --> |
| 3755 | <!-- 6. Legal references: Bluebook style (shared with APA) --> |
| 3756 | <!-- Where APA or Chicago diverge from Bluebook, the official manual is followed --> |
| 3757 | <macro name="legal-reference"> |
| 3758 | <!-- Type usage: |
| 3759 | |
| 3760 | `bill` |
| 3761 | : bills, resolutions, federal reports |
| 3762 | |
| 3763 | `legal_case` |
| 3764 | : all legal and court cases |
| 3765 | |
| 3766 | `hearing` |
| 3767 | : hearings and testimony |
| 3768 | |
| 3769 | `legislation` |
| 3770 | : statutes, constitutional items, and charters |
| 3771 | |
| 3772 | `regulation` |
| 3773 | : codified regulations, uncodified regulations, executive orders |
| 3774 | |
| 3775 | `treaty` |
| 3776 | : treaties |
| 3777 | --> |
| 3778 | <group delimiter=", "> |
| 3779 | <choose> |
| 3780 | <if type="treaty"> |
| 3781 | <text macro="legal-title"/> |
| 3782 | <names variable="author"> |
| 3783 | <!-- Treaty parties should be included at least for bilateral treaties (Bluebook 21.4.2) --> |
| 3784 | <name delimiter="-" et-al-min="100" et-al-use-first="99" form="short" initialize="false"/> |
| 3785 | </names> |
| 3786 | <text macro="legal-date"/> |
| 3787 | <!-- treaty source/report in addition to URL (Bluebook 21.4.5) --> |
| 3788 | <text macro="legal-source"/> |
| 3789 | </if> |
| 3790 | <else> |
| 3791 | <group delimiter=" "> |
| 3792 | <group delimiter=", "> |
| 3793 | <text macro="legal-title"/> |
| 3794 | <text macro="legal-source"/> |
| 3795 | </group> |
| 3796 | <text macro="legal-date"/> |
| 3797 | <text macro="legal-identifier"/> |
| 3798 | </group> |
| 3799 | </else> |
| 3800 | </choose> |
| 3801 | <group delimiter=" "> |
| 3802 | <!-- locator for use in notes --> |
| 3803 | <choose> |
| 3804 | <if locator="page" variable="page"> |
| 3805 | <text term="at"/> |
| 3806 | </if> |
| 3807 | </choose> |
| 3808 | <text macro="label-locator"/> |
| 3809 | </group> |
| 3810 | </group> |
| 3811 | </macro> |
| 3812 | <!-- 6.1. Legal date --> |
| 3813 | <macro name="legal-date"> |
| 3814 | <choose> |
| 3815 | <if type="treaty"> |
| 3816 | <text macro="date-issued-full"/> |
| 3817 | </if> |
| 3818 | <else-if type="legal_case"> |
| 3819 | <text macro="legal-date-case"/> |
| 3820 | </else-if> |
| 3821 | <else-if match="any" type="bill hearing legislation regulation"> |
| 3822 | <group delimiter=" " prefix="(" suffix=")"> |
| 3823 | <group delimiter=" "> |
| 3824 | <text macro="date-original-year"/> |
| 3825 | <text form="symbol" term="and"/> |
| 3826 | </group> |
| 3827 | <choose> |
| 3828 | <if variable="issued"> |
| 3829 | <text macro="date-issued-year"/> |
| 3830 | </if> |
| 3831 | <else> |
| 3832 | <!-- Show proposal date for uncodified regulations. Assume date is entered literally ala "proposed May 23, 2016". --> |
| 3833 | <!-- TODO: Add `proposed` date here if that becomes available --> |
| 3834 | <date form="text" variable="submitted"/> |
| 3835 | </else> |
| 3836 | </choose> |
| 3837 | </group> |
| 3838 | </else-if> |
| 3839 | </choose> |
| 3840 | </macro> |
| 3841 | <macro name="legal-date-case"> |
| 3842 | <group delimiter=" " prefix="(" suffix=")"> |
| 3843 | <text variable="authority"/> |
| 3844 | <choose> |
| 3845 | <if variable="container-title"> |
| 3846 | <!-- Print only year for cases published in reporters--> |
| 3847 | <text macro="date-issued-year"/> |
| 3848 | </if> |
| 3849 | <else> |
| 3850 | <text macro="date-issued-full"/> |
| 3851 | </else> |
| 3852 | </choose> |
| 3853 | </group> |
| 3854 | </macro> |
| 3855 | <!-- 6.2.1. Legal title --> |
| 3856 | <macro name="legal-title"> |
| 3857 | <choose> |
| 3858 | <if match="any" type="bill legal_case legislation regulation treaty"> |
| 3859 | <text text-case="title" variable="title"/> |
| 3860 | </if> |
| 3861 | <else-if type="hearing"> |
| 3862 | <!-- use standard format (Bluebook 13.3) --> |
| 3863 | <group delimiter=": " font-style="italic"> |
| 3864 | <text text-case="capitalize-first" variable="title"/> |
| 3865 | <group delimiter=" "> |
| 3866 | <text term="hearing" text-case="capitalize-first"/> |
| 3867 | <group delimiter=" "> |
| 3868 | <text term="on"/> |
| 3869 | <text variable="number"/> |
| 3870 | </group> |
| 3871 | <group delimiter=" "> |
| 3872 | <text value="before the"/> |
| 3873 | <text variable="section"/> |
| 3874 | </group> |
| 3875 | </group> |
| 3876 | </group> |
| 3877 | </else-if> |
| 3878 | </choose> |
| 3879 | </macro> |
| 3880 | <!-- 6.2.2. Legal identifier --> |
| 3881 | <macro name="legal-identifier"> |
| 3882 | <group delimiter=" " prefix="(" suffix=")"> |
| 3883 | <choose> |
| 3884 | <if type="hearing"> |
| 3885 | <!-- Use the 'verb' form of the hearing term to hold 'testimony of' --> |
| 3886 | <text form="verb" term="hearing"/> |
| 3887 | <names variable="author"> |
| 3888 | <name and="symbol" initialize="false"/> |
| 3889 | </names> |
| 3890 | </if> |
| 3891 | <else-if match="any" type="bill legislation regulation"> |
| 3892 | <!-- For uncodified regulations, assume future code section is in `status`. --> |
| 3893 | <text variable="status"/> |
| 3894 | </else-if> |
| 3895 | </choose> |
| 3896 | </group> |
| 3897 | </macro> |
| 3898 | <macro name="legal-identifier-bill-report"> |
| 3899 | <group delimiter=" "> |
| 3900 | <text variable="genre"/> |
| 3901 | <choose> |
| 3902 | <if match="any" variable="authority chapter-number container-title"> |
| 3903 | <text variable="number"/> |
| 3904 | </if> |
| 3905 | <else> |
| 3906 | <!-- If there is no legislative body, session number, or code/record title, assume the item is a congressional report and include 'No.' label. --> |
| 3907 | <text macro="label-number-capitalized"/> |
| 3908 | </else> |
| 3909 | </choose> |
| 3910 | </group> |
| 3911 | </macro> |
| 3912 | <!-- 6.3. Legal source --> |
| 3913 | <macro name="legal-source"> |
| 3914 | <!-- Expect legal item `container-title` to be stored in short form --> |
| 3915 | <choose> |
| 3916 | <if type="bill"> |
| 3917 | <text macro="legal-source-bill"/> |
| 3918 | </if> |
| 3919 | <else-if type="hearing"> |
| 3920 | <text macro="legal-source-hearing"/> |
| 3921 | </else-if> |
| 3922 | <else-if type="legal_case"> |
| 3923 | <text macro="legal-source-case"/> |
| 3924 | </else-if> |
| 3925 | <else-if type="legislation"> |
| 3926 | <text macro="legal-source-legislation"/> |
| 3927 | </else-if> |
| 3928 | <else-if type="regulation"> |
| 3929 | <text macro="legal-source-regulation"/> |
| 3930 | </else-if> |
| 3931 | <else-if type="treaty"> |
| 3932 | <text macro="legal-source-treaty"/> |
| 3933 | </else-if> |
| 3934 | </choose> |
| 3935 | </macro> |
| 3936 | <!-- Legal source types --> |
| 3937 | <macro name="legal-source-bill"> |
| 3938 | <group delimiter=", "> |
| 3939 | <text macro="legal-identifier-bill-report"/> |
| 3940 | <group delimiter=" "> |
| 3941 | <text variable="authority"/> |
| 3942 | <!-- `chapter-number` is a session number --> |
| 3943 | <text variable="chapter-number"/> |
| 3944 | </group> |
| 3945 | <group delimiter=" "> |
| 3946 | <text variable="volume"/> |
| 3947 | <text variable="container-title"/> |
| 3948 | <text variable="page-first"/> |
| 3949 | </group> |
| 3950 | </group> |
| 3951 | </macro> |
| 3952 | <macro name="legal-source-case"> |
| 3953 | <group delimiter=" "> |
| 3954 | <choose> |
| 3955 | <if variable="container-title"> |
| 3956 | <text variable="volume"/> |
| 3957 | <text variable="container-title"/> |
| 3958 | <text macro="label-section-symbol"/> |
| 3959 | <choose> |
| 3960 | <if match="any" variable="page page-first"> |
| 3961 | <text variable="page-first"/> |
| 3962 | </if> |
| 3963 | <else> |
| 3964 | <text value="___"/> |
| 3965 | </else> |
| 3966 | </choose> |
| 3967 | </if> |
| 3968 | <else> |
| 3969 | <text macro="label-number-capitalized"/> |
| 3970 | </else> |
| 3971 | </choose> |
| 3972 | </group> |
| 3973 | </macro> |
| 3974 | <macro name="legal-source-hearing"> |
| 3975 | <group delimiter=" "> |
| 3976 | <text variable="authority"/> |
| 3977 | <!-- `chapter-number` is a session number --> |
| 3978 | <text variable="chapter-number"/> |
| 3979 | </group> |
| 3980 | </macro> |
| 3981 | <macro name="legal-source-legislation"> |
| 3982 | <choose> |
| 3983 | <if variable="number"> |
| 3984 | <!-- `number` is a public law number --> |
| 3985 | <group delimiter=", "> |
| 3986 | <group delimiter=" "> |
| 3987 | <choose> |
| 3988 | <if variable="genre"> |
| 3989 | <text text-case="capitalize-first" variable="genre"/> |
| 3990 | </if> |
| 3991 | <else> |
| 3992 | <text form="short" term="legislation" text-case="capitalize-first"/> |
| 3993 | </else> |
| 3994 | </choose> |
| 3995 | <text macro="label-number-capitalized"/> |
| 3996 | </group> |
| 3997 | <group delimiter=" "> |
| 3998 | <text variable="volume"/> |
| 3999 | <text variable="container-title"/> |
| 4000 | <text variable="page-first"/> |
| 4001 | </group> |
| 4002 | </group> |
| 4003 | </if> |
| 4004 | <else> |
| 4005 | <group delimiter=" "> |
| 4006 | <text variable="volume"/> |
| 4007 | <text variable="container-title"/> |
| 4008 | <choose> |
| 4009 | <if variable="section"> |
| 4010 | <text macro="label-section-symbol"/> |
| 4011 | </if> |
| 4012 | <else> |
| 4013 | <text variable="page-first"/> |
| 4014 | </else> |
| 4015 | </choose> |
| 4016 | </group> |
| 4017 | </else> |
| 4018 | </choose> |
| 4019 | </macro> |
| 4020 | <macro name="legal-source-regulation"> |
| 4021 | <group delimiter=", "> |
| 4022 | <group delimiter=" "> |
| 4023 | <text variable="genre"/> |
| 4024 | <text macro="label-number-capitalized"/> |
| 4025 | </group> |
| 4026 | <group delimiter=" "> |
| 4027 | <text variable="volume"/> |
| 4028 | <text variable="container-title"/> |
| 4029 | <choose> |
| 4030 | <if variable="section"> |
| 4031 | <text macro="label-section-symbol"/> |
| 4032 | </if> |
| 4033 | <else> |
| 4034 | <text variable="page-first"/> |
| 4035 | </else> |
| 4036 | </choose> |
| 4037 | </group> |
| 4038 | </group> |
| 4039 | </macro> |
| 4040 | <macro name="legal-source-treaty"> |
| 4041 | <group delimiter=" "> |
| 4042 | <number variable="volume"/> |
| 4043 | <text variable="container-title"/> |
| 4044 | <choose> |
| 4045 | <if match="any" variable="page page-first"> |
| 4046 | <text variable="page-first"/> |
| 4047 | </if> |
| 4048 | <else> |
| 4049 | <text macro="label-number-capitalized"/> |
| 4050 | </else> |
| 4051 | </choose> |
| 4052 | </group> |
| 4053 | </macro> |
| 4054 | <!-- Citation --> |
| 4055 | <macro name="citation-author-date-item"> |
| 4056 | <group delimiter=", "> |
| 4057 | <choose> |
| 4058 | <if type="classic"> |
| 4059 | <text macro="author-inline"/> |
| 4060 | <choose> |
| 4061 | <if variable="author"> |
| 4062 | <text macro="title-and-descriptions-short"/> |
| 4063 | </if> |
| 4064 | </choose> |
| 4065 | </if> |
| 4066 | <else-if match="any" type="interview personal_communication"> |
| 4067 | <choose> |
| 4068 | <if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 4069 | <!-- accessible `interview` or `personal_communication` uses standard format --> |
| 4070 | <choose> |
| 4071 | <if match="any" variable="event-date issued"> |
| 4072 | <group delimiter=" "> |
| 4073 | <text macro="author-inline"/> |
| 4074 | <text macro="date-short"/> |
| 4075 | </group> |
| 4076 | </if> |
| 4077 | <else> |
| 4078 | <text macro="author-inline"/> |
| 4079 | <text macro="date-short"/> |
| 4080 | </else> |
| 4081 | </choose> |
| 4082 | </if> |
| 4083 | <else> |
| 4084 | <!-- inaccessible `interview` or `personal_communication` uses in-text format (CMOS18 14.111) --> |
| 4085 | <text macro="author-inline"/> |
| 4086 | <text macro="title-and-descriptions-short"/> |
| 4087 | <choose> |
| 4088 | <if position="first"> |
| 4089 | <choose> |
| 4090 | <if type="interview"> |
| 4091 | <text macro="date-short"/> |
| 4092 | </if> |
| 4093 | </choose> |
| 4094 | <text macro="source-medium-note"/> |
| 4095 | </if> |
| 4096 | </choose> |
| 4097 | </else> |
| 4098 | </choose> |
| 4099 | </else-if> |
| 4100 | <else-if match="any" variable="event-date issued"> |
| 4101 | <group delimiter=" "> |
| 4102 | <text macro="author-inline"/> |
| 4103 | <text macro="date-short"/> |
| 4104 | </group> |
| 4105 | </else-if> |
| 4106 | <else> |
| 4107 | <!--- comma with forthcoming or n.d. --> |
| 4108 | <text macro="author-inline"/> |
| 4109 | <text macro="date-short"/> |
| 4110 | </else> |
| 4111 | </choose> |
| 4112 | </group> |
| 4113 | </macro> |
| 4114 | <citation collapse="year" disambiguate-add-givenname="true" disambiguate-add-names="true" disambiguate-add-year-suffix="true" et-al-min="3" et-al-use-first="1" givenname-disambiguation-rule="primary-name"> |
| 4115 | <layout delimiter="; " prefix="(" suffix=")"> |
| 4116 | <group delimiter=", "> |
| 4117 | <choose> |
| 4118 | <if match="none" type="classic"> |
| 4119 | <text macro="citation-author-date-item"/> |
| 4120 | <text macro="source-locator-author-date"/> |
| 4121 | </if> |
| 4122 | <!-- with `classic`, a non-numeric canonical reference or identifying number is separated by a space rather than a comma (CMOS18 14.145) --> |
| 4123 | <else-if is-numeric="locator"> |
| 4124 | <text macro="citation-author-date-item"/> |
| 4125 | <text macro="source-locator-author-date"/> |
| 4126 | </else-if> |
| 4127 | <else-if locator="chapter line verse" match="any"> |
| 4128 | <group delimiter=" "> |
| 4129 | <text macro="citation-author-date-item"/> |
| 4130 | <text macro="source-locator-author-date"/> |
| 4131 | </group> |
| 4132 | </else-if> |
| 4133 | <else> |
| 4134 | <text macro="citation-author-date-item"/> |
| 4135 | <text macro="source-locator-author-date"/> |
| 4136 | </else> |
| 4137 | </choose> |
| 4138 | </group> |
| 4139 | </layout> |
| 4140 | </citation> |
| 4141 | <!-- Bibliography --> |
| 4142 | <macro name="bibliography-author-date"> |
| 4143 | <group delimiter=". "> |
| 4144 | <choose> |
| 4145 | <if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 4146 | <!-- Legal items have different orders and delimiters --> |
| 4147 | <text macro="legal-reference"/> |
| 4148 | <text macro="source-date-accessed-DOI-URL-bib"/> |
| 4149 | <text variable="references"/> |
| 4150 | </if> |
| 4151 | <else> |
| 4152 | <group delimiter=" "> |
| 4153 | <text macro="author-bib"/> |
| 4154 | <choose> |
| 4155 | <!-- give key to abbreviations (CMOS18 13.127, 14.104) --> |
| 4156 | <!-- TODO: add `authority` and `publisher` if it becomes possible to test for short forms --> |
| 4157 | <if type="webpage" variable="publisher"/> |
| 4158 | <else-if type="webpage" variable="container-title container-title-short"> |
| 4159 | <text prefix="(" suffix=")" text-case="title" variable="container-title"/> |
| 4160 | </else-if> |
| 4161 | </choose> |
| 4162 | </group> |
| 4163 | <text macro="date"/> |
| 4164 | <text macro="title-and-source-bib"/> |
| 4165 | <text variable="references"/> |
| 4166 | </else> |
| 4167 | </choose> |
| 4168 | </group> |
| 4169 | </macro> |
| 4170 | <bibliography et-al-min="7" et-al-use-first="3" hanging-indent="true"> |
| 4171 | <sort> |
| 4172 | <key macro="author-sort"/> |
| 4173 | <key macro="date-sort-group"/> |
| 4174 | <key macro="date-sort-year"/> |
| 4175 | <key macro="date"/> |
| 4176 | <key macro="title-and-descriptions-bib"/> |
| 4177 | <key macro="source-bib"/> |
| 4178 | <key variable="volume"/> |
| 4179 | <key variable="part-number"/> |
| 4180 | <key variable="event-date"/> |
| 4181 | <key variable="issued"/> |
| 4182 | <key macro="source-archive-bib"/> |
| 4183 | </sort> |
| 4184 | <layout suffix="."> |
| 4185 | <choose> |
| 4186 | <if type="classic"> |
| 4187 | <choose> |
| 4188 | <if match="any" variable="archive editor translator publisher"> |
| 4189 | <text macro="bibliography-author-date"/> |
| 4190 | </if> |
| 4191 | </choose> |
| 4192 | </if> |
| 4193 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 4194 | <choose> |
| 4195 | <if variable="author"> |
| 4196 | <!-- Signed reference entries appear in the bibliography (CMOS18 14.132) --> |
| 4197 | <text macro="bibliography-author-date"/> |
| 4198 | </if> |
| 4199 | <else-if match="any" variable="DOI URL"> |
| 4200 | <!-- Provide a bibliography if necessary identifying information is not in text --> |
| 4201 | <text macro="bibliography-author-date"/> |
| 4202 | </else-if> |
| 4203 | </choose> |
| 4204 | </else-if> |
| 4205 | <!-- Personal communications only appear in the bibliography if the reader can retrieve them (CMOS18 14.13, 14.111) --> |
| 4206 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 4207 | <text macro="bibliography-author-date"/> |
| 4208 | </else-if> |
| 4209 | <else-if match="any" type="interview personal_communication"/> |
| 4210 | <else> |
| 4211 | <text macro="bibliography-author-date"/> |
| 4212 | </else> |
| 4213 | </choose> |
| 4214 | </layout> |
| 4215 | </bibliography> |
| 4216 | </style> |