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