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