oxedyne/fe2o3/fe2o3_text/data/csl/styles/chicago-notes-bibliography-subsequent-author-title-17th-edition.csl
236 KiB, 1 run
created by r1870400018:73048, 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 17th edition (notes and bibliography, subsequent author-title)</title> |
| 6 | <title-short>CMOS/CMS 17e with Bluebook (notes and bibliography/NB [14.19], subsequent author-title [14.34])</title-short> |
| 7 | <id>http://www.zotero.org/styles/chicago-notes-bibliography-subsequent-author-title-17th-edition</id> |
| 8 | <link href="http://www.zotero.org/styles/chicago-notes-bibliography-subsequent-author-title-17th-edition" rel="self"/> |
| 9 | <link href="http://www.zotero.org/styles/chicago-notes-bibliography" rel="template"/> |
| 10 | <link href="https://www.chicagomanualofstyle.org/" rel="documentation"/> |
| 11 | <link href="https://zotero.org/groups/2205533/collections/5V67EPX3" rel="documentation"/> |
| 12 | <author> |
| 13 | <name>Andrew Dunning</name> |
| 14 | <uri>https://orcid.org/0000-0003-0464-5036</uri> |
| 15 | </author> |
| 16 | <category citation-format="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), notes and bibliography system, 17th edition, with author-title subsequent shortened citations (CMOS17 14.34)</summary> |
| 33 | <updated>2025-02-09T00:00:00+00:00</updated> |
| 34 | <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> |
| 35 | </info> |
| 36 | <locale xml:lang="en"> |
| 37 | <terms> |
| 38 | <!-- Chicago omits 'by' from `verb-short` forms; it abbreviates only the most common roles --> |
| 39 | <term name="advance-online-publication">ahead of print</term> |
| 40 | <term name="anonymous">unsigned</term> |
| 41 | <term form="verb-short" name="collection-editor">ed.</term> |
| 42 | <term form="short" name="collection-number"> |
| 43 | <single>vol.</single> |
| 44 | <multiple>vols.</multiple> |
| 45 | </term> |
| 46 | <term form="verb-short" name="compiler">comp.</term> |
| 47 | <term form="verb-short" name="editor">ed.</term> |
| 48 | <term form="short" name="editor-translator"> |
| 49 | <single>ed. and trans.</single> |
| 50 | <multiple>eds. and trans.</multiple> |
| 51 | </term> |
| 52 | <term form="short" name="editortranslator"> |
| 53 | <single>ed. and trans.</single> |
| 54 | <multiple>eds. and trans.</multiple> |
| 55 | </term> |
| 56 | <term form="verb" name="editor-translator">edited and translated by</term> |
| 57 | <term form="verb" name="editortranslator">edited and translated by</term> |
| 58 | <term form="verb-short" name="editor-translator">ed. and trans.</term> |
| 59 | <term form="verb-short" name="editortranslator">ed. and trans.</term> |
| 60 | <term form="verb-short" name="illustrator">ill.</term> |
| 61 | <term form="short" name="legislation">Pub. L.</term> |
| 62 | <term name="manuscript">unpublished manuscript</term> |
| 63 | <term name="original-work-published">originally published as</term> |
| 64 | <term form="short" name="paper-conference">paper</term> |
| 65 | <term name="timestamp">at</term> |
| 66 | <term form="verb-short" name="translator">trans.</term> |
| 67 | </terms> |
| 68 | </locale> |
| 69 | <locale xml:lang="en-GB"> |
| 70 | <terms> |
| 71 | <!-- the Bibliography of Additional Resources recommends the New Oxford Style Manual as a British English guide, which the `en-GB` locale follows --> |
| 72 | <term form="short" name="collection-number"> |
| 73 | <single>vol.</single> |
| 74 | <multiple>vols</multiple> |
| 75 | </term> |
| 76 | <term form="short" name="editor-translator"> |
| 77 | <single>ed. and trans.</single> |
| 78 | <multiple>eds and trans.</multiple> |
| 79 | </term> |
| 80 | <term form="short" name="editortranslator"> |
| 81 | <single>ed. and trans.</single> |
| 82 | <multiple>eds and trans.</multiple> |
| 83 | </term> |
| 84 | <term form="verb-short" name="illustrator">illus.</term> |
| 85 | </terms> |
| 86 | </locale> |
| 87 | <!-- Contents: |
| 88 | |
| 89 | This file interprets Chicago using APA's four basic reference elements |
| 90 | (cf. CMOS18 14.2, 14.64, 14.161): |
| 91 | |
| 92 | 1. Author (CMOS18 13.74-86) |
| 93 | 2. Date (author-date system only, CMOS18 13.102) |
| 94 | 3. Title and descriptions (CMOS18 13.87-101) |
| 95 | 3.1. Title |
| 96 | 3.2. Description |
| 97 | 3.3. Identifiers (edition, contributors, volume) |
| 98 | 4. Source |
| 99 | 4.1. Serial sources |
| 100 | 4.2. Monographic sources |
| 101 | 4.3. Series |
| 102 | 4.4. Event |
| 103 | 4.5. Publisher |
| 104 | 4.6. Date |
| 105 | 4.7. Locator (including page references) |
| 106 | 4.8. Medium |
| 107 | 4.9. Archival location |
| 108 | 4.10. URL or persistent identifier |
| 109 | |
| 110 | Freeform annotations to bibliography entries: |
| 111 | |
| 112 | 5. Notes |
| 113 | |
| 114 | Chicago also provides parallel rules for legal references following |
| 115 | The Bluebook: A Uniform System of Citation (code shared with APA): |
| 116 | |
| 117 | 6. Legal references |
| 118 | --> |
| 119 | <!-- In this file, macros suffixed `-bib` and `-note` are parallel versions |
| 120 | of the same features for the bibliography and notes, and all changes |
| 121 | must be applied to both. They should only contain differences of |
| 122 | punctuation (periods in bibliography, commas in notes) and capitalization, |
| 123 | except where the comments indicate structural changes. --> |
| 124 | <!-- Categories of CSL item types: |
| 125 | |
| 126 | Serial |
| 127 | : article-journal article-magazine article-newspaper periodical post-weblog review review-book |
| 128 | |
| 129 | Serial or Monographic |
| 130 | : interview paper-conference |
| 131 | |
| 132 | Monographic with any of `collection-editor compiler editor editorial-director`. |
| 133 | A serial `paper-conference` is unpublished if it lacks any of `issue page supplement-number volume`. |
| 134 | |
| 135 | Monographic |
| 136 | : article book broadcast chapter classic collection dataset document |
| 137 | entry entry-dictionary entry-encyclopedia event figure |
| 138 | graphic manuscript map motion_picture musical_score |
| 139 | pamphlet patent performance personal_communication post report |
| 140 | software song speech standard thesis webpage |
| 141 | |
| 142 | Legal |
| 143 | : bill hearing legal_case legislation regulation treaty |
| 144 | --> |
| 145 | <!-- Variable labels --> |
| 146 | <macro name="label-chapter-number"> |
| 147 | <group delimiter=" "> |
| 148 | <choose> |
| 149 | <if is-numeric="chapter-number" type="song"> |
| 150 | <text value="track"/> |
| 151 | </if> |
| 152 | <else-if is-numeric="chapter-number"> |
| 153 | <label form="short" variable="chapter-number"/> |
| 154 | </else-if> |
| 155 | </choose> |
| 156 | <text variable="chapter-number"/> |
| 157 | </group> |
| 158 | </macro> |
| 159 | <macro name="label-chapter-number-capitalized"> |
| 160 | <group delimiter=" "> |
| 161 | <choose> |
| 162 | <if is-numeric="chapter-number" type="song"> |
| 163 | <text text-case="capitalize-first" value="track"/> |
| 164 | </if> |
| 165 | <else-if is-numeric="chapter-number"> |
| 166 | <label form="short" text-case="capitalize-first" variable="chapter-number"/> |
| 167 | </else-if> |
| 168 | </choose> |
| 169 | <text text-case="capitalize-first" variable="chapter-number"/> |
| 170 | </group> |
| 171 | </macro> |
| 172 | <macro name="label-collection-number"> |
| 173 | <group delimiter=" "> |
| 174 | <choose> |
| 175 | <if is-numeric="collection-number"> |
| 176 | <label form="short" variable="collection-number"/> |
| 177 | </if> |
| 178 | </choose> |
| 179 | <text variable="collection-number"/> |
| 180 | </group> |
| 181 | </macro> |
| 182 | <macro name="label-edition"> |
| 183 | <group delimiter=" "> |
| 184 | <choose> |
| 185 | <if is-numeric="edition"> |
| 186 | <number form="ordinal" variable="edition"/> |
| 187 | <label form="short" variable="edition"/> |
| 188 | </if> |
| 189 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 190 | <!-- serial types: full label (CMOS18 14.89) --> |
| 191 | <text variable="edition"/> |
| 192 | <label variable="edition"/> |
| 193 | </else-if> |
| 194 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 195 | <!-- monographic types --> |
| 196 | <text variable="edition"/> |
| 197 | </else-if> |
| 198 | <else-if match="any" type="interview paper-conference"> |
| 199 | <!-- serial types --> |
| 200 | <text variable="edition"/> |
| 201 | <label variable="edition"/> |
| 202 | </else-if> |
| 203 | <else> |
| 204 | <!-- monographic types --> |
| 205 | <text variable="edition"/> |
| 206 | </else> |
| 207 | </choose> |
| 208 | </group> |
| 209 | </macro> |
| 210 | <macro name="label-edition-capitalized"> |
| 211 | <group delimiter=" "> |
| 212 | <choose> |
| 213 | <if is-numeric="edition"> |
| 214 | <number form="ordinal" variable="edition"/> |
| 215 | <label form="short" variable="edition"/> |
| 216 | </if> |
| 217 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 218 | <!-- serial types: full label (CMOS18 14.89) --> |
| 219 | <text text-case="title" variable="edition"/> |
| 220 | <label text-case="capitalize-first" variable="edition"/> |
| 221 | </else-if> |
| 222 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 223 | <!-- monographic types --> |
| 224 | <text text-case="capitalize-first" variable="edition"/> |
| 225 | </else-if> |
| 226 | <else-if match="any" type="interview paper-conference"> |
| 227 | <!-- serial types --> |
| 228 | <text text-case="title" variable="edition"/> |
| 229 | <label text-case="capitalize-first" variable="edition"/> |
| 230 | </else-if> |
| 231 | <else> |
| 232 | <!-- monographic types --> |
| 233 | <text text-case="capitalize-first" variable="edition"/> |
| 234 | </else> |
| 235 | </choose> |
| 236 | </group> |
| 237 | </macro> |
| 238 | <macro name="label-issue"> |
| 239 | <group delimiter=" "> |
| 240 | <label form="short" variable="issue"/> |
| 241 | <text variable="issue"/> |
| 242 | </group> |
| 243 | </macro> |
| 244 | <macro name="label-locator"> |
| 245 | <group delimiter=" "> |
| 246 | <choose> |
| 247 | <if locator="page"/> |
| 248 | <else-if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 249 | <!-- Bluebook-style labels for legal types (CMOS18 14.174) --> |
| 250 | <choose> |
| 251 | <if locator="chapter paragraph section" match="any"> |
| 252 | <label form="symbol" variable="locator"/> |
| 253 | </if> |
| 254 | <else> |
| 255 | <label form="short" variable="locator"/> |
| 256 | </else> |
| 257 | </choose> |
| 258 | </else-if> |
| 259 | <else-if is-numeric="locator" locator="line"> |
| 260 | <label variable="locator"/> |
| 261 | </else-if> |
| 262 | <else-if is-numeric="locator"> |
| 263 | <label form="short" variable="locator"/> |
| 264 | </else-if> |
| 265 | <else-if locator="chapter line verse" match="any"/> |
| 266 | <!-- a non-numeric canonical reference is identified by its formatting and does not need a label (CMOS18 14.143-54) --> |
| 267 | <else> |
| 268 | <label form="short" variable="locator"/> |
| 269 | </else> |
| 270 | </choose> |
| 271 | <text variable="locator"/> |
| 272 | </group> |
| 273 | </macro> |
| 274 | <macro name="label-locator-all"> |
| 275 | <group delimiter=" "> |
| 276 | <label form="short" variable="locator"/> |
| 277 | <text variable="locator"/> |
| 278 | </group> |
| 279 | </macro> |
| 280 | <macro name="label-number"> |
| 281 | <group delimiter=" "> |
| 282 | <choose> |
| 283 | <if type="standard"/> |
| 284 | <else-if is-numeric="number" match="any" type="legislation regulation"> |
| 285 | <label form="short" variable="number"/> |
| 286 | </else-if> |
| 287 | </choose> |
| 288 | <text variable="number"/> |
| 289 | </group> |
| 290 | </macro> |
| 291 | <macro name="label-number-capitalized"> |
| 292 | <group delimiter=" "> |
| 293 | <choose> |
| 294 | <if type="standard"/> |
| 295 | <else-if is-numeric="number" match="any" type="legislation regulation"> |
| 296 | <label form="short" text-case="capitalize-first" variable="number"/> |
| 297 | </else-if> |
| 298 | </choose> |
| 299 | <text text-case="capitalize-first" variable="number"/> |
| 300 | </group> |
| 301 | </macro> |
| 302 | <macro name="label-number-of-volumes"> |
| 303 | <group delimiter=" "> |
| 304 | <text variable="number-of-volumes"/> |
| 305 | <choose> |
| 306 | <if is-numeric="number-of-volumes"> |
| 307 | <label form="short" variable="number-of-volumes"/> |
| 308 | </if> |
| 309 | </choose> |
| 310 | </group> |
| 311 | </macro> |
| 312 | <macro name="label-page"> |
| 313 | <group delimiter=" "> |
| 314 | <label form="short" variable="page"/> |
| 315 | <text variable="page"/> |
| 316 | </group> |
| 317 | </macro> |
| 318 | <macro name="label-part-number"> |
| 319 | <group delimiter=" "> |
| 320 | <choose> |
| 321 | <if is-numeric="part-number"> |
| 322 | <!-- TODO: Replace with `part-number` label when CSL provides one --> |
| 323 | <text form="short" term="part"/> |
| 324 | </if> |
| 325 | </choose> |
| 326 | <text variable="part-number"/> |
| 327 | </group> |
| 328 | </macro> |
| 329 | <macro name="label-part-number-capitalized"> |
| 330 | <group delimiter=" "> |
| 331 | <choose> |
| 332 | <if is-numeric="part-number"> |
| 333 | <!-- TODO: Replace with `part-number` label when CSL provides one --> |
| 334 | <text form="short" term="part" text-case="capitalize-first"/> |
| 335 | </if> |
| 336 | </choose> |
| 337 | <text text-case="capitalize-first" variable="part-number"/> |
| 338 | </group> |
| 339 | </macro> |
| 340 | <macro name="label-section"> |
| 341 | <group delimiter=" "> |
| 342 | <choose> |
| 343 | <if is-numeric="section"> |
| 344 | <label form="short" variable="section"/> |
| 345 | </if> |
| 346 | </choose> |
| 347 | <text text-case="title" variable="section"/> |
| 348 | </group> |
| 349 | </macro> |
| 350 | <macro name="label-section-capitalized"> |
| 351 | <group delimiter=" "> |
| 352 | <choose> |
| 353 | <if is-numeric="section"> |
| 354 | <label form="short" text-case="capitalize-first" variable="section"/> |
| 355 | </if> |
| 356 | </choose> |
| 357 | <text text-case="title" variable="section"/> |
| 358 | </group> |
| 359 | </macro> |
| 360 | <macro name="label-section-symbol"> |
| 361 | <group delimiter=" "> |
| 362 | <label form="symbol" variable="section"/> |
| 363 | <text variable="section"/> |
| 364 | </group> |
| 365 | </macro> |
| 366 | <macro name="label-supplement-number"> |
| 367 | <group delimiter=" "> |
| 368 | <choose> |
| 369 | <!-- TODO: Replace with `supplement-number` label when CSL provides one --> |
| 370 | <if variable="issue supplement-number"> |
| 371 | <!-- if there is both an issue and supplement number, do not label both as 'no.' --> |
| 372 | <text form="short" term="supplement"/> |
| 373 | </if> |
| 374 | <else-if is-numeric="supplement-number" variable="volume-title"> |
| 375 | <!-- if there is a volume title, it is already described as a supplement --> |
| 376 | <text form="short" term="issue"/> |
| 377 | </else-if> |
| 378 | <else-if is-numeric="supplement-number" type="periodical" variable="title"> |
| 379 | <text form="short" term="issue"/> |
| 380 | </else-if> |
| 381 | <else-if is-numeric="supplement-number"> |
| 382 | <text form="short" term="supplement"/> |
| 383 | </else-if> |
| 384 | </choose> |
| 385 | <text variable="supplement-number"/> |
| 386 | </group> |
| 387 | </macro> |
| 388 | <macro name="label-version"> |
| 389 | <group delimiter=" "> |
| 390 | <choose> |
| 391 | <if type="software"> |
| 392 | <!-- short version label for software (CMOS18 14.169) --> |
| 393 | <label form="short" variable="version"/> |
| 394 | </if> |
| 395 | <else> |
| 396 | <label variable="version"/> |
| 397 | </else> |
| 398 | </choose> |
| 399 | <text variable="version"/> |
| 400 | </group> |
| 401 | </macro> |
| 402 | <macro name="label-version-capitalized"> |
| 403 | <group delimiter=" "> |
| 404 | <choose> |
| 405 | <if type="software"> |
| 406 | <!-- short version label for software (CMOS18 14.169) --> |
| 407 | <label form="short" text-case="capitalize-first" variable="version"/> |
| 408 | </if> |
| 409 | <else> |
| 410 | <label text-case="capitalize-first" variable="version"/> |
| 411 | </else> |
| 412 | </choose> |
| 413 | <text variable="version"/> |
| 414 | </group> |
| 415 | </macro> |
| 416 | <macro name="label-volume"> |
| 417 | <group delimiter=" "> |
| 418 | <choose> |
| 419 | <if is-numeric="volume"> |
| 420 | <label form="short" variable="volume"/> |
| 421 | </if> |
| 422 | </choose> |
| 423 | <text variable="volume"/> |
| 424 | </group> |
| 425 | </macro> |
| 426 | <macro name="label-volume-capitalized"> |
| 427 | <group delimiter=" "> |
| 428 | <choose> |
| 429 | <if is-numeric="volume"> |
| 430 | <label form="short" text-case="capitalize-first" variable="volume"/> |
| 431 | </if> |
| 432 | </choose> |
| 433 | <text text-case="capitalize-first" variable="volume"/> |
| 434 | </group> |
| 435 | </macro> |
| 436 | <!-- 1. Author (CMOS18 13.74-86) --> |
| 437 | <macro name="author-bib"> |
| 438 | <names variable="composer"> |
| 439 | <name and="text" delimiter-precedes-last="always" initialize="false" name-as-sort-order="first"/> |
| 440 | <label form="short" prefix=", "/> |
| 441 | <substitute> |
| 442 | <names variable="author"/> |
| 443 | <!-- cf. `interview` model (CMOS18 14.110); if it is desired to prioritize `host` over `guest`, the latter could be encoded as a `contributor` --> |
| 444 | <names variable="guest"/> |
| 445 | <names variable="host"/> |
| 446 | <choose> |
| 447 | <if type="song"> |
| 448 | <names variable="performer"/> |
| 449 | </if> |
| 450 | </choose> |
| 451 | <choose> |
| 452 | <if type="classic"> |
| 453 | <!-- contributors fall after the title of `classic` (CMOS18 14.147) --> |
| 454 | <text macro="author-title-substitute-bib"/> |
| 455 | </if> |
| 456 | <else-if type="entry-dictionary" variable="container-title"> |
| 457 | <!-- contributors fall after the title of unsigned reference entries (CMOS18 14.130) --> |
| 458 | <text macro="author-title-substitute-container"/> |
| 459 | </else-if> |
| 460 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 461 | <text macro="author-title-substitute-container"/> |
| 462 | </else-if> |
| 463 | </choose> |
| 464 | <names variable="illustrator"/> |
| 465 | <choose> |
| 466 | <!-- 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) --> |
| 467 | <if variable="container-title"/> |
| 468 | <else-if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 469 | <names variable="collection-editor"/> |
| 470 | </else-if> |
| 471 | </choose> |
| 472 | <choose> |
| 473 | <if match="none" type="standard"> |
| 474 | <names variable="editor-translator"/> |
| 475 | <names variable="editor"/> |
| 476 | <names variable="translator"/> |
| 477 | <names variable="collection-editor"/> |
| 478 | </if> |
| 479 | </choose> |
| 480 | <names variable="director"/> |
| 481 | <choose> |
| 482 | <!-- serial `broadcast` prioritizes title (CMOS18 14.165, 14.168) --> |
| 483 | <if type="broadcast" variable="container-title number title"/> |
| 484 | <else> |
| 485 | <names variable="producer"/> |
| 486 | <names variable="executive-producer"/> |
| 487 | <names variable="series-creator"/> |
| 488 | <choose> |
| 489 | <if type="broadcast"> |
| 490 | <names variable="contributor"/> |
| 491 | </if> |
| 492 | </choose> |
| 493 | </else> |
| 494 | </choose> |
| 495 | <names variable="editorial-director"/> |
| 496 | <names variable="compiler"/> |
| 497 | <choose> |
| 498 | <if match="any" type="event performance speech"> |
| 499 | <names variable="chair"/> |
| 500 | <names variable="organizer"/> |
| 501 | </if> |
| 502 | </choose> |
| 503 | <names variable="curator"/> |
| 504 | <choose> |
| 505 | <if match="any" type="software webpage"> |
| 506 | <!-- `software` listed under the name of the publisher or developer (CMOS18 14.169); `webpage` listed under a site owner or sponsor (CMOS18 14.104) --> |
| 507 | <text variable="publisher"/> |
| 508 | </if> |
| 509 | <else-if type="standard"> |
| 510 | <!-- `standard` listed in bibliography under organization, but note omits this (CMOS18 14.159) --> |
| 511 | <text variable="authority"/> |
| 512 | </else-if> |
| 513 | </choose> |
| 514 | <text macro="author-title-substitute-container"/> |
| 515 | <text macro="author-title-substitute-bib"/> |
| 516 | <choose> |
| 517 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"/> |
| 518 | <else-if type="manuscript"> |
| 519 | <text macro="source-archive-bib"/> |
| 520 | </else-if> |
| 521 | </choose> |
| 522 | </substitute> |
| 523 | </names> |
| 524 | </macro> |
| 525 | <macro name="author-note"> |
| 526 | <names variable="composer"> |
| 527 | <name and="text" initialize="false"/> |
| 528 | <label form="short" prefix=", "/> |
| 529 | <substitute> |
| 530 | <names variable="author"/> |
| 531 | <!-- cf. `interview` model (CMOS18 14.110); use `contributor` if `host` should be prioritized --> |
| 532 | <names variable="guest"/> |
| 533 | <names variable="host"/> |
| 534 | <choose> |
| 535 | <if type="song"> |
| 536 | <names variable="performer"/> |
| 537 | </if> |
| 538 | </choose> |
| 539 | <choose> |
| 540 | <if match="any" type="classic performance"> |
| 541 | <!-- note contributors fall after the title of `classic` (CMOS18 14.147), `performance` (CMOS18 14.166) --> |
| 542 | <text macro="author-title-substitute-note"/> |
| 543 | </if> |
| 544 | <else-if type="broadcast" variable="container-title number title"> |
| 545 | <!-- note contributors fall after the title of `broadcast` (CMOS18 14.165) --> |
| 546 | <text macro="author-title-substitute-container-short"/> |
| 547 | </else-if> |
| 548 | <else-if match="any" type="broadcast motion_picture song"> |
| 549 | <!-- note contributors fall after the title of `broadcast`, `motion_picture` (CMOS18 14.165), `song` (CMOS18 14.163) --> |
| 550 | <text macro="author-title-substitute-note"/> |
| 551 | </else-if> |
| 552 | <!-- unsigned reference articles consulted in physical formats list `title` in the manner of a `sub-verbo` locator (CMOS18 14.130) --> |
| 553 | <else-if match="any" variable="DOI URL"/> |
| 554 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 555 | <text macro="author-title-substitute-reference-note"/> |
| 556 | </else-if> |
| 557 | </choose> |
| 558 | <names variable="illustrator"/> |
| 559 | <choose> |
| 560 | <!-- 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) --> |
| 561 | <if variable="container-title"/> |
| 562 | <else-if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 563 | <names variable="collection-editor"/> |
| 564 | </else-if> |
| 565 | </choose> |
| 566 | <choose> |
| 567 | <if match="none" type="standard"> |
| 568 | <names variable="editor-translator"/> |
| 569 | <names variable="editor"/> |
| 570 | <names variable="translator"/> |
| 571 | <names variable="collection-editor"/> |
| 572 | </if> |
| 573 | </choose> |
| 574 | <names variable="director"/> |
| 575 | <choose> |
| 576 | <!-- serial `broadcast` prioritizes title (CMOS18 14.165, 14.168) --> |
| 577 | <if type="broadcast" variable="container-title number title"/> |
| 578 | <else> |
| 579 | <names variable="producer"/> |
| 580 | <names variable="executive-producer"/> |
| 581 | <names variable="series-creator"/> |
| 582 | <choose> |
| 583 | <if type="broadcast"> |
| 584 | <names variable="contributor"/> |
| 585 | </if> |
| 586 | </choose> |
| 587 | </else> |
| 588 | </choose> |
| 589 | <names variable="editorial-director"/> |
| 590 | <names variable="compiler"/> |
| 591 | <choose> |
| 592 | <if match="any" type="event performance speech"> |
| 593 | <names variable="chair"/> |
| 594 | <names variable="organizer"/> |
| 595 | </if> |
| 596 | </choose> |
| 597 | <names variable="curator"/> |
| 598 | <!-- notes omit organization name for `software` (CMOS18 14.169), `standard` (CMOS18 14.159), and `webpage` (CMOS18 14.104) --> |
| 599 | <choose> |
| 600 | <!-- in notes, substitute `container-title` only if there is no article title, moving it before `genre` or `section` (CMOS18 14.89); shortened notes use this more liberally --> |
| 601 | <if match="any" variable="reviewed-genre reviewed-title title"/> |
| 602 | <else-if type="webpage"/> |
| 603 | <else> |
| 604 | <text macro="author-title-substitute-container"/> |
| 605 | </else> |
| 606 | </choose> |
| 607 | <choose> |
| 608 | <if match="none" variable="reviewed-genre reviewed-title title"> |
| 609 | <!-- TODO: workaround for citeproc bug shown in substitution with an unsigned review; remove when fixed --> |
| 610 | <text macro="author-title-substitute-note"/> |
| 611 | </if> |
| 612 | </choose> |
| 613 | <choose> |
| 614 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"/> |
| 615 | <else-if type="manuscript"> |
| 616 | <text macro="source-archive-note"/> |
| 617 | </else-if> |
| 618 | </choose> |
| 619 | </substitute> |
| 620 | </names> |
| 621 | </macro> |
| 622 | <macro name="author-short"> |
| 623 | <choose> |
| 624 | <if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 625 | <text macro="title-and-descriptions-short"/> |
| 626 | </if> |
| 627 | <else-if match="any" type="interview personal_communication"> |
| 628 | <text macro="author-short-and-recipient"/> |
| 629 | </else-if> |
| 630 | <else> |
| 631 | <names variable="composer"> |
| 632 | <name and="text" form="short" initialize="true"/> |
| 633 | <substitute> |
| 634 | <names variable="author"/> |
| 635 | <names variable="guest"/> |
| 636 | <names variable="host"/> |
| 637 | <choose> |
| 638 | <if type="song"> |
| 639 | <names variable="performer"/> |
| 640 | </if> |
| 641 | </choose> |
| 642 | <choose> |
| 643 | <if match="any" type="classic performance"> |
| 644 | <!-- note contributors fall after the title of `classic` (CMOS18 14.147), `performance` (CMOS18 14.166) --> |
| 645 | <text macro="author-title-substitute-short"/> |
| 646 | </if> |
| 647 | <else-if type="broadcast" variable="container-title number title"> |
| 648 | <!-- note contributors fall after the title of `broadcast` (CMOS18 14.165) --> |
| 649 | <text macro="author-title-substitute-container-short"/> |
| 650 | </else-if> |
| 651 | <else-if match="any" type="broadcast motion_picture song"> |
| 652 | <!-- note contributors fall after the title of `broadcast`, `motion_picture` (CMOS18 14.165), `song` (CMOS18 14.163) --> |
| 653 | <text macro="author-title-substitute-short"/> |
| 654 | </else-if> |
| 655 | <!-- unsigned reference articles consulted in physical formats list `title` in the manner of a `sub-verbo` locator (CMOS18 14.130) --> |
| 656 | <else-if match="any" variable="DOI URL"/> |
| 657 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 658 | <text macro="author-title-substitute-container-short"/> |
| 659 | </else-if> |
| 660 | </choose> |
| 661 | <names variable="illustrator"/> |
| 662 | <choose> |
| 663 | <!-- 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) --> |
| 664 | <if variable="container-title"/> |
| 665 | <else-if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 666 | <names variable="collection-editor"/> |
| 667 | </else-if> |
| 668 | </choose> |
| 669 | <choose> |
| 670 | <if match="none" type="standard"> |
| 671 | <names variable="editor-translator"/> |
| 672 | <names variable="editor"/> |
| 673 | <names variable="translator"/> |
| 674 | <names variable="collection-editor"/> |
| 675 | </if> |
| 676 | </choose> |
| 677 | <choose> |
| 678 | <if type="broadcast" variable="container-title number title"/> |
| 679 | <else> |
| 680 | <names variable="director"/> |
| 681 | <names variable="producer"/> |
| 682 | <names variable="executive-producer"/> |
| 683 | <names variable="series-creator"/> |
| 684 | <choose> |
| 685 | <if type="broadcast"> |
| 686 | <names variable="contributor"/> |
| 687 | </if> |
| 688 | </choose> |
| 689 | </else> |
| 690 | </choose> |
| 691 | <names variable="editorial-director"/> |
| 692 | <names variable="compiler"/> |
| 693 | <choose> |
| 694 | <if match="any" type="event performance speech"> |
| 695 | <names variable="chair"/> |
| 696 | <names variable="organizer"/> |
| 697 | </if> |
| 698 | </choose> |
| 699 | <names variable="curator"/> |
| 700 | <choose> |
| 701 | <!-- no Chicago definition for these shortened references; this follows the bibliography --> |
| 702 | <if match="any" type="software webpage"> |
| 703 | <!-- `software` listed under the name of the publisher or developer (CMOS18 14.169); `webpage` listed under a site owner or sponsor (CMOS18 14.104) --> |
| 704 | <text form="short" variable="publisher"/> |
| 705 | </if> |
| 706 | <else-if type="standard"> |
| 707 | <!-- `standard` listed in bibliography under organization (CMOS18 14.159) --> |
| 708 | <text form="short" variable="authority"/> |
| 709 | </else-if> |
| 710 | </choose> |
| 711 | <text macro="author-title-substitute-container-short"/> |
| 712 | <text macro="author-title-substitute-short"/> |
| 713 | <choose> |
| 714 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"/> |
| 715 | <else-if type="manuscript"> |
| 716 | <text macro="source-archive-note"/> |
| 717 | </else-if> |
| 718 | </choose> |
| 719 | </substitute> |
| 720 | </names> |
| 721 | </else> |
| 722 | </choose> |
| 723 | </macro> |
| 724 | <macro name="author-sort"> |
| 725 | <choose> |
| 726 | <if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 727 | <text macro="legal-title"/> |
| 728 | </if> |
| 729 | <else> |
| 730 | <text macro="author-bib"/> |
| 731 | </else> |
| 732 | </choose> |
| 733 | </macro> |
| 734 | <!-- Author elements --> |
| 735 | <macro name="author-short-and-recipient"> |
| 736 | <group delimiter=" "> |
| 737 | <choose> |
| 738 | <!-- inaccessible `interview` or `personal_commmunication`: in-text citation (CMOS18 14.111) --> |
| 739 | <if match="none" variable="archive archive-place container-title DOI number publisher references URL"> |
| 740 | <choose> |
| 741 | <if position="first"> |
| 742 | <!-- at the first citation in shortened forms, give the full name --> |
| 743 | <names variable="author"> |
| 744 | <name and="text" initialize="false"/> |
| 745 | <!-- never initialize --> |
| 746 | <substitute> |
| 747 | <text macro="title-and-descriptions-short"/> |
| 748 | </substitute> |
| 749 | </names> |
| 750 | </if> |
| 751 | <else> |
| 752 | <names variable="author"> |
| 753 | <name and="text" form="short" initialize="true"/> |
| 754 | <substitute> |
| 755 | <text macro="title-and-descriptions-short"/> |
| 756 | </substitute> |
| 757 | </names> |
| 758 | </else> |
| 759 | </choose> |
| 760 | <choose> |
| 761 | <if variable="genre"/> |
| 762 | <!-- recipient appears in the description if there is a `genre`; otherwise after `author` --> |
| 763 | <else-if position="first"> |
| 764 | <names variable="recipient"> |
| 765 | <label form="verb" suffix=" "/> |
| 766 | <name and="text" initialize="false"/> |
| 767 | <!-- never initialize --> |
| 768 | </names> |
| 769 | </else-if> |
| 770 | <else> |
| 771 | <names variable="recipient"> |
| 772 | <label form="verb" suffix=" "/> |
| 773 | <name and="text" form="short" initialize="true"/> |
| 774 | </names> |
| 775 | </else> |
| 776 | </choose> |
| 777 | </if> |
| 778 | <!-- accessible `interview` or `personal_communication`: standard citation --> |
| 779 | <else-if variable="author recipient"> |
| 780 | <names variable="author"> |
| 781 | <name and="text" form="short" initialize="true"/> |
| 782 | </names> |
| 783 | <choose> |
| 784 | <if match="none" variable="genre"> |
| 785 | <names variable="recipient"> |
| 786 | <label form="verb" suffix=" "/> |
| 787 | <name and="text" form="short" initialize="true"/> |
| 788 | </names> |
| 789 | </if> |
| 790 | </choose> |
| 791 | </else-if> |
| 792 | <else> |
| 793 | <names variable="author"> |
| 794 | <name and="text" form="short" initialize="true"/> |
| 795 | <substitute> |
| 796 | <text macro="title-and-descriptions-short"/> |
| 797 | </substitute> |
| 798 | </names> |
| 799 | </else> |
| 800 | </choose> |
| 801 | </group> |
| 802 | </macro> |
| 803 | <macro name="author-title-substitute-bib"> |
| 804 | <choose> |
| 805 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 806 | <!-- If a review has no `reviewed-genre` or `reviewed-title`, assume that `title` contains the title of the reviewed work; the description provides it. --> |
| 807 | <choose> |
| 808 | <if variable="reviewed-genre title"> |
| 809 | <text macro="title-bib"/> |
| 810 | </if> |
| 811 | <else-if variable="reviewed-genre reviewed-title title"> |
| 812 | <text macro="title-bib"/> |
| 813 | </else-if> |
| 814 | <else> |
| 815 | <text macro="title-and-descriptions-bib"/> |
| 816 | </else> |
| 817 | </choose> |
| 818 | </if> |
| 819 | <else-if variable="title"> |
| 820 | <text macro="title-bib"/> |
| 821 | </else-if> |
| 822 | <else> |
| 823 | <!-- If an item has no `title`, substitute with descriptions. --> |
| 824 | <text macro="title-and-descriptions-bib"/> |
| 825 | </else> |
| 826 | </choose> |
| 827 | </macro> |
| 828 | <macro name="author-title-substitute-note"> |
| 829 | <choose> |
| 830 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 831 | <!-- If a review has no `reviewed-genre` or `reviewed-title`, assume that `title` contains the title of the reviewed work; the description provides it. --> |
| 832 | <choose> |
| 833 | <if variable="reviewed-genre title"> |
| 834 | <text macro="title-note"/> |
| 835 | </if> |
| 836 | <else-if variable="reviewed-genre reviewed-title title"> |
| 837 | <text macro="title-note"/> |
| 838 | </else-if> |
| 839 | <else> |
| 840 | <text macro="title-and-descriptions-note"/> |
| 841 | </else> |
| 842 | </choose> |
| 843 | </if> |
| 844 | <else-if variable="title"> |
| 845 | <text macro="title-note"/> |
| 846 | </else-if> |
| 847 | <else> |
| 848 | <!-- If an item has no `title`, substitute with descriptions and capitalize --> |
| 849 | <text macro="title-and-descriptions-bib"/> |
| 850 | </else> |
| 851 | </choose> |
| 852 | </macro> |
| 853 | <macro name="author-title-substitute-short"> |
| 854 | <choose> |
| 855 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 856 | <!-- If a review has no `reviewed-genre` or `reviewed-title`, assume that `title` contains the title of the reviewed work; the description provides it. --> |
| 857 | <choose> |
| 858 | <if variable="reviewed-genre title"> |
| 859 | <text macro="title-short"/> |
| 860 | </if> |
| 861 | <else-if variable="reviewed-genre reviewed-title title"> |
| 862 | <text macro="title-short"/> |
| 863 | </else-if> |
| 864 | <else> |
| 865 | <text macro="title-and-descriptions-short"/> |
| 866 | </else> |
| 867 | </choose> |
| 868 | </if> |
| 869 | <else-if variable="title"> |
| 870 | <text macro="title-short"/> |
| 871 | </else-if> |
| 872 | <else> |
| 873 | <!-- If an item has no `title`, substitute with descriptions and capitalize --> |
| 874 | <text macro="title-and-descriptions-bib"/> |
| 875 | </else> |
| 876 | </choose> |
| 877 | </macro> |
| 878 | <macro name="author-title-substitute-container"> |
| 879 | <choose> |
| 880 | <!-- no Chicago model for citing an anonymous article with an issue title in `volume-title` --> |
| 881 | <if variable="volume-title"/> |
| 882 | <else-if match="any" type="article-magazine article-newspaper"> |
| 883 | <!-- Anonymous magazine and newspaper articles substitute name of publication (CMOS18 14.87, 14.97) --> |
| 884 | <text macro="source-serial-name"/> |
| 885 | </else-if> |
| 886 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 887 | <!-- Publication name also substituted for unsigned reviews (CMOS18 14.102) --> |
| 888 | <text macro="source-serial-name"/> |
| 889 | </else-if> |
| 890 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 891 | <!-- Anonymous entries in reference works (CMOS18 14.130) --> |
| 892 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 893 | </else-if> |
| 894 | <else-if type="broadcast"> |
| 895 | <!-- TV broadcasts and podcasts (CMOS18 14.165, 14.168) --> |
| 896 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 897 | </else-if> |
| 898 | <else-if type="webpage"> |
| 899 | <!-- list a webpage under the website title if there is no owner or sponsor (CMOS18 14.104) --> |
| 900 | <text text-case="title" variable="container-title"/> |
| 901 | <!-- for author-date: |
| 902 | <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>--> |
| 903 | </else-if> |
| 904 | </choose> |
| 905 | </macro> |
| 906 | <macro name="author-title-substitute-container-short"> |
| 907 | <choose> |
| 908 | <if match="any" type="article-magazine article-newspaper"> |
| 909 | <!-- Anonymous magazine/newspaper articles substitute name of publication (CMOS18 14.87, 14.97) --> |
| 910 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 911 | </if> |
| 912 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 913 | <!-- Publication name also substituted for unsigned reviews (CMOS18 14.102) --> |
| 914 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 915 | </else-if> |
| 916 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 917 | <!-- Anonymous entries in reference works (CMOS18 14.130) --> |
| 918 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 919 | </else-if> |
| 920 | <else-if type="broadcast"> |
| 921 | <!-- TV broadcasts and podcasts (CMOS18 14.165, 14.168) --> |
| 922 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 923 | </else-if> |
| 924 | <else-if type="webpage"> |
| 925 | <!-- list a webpage under the website title if there is no owner or sponsor (CMOS18 14.104) --> |
| 926 | <text form="short" text-case="title" variable="container-title"/> |
| 927 | </else-if> |
| 928 | </choose> |
| 929 | </macro> |
| 930 | <macro name="author-title-substitute-reference-note"> |
| 931 | <!-- unsigned reference articles consulted in physical formats list `title` in the manner of a `sub-verbo` locator (CMOS18 14.130) --> |
| 932 | <group delimiter=", "> |
| 933 | <group delimiter=" "> |
| 934 | <group delimiter=", "> |
| 935 | <text macro="author-title-substitute-container"/> |
| 936 | <text macro="source-note"/> |
| 937 | </group> |
| 938 | <text macro="source-monographic-publication-note-bracketed"/> |
| 939 | </group> |
| 940 | <group delimiter=" "> |
| 941 | <choose> |
| 942 | <if locator="sub-verbo"/> |
| 943 | <else-if variable="container-title title"> |
| 944 | <choose> |
| 945 | <if match="none" variable="DOI URL"> |
| 946 | <!-- Only print reference entries use `sub-verbo` (CMOS18 14.131) --> |
| 947 | <text form="short" term="sub-verbo"/> |
| 948 | </if> |
| 949 | </choose> |
| 950 | <text macro="title-primary"/> |
| 951 | </else-if> |
| 952 | </choose> |
| 953 | </group> |
| 954 | </group> |
| 955 | </macro> |
| 956 | <!-- 2. Date (CMOS18 13.102) --> |
| 957 | <macro name="date-short"> |
| 958 | <group delimiter="-"> |
| 959 | <choose> |
| 960 | <if variable="issued"> |
| 961 | <group delimiter=" "> |
| 962 | <choose> |
| 963 | <if is-uncertain-date="original-date"> |
| 964 | <!-- Uncertain date already has square brackets --> |
| 965 | <text macro="date-original-year"/> |
| 966 | </if> |
| 967 | <else> |
| 968 | <text macro="date-original-year" prefix="[" suffix="]"/> |
| 969 | </else> |
| 970 | </choose> |
| 971 | <group> |
| 972 | <choose> |
| 973 | <if match="none" type="interview personal_communication"> |
| 974 | <text macro="date-issued-year"/> |
| 975 | </if> |
| 976 | <!-- accessible `interview` or `personal_communication` items appear in the bibliography; inaccessible items are in-text only --> |
| 977 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 978 | <text macro="date-issued-year"/> |
| 979 | </else-if> |
| 980 | <else> |
| 981 | <text macro="date-issued-full"/> |
| 982 | </else> |
| 983 | </choose> |
| 984 | <text variable="year-suffix"/> |
| 985 | </group> |
| 986 | </group> |
| 987 | </if> |
| 988 | <else-if variable="event-date"> |
| 989 | <text macro="date-event-year"/> |
| 990 | </else-if> |
| 991 | <else-if variable="available-date"> |
| 992 | <date date-parts="year" form="numeric" variable="available-date"/> |
| 993 | </else-if> |
| 994 | <else-if variable="status"> |
| 995 | <!-- Print the status variable rather than use generic CSL terms (`in press`, etc.) --> |
| 996 | <text text-case="lowercase" variable="status"/> |
| 997 | <text variable="year-suffix"/> |
| 998 | </else-if> |
| 999 | <else-if match="any" type="interview personal_communication"> |
| 1000 | <choose> |
| 1001 | <if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 1002 | <!-- only give n.d. for accessible personal communication (CMOS18 14.111)--> |
| 1003 | <text form="short" term="no date"/> |
| 1004 | <text variable="year-suffix"/> |
| 1005 | </if> |
| 1006 | </choose> |
| 1007 | </else-if> |
| 1008 | <else-if match="any" type="classic collection entry entry-dictionary entry-encyclopedia"> |
| 1009 | <!-- do not give n.d. for archival collections (CMOS18 14.128), `classic` (CMOS18 14.143), or reference entries (CMOS18 14.131) --> |
| 1010 | <text variable="year-suffix"/> |
| 1011 | </else-if> |
| 1012 | <else-if type="manuscript"> |
| 1013 | <!-- do not give n.d. with a bare shelfmark --> |
| 1014 | <choose> |
| 1015 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"> |
| 1016 | <text form="short" term="no date"/> |
| 1017 | <text variable="year-suffix"/> |
| 1018 | </if> |
| 1019 | </choose> |
| 1020 | </else-if> |
| 1021 | <else> |
| 1022 | <text form="short" term="no date"/> |
| 1023 | <text variable="year-suffix"/> |
| 1024 | </else> |
| 1025 | </choose> |
| 1026 | </group> |
| 1027 | </macro> |
| 1028 | <!-- Date elements --> |
| 1029 | <macro name="date-event-full"> |
| 1030 | <choose> |
| 1031 | <if is-uncertain-date="issued"> |
| 1032 | <!-- guessed-at date (CMOS18 14.44) --> |
| 1033 | <date form="text" prefix="[" suffix="?]" variable="event-date"/> |
| 1034 | </if> |
| 1035 | <else> |
| 1036 | <date form="text" variable="event-date"/> |
| 1037 | </else> |
| 1038 | </choose> |
| 1039 | </macro> |
| 1040 | <macro name="date-event-year"> |
| 1041 | <choose> |
| 1042 | <if is-uncertain-date="issued"> |
| 1043 | <!-- guessed-at date (CMOS18 14.44) --> |
| 1044 | <date date-parts="year" form="numeric" prefix="[" suffix="?]" variable="event-date"/> |
| 1045 | </if> |
| 1046 | <else> |
| 1047 | <date date-parts="year" form="numeric" variable="event-date"/> |
| 1048 | </else> |
| 1049 | </choose> |
| 1050 | </macro> |
| 1051 | <macro name="date-issued-full"> |
| 1052 | <choose> |
| 1053 | <if is-uncertain-date="issued"> |
| 1054 | <!-- guessed-at date (CMOS18 14.44) --> |
| 1055 | <date form="text" prefix="[" suffix="?]" variable="issued"/> |
| 1056 | </if> |
| 1057 | <else> |
| 1058 | <date form="text" variable="issued"/> |
| 1059 | </else> |
| 1060 | </choose> |
| 1061 | </macro> |
| 1062 | <macro name="date-issued-year"> |
| 1063 | <choose> |
| 1064 | <if is-uncertain-date="issued"> |
| 1065 | <!-- guessed-at date (CMOS18 14.44) --> |
| 1066 | <date date-parts="year" form="numeric" prefix="[" suffix="?]" variable="issued"/> |
| 1067 | </if> |
| 1068 | <else> |
| 1069 | <date date-parts="year" form="numeric" variable="issued"/> |
| 1070 | </else> |
| 1071 | </choose> |
| 1072 | </macro> |
| 1073 | <macro name="date-issued-year-month"> |
| 1074 | <choose> |
| 1075 | <if is-uncertain-date="issued"> |
| 1076 | <!-- guessed-at date (CMOS18 14.44) --> |
| 1077 | <date date-parts="year-month" form="text" prefix="[" suffix="?]" variable="issued"/> |
| 1078 | </if> |
| 1079 | <else> |
| 1080 | <date date-parts="year-month" form="text" variable="issued"/> |
| 1081 | </else> |
| 1082 | </choose> |
| 1083 | </macro> |
| 1084 | <macro name="date-original-full"> |
| 1085 | <choose> |
| 1086 | <if is-uncertain-date="original-date"> |
| 1087 | <date form="text" prefix="[" suffix="?]" variable="original-date"/> |
| 1088 | </if> |
| 1089 | <else> |
| 1090 | <date form="text" variable="original-date"/> |
| 1091 | </else> |
| 1092 | </choose> |
| 1093 | </macro> |
| 1094 | <macro name="date-original-year"> |
| 1095 | <choose> |
| 1096 | <if is-uncertain-date="original-date"> |
| 1097 | <date date-parts="year" form="numeric" prefix="[" suffix="?]" variable="original-date"/> |
| 1098 | </if> |
| 1099 | <else> |
| 1100 | <date date-parts="year" form="numeric" variable="original-date"/> |
| 1101 | </else> |
| 1102 | </choose> |
| 1103 | </macro> |
| 1104 | <macro name="date-original-year-month"> |
| 1105 | <choose> |
| 1106 | <if is-uncertain-date="original-date"> |
| 1107 | <date date-parts="year-month" form="text" prefix="[" suffix="?]" variable="original-date"/> |
| 1108 | </if> |
| 1109 | <else> |
| 1110 | <date date-parts="year-month" form="text" variable="original-date"/> |
| 1111 | </else> |
| 1112 | </choose> |
| 1113 | </macro> |
| 1114 | <!-- 3. Title and descriptions (CMOS18 13.87-101) --> |
| 1115 | <macro name="title-and-descriptions-bib"> |
| 1116 | <group delimiter=". "> |
| 1117 | <choose> |
| 1118 | <if variable="title"> |
| 1119 | <text macro="title-bib"/> |
| 1120 | <text macro="description-bib"/> |
| 1121 | <text macro="identifier-bib"/> |
| 1122 | </if> |
| 1123 | <else-if match="any" type="bill report"> |
| 1124 | <!-- Bills, resolutions, and congressional reports substitute bill number if no title --> |
| 1125 | <!-- Congressional reports are indistinguishable from other reports --> |
| 1126 | <text macro="identifier-number-bib"/> |
| 1127 | <text macro="identifier-bib"/> |
| 1128 | <text macro="description-bib"/> |
| 1129 | </else-if> |
| 1130 | <else> |
| 1131 | <text macro="description-bib"/> |
| 1132 | <text macro="identifier-bib"/> |
| 1133 | </else> |
| 1134 | </choose> |
| 1135 | </group> |
| 1136 | </macro> |
| 1137 | <macro name="title-and-descriptions-note"> |
| 1138 | <group delimiter=", "> |
| 1139 | <choose> |
| 1140 | <if variable="title"> |
| 1141 | <text macro="title-note"/> |
| 1142 | <text macro="description-note"/> |
| 1143 | <text macro="identifier-note"/> |
| 1144 | </if> |
| 1145 | <else-if match="any" type="bill report"> |
| 1146 | <!-- Bills, resolutions, and congressional reports substitute bill number if no title --> |
| 1147 | <!-- Congressional reports are indistinguishable from other reports --> |
| 1148 | <text macro="identifier-number-note"/> |
| 1149 | <text macro="identifier-note"/> |
| 1150 | <text macro="description-note"/> |
| 1151 | </else-if> |
| 1152 | <else> |
| 1153 | <text macro="description-note"/> |
| 1154 | <text macro="identifier-note"/> |
| 1155 | </else> |
| 1156 | </choose> |
| 1157 | </group> |
| 1158 | </macro> |
| 1159 | <macro name="title-and-descriptions-short"> |
| 1160 | <choose> |
| 1161 | <if variable="title"> |
| 1162 | <text macro="title-short"/> |
| 1163 | </if> |
| 1164 | <else-if match="any" type="bill report"> |
| 1165 | <!-- Bills, resolutions, and congressional reports substitute bill number if no title --> |
| 1166 | <text macro="legal-identifier-bill-report"/> |
| 1167 | </else-if> |
| 1168 | <else> |
| 1169 | <text macro="description-short"/> |
| 1170 | </else> |
| 1171 | </choose> |
| 1172 | </macro> |
| 1173 | <macro name="title-and-source-bib"> |
| 1174 | <group delimiter=". "> |
| 1175 | <choose> |
| 1176 | <if type="broadcast" variable="container-title number title"> |
| 1177 | <!-- Bespoke `broadcast` format (CMOS18 14.165, 14.168) --> |
| 1178 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 1179 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 1180 | <!-- <text macro="source-monographic-title-specific-title-first"/> --> |
| 1181 | <group delimiter=", "> |
| 1182 | <text macro="identifier-number-bib"/> |
| 1183 | <text macro="title-bib"/> |
| 1184 | <text macro="description-bib"/> |
| 1185 | <text macro="source-monographic-identifier-contributors-bib"/> |
| 1186 | </group> |
| 1187 | <text macro="source-monographic-identifier-contributors-bib-container-author"/> |
| 1188 | <text macro="source-series-bib"/> |
| 1189 | <choose> |
| 1190 | <!-- show event information here only if not collapsed with `issued` (CMOS18 14.167) --> |
| 1191 | <if match="any" variable="event-date original-date original-publisher original-publisher-place publisher status"> |
| 1192 | <text macro="source-event-bib"/> |
| 1193 | </if> |
| 1194 | </choose> |
| 1195 | </if> |
| 1196 | <else-if type="chapter" variable="container-title genre"> |
| 1197 | <!-- 'introduction to', 'online appendix to' (CMOS18 14.12, 14.14) --> |
| 1198 | <group delimiter=" "> |
| 1199 | <text macro="title-and-descriptions-bib"/> |
| 1200 | <text macro="source-bib"/> |
| 1201 | </group> |
| 1202 | </else-if> |
| 1203 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 1204 | <!-- introduction to a special issue or supplement --> |
| 1205 | <group delimiter=" "> |
| 1206 | <text macro="title-and-descriptions-bib"/> |
| 1207 | <text macro="source-bib"/> |
| 1208 | </group> |
| 1209 | </else-if> |
| 1210 | <else> |
| 1211 | <text macro="title-and-descriptions-bib"/> |
| 1212 | <text macro="source-bib"/> |
| 1213 | </else> |
| 1214 | </choose> |
| 1215 | <group delimiter=", "> |
| 1216 | <choose> |
| 1217 | <!-- show event information here only if collapsed with `issued` (CMOS18 14.167) --> |
| 1218 | <if match="any" variable="event-date original-date original-publisher original-publisher-place publisher status"/> |
| 1219 | <!-- omit serial types --> |
| 1220 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"/> |
| 1221 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1222 | <!-- monographic types --> |
| 1223 | <text macro="source-event-bib"/> |
| 1224 | </else-if> |
| 1225 | <!-- omit serial types --> |
| 1226 | <else-if match="any" type="interview paper-conference"/> |
| 1227 | <else> |
| 1228 | <!-- monographic types --> |
| 1229 | <text macro="source-event-bib"/> |
| 1230 | </else> |
| 1231 | </choose> |
| 1232 | <text macro="source-monographic-publication-bib"/> |
| 1233 | </group> |
| 1234 | <text macro="source-medium-bib"/> |
| 1235 | <text macro="source-archive-bib"/> |
| 1236 | <text macro="source-date-accessed-DOI-URL-bib"/> |
| 1237 | </group> |
| 1238 | </macro> |
| 1239 | <macro name="title-and-source-note"> |
| 1240 | <group delimiter=", "> |
| 1241 | <group delimiter=" "> |
| 1242 | <group delimiter=", "> |
| 1243 | <choose> |
| 1244 | <if type="broadcast" variable="container-title number title"> |
| 1245 | <!-- Bespoke `broadcast` format (CMOS18 14.165, 14.168) --> |
| 1246 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 1247 | <group delimiter=", "> |
| 1248 | <text macro="identifier-number-note"/> |
| 1249 | <text macro="title-note"/> |
| 1250 | <text macro="description-note"/> |
| 1251 | <text macro="source-monographic-identifier-contributors-note"/> |
| 1252 | </group> |
| 1253 | <text macro="source-series-note"/> |
| 1254 | <text macro="source-event-note"/> |
| 1255 | </if> |
| 1256 | <else-if type="chapter" variable="container-title genre"> |
| 1257 | <!-- 'introduction to', 'online appendix to' (CMOS18 14.12, 14.14) --> |
| 1258 | <group delimiter=" "> |
| 1259 | <text macro="title-and-descriptions-note"/> |
| 1260 | <text macro="source-note"/> |
| 1261 | </group> |
| 1262 | </else-if> |
| 1263 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 1264 | <!-- introduction to a special issue or supplement --> |
| 1265 | <group delimiter=" "> |
| 1266 | <text macro="title-and-descriptions-note"/> |
| 1267 | <text macro="source-note"/> |
| 1268 | </group> |
| 1269 | </else-if> |
| 1270 | <else> |
| 1271 | <text macro="title-and-descriptions-note"/> |
| 1272 | <text macro="source-note"/> |
| 1273 | </else> |
| 1274 | </choose> |
| 1275 | <text macro="source-monographic-publication-note-unbracketed"/> |
| 1276 | </group> |
| 1277 | <text macro="source-monographic-publication-note-bracketed"/> |
| 1278 | </group> |
| 1279 | <choose> |
| 1280 | <!-- Locator for monographic types only; serial locator handled in `source-serial-locator` --> |
| 1281 | <!-- omit serial types --> |
| 1282 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"/> |
| 1283 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1284 | <!-- monographic types --> |
| 1285 | <text macro="source-monographic-locator"/> |
| 1286 | </else-if> |
| 1287 | <!-- omit serial types --> |
| 1288 | <else-if match="any" type="interview paper-conference"/> |
| 1289 | <else> |
| 1290 | <!-- monographic types --> |
| 1291 | <text macro="source-monographic-locator"/> |
| 1292 | </else> |
| 1293 | </choose> |
| 1294 | <text macro="source-medium-note"/> |
| 1295 | <text macro="source-archive-note"/> |
| 1296 | <text macro="source-date-accessed-DOI-URL-note"/> |
| 1297 | </group> |
| 1298 | </macro> |
| 1299 | <!-- 3.1. Title --> |
| 1300 | <macro name="title-bib"> |
| 1301 | <choose> |
| 1302 | <if match="any" type="post webpage"> |
| 1303 | <!-- part number/title always at the analytic level --> |
| 1304 | <text macro="title-and-part-filter-review-bib"/> |
| 1305 | </if> |
| 1306 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1307 | <!-- serial types --> |
| 1308 | <text macro="title-and-part-filter-review-bib"/> |
| 1309 | </else-if> |
| 1310 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1311 | <!-- monographic types --> |
| 1312 | <text macro="title-primary"/> |
| 1313 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 1314 | <!-- <text macro="title-monographic-bib-specific-title-first"/> --> |
| 1315 | </else-if> |
| 1316 | <else-if match="any" type="interview paper-conference"> |
| 1317 | <!-- serial types --> |
| 1318 | <text macro="title-and-part-filter-review-bib"/> |
| 1319 | </else-if> |
| 1320 | <else> |
| 1321 | <text macro="title-primary"/> |
| 1322 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 1323 | <!-- <text macro="title-monographic-bib-specific-title-first"/> --> |
| 1324 | </else> |
| 1325 | </choose> |
| 1326 | </macro> |
| 1327 | <macro name="title-note"> |
| 1328 | <choose> |
| 1329 | <if match="any" type="post webpage"> |
| 1330 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 1331 | <text macro="title-and-part-filter-review-note"/> |
| 1332 | </if> |
| 1333 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1334 | <!-- serial types --> |
| 1335 | <text macro="title-and-part-filter-review-note"/> |
| 1336 | </else-if> |
| 1337 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1338 | <!-- monographic types --> |
| 1339 | <!-- notes always open with the primary title --> |
| 1340 | <text macro="title-primary"/> |
| 1341 | </else-if> |
| 1342 | <else-if match="any" type="interview paper-conference"> |
| 1343 | <!-- serial types --> |
| 1344 | <text macro="title-and-part-filter-review-note"/> |
| 1345 | </else-if> |
| 1346 | <else> |
| 1347 | <!-- notes always open with the primary title --> |
| 1348 | <text macro="title-primary"/> |
| 1349 | </else> |
| 1350 | </choose> |
| 1351 | </macro> |
| 1352 | <macro name="title-short"> |
| 1353 | <choose> |
| 1354 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1355 | <!-- If a review has no `reviewed-title`, assume that `title` contains the title of the reviewed work; the description provides it. --> |
| 1356 | <choose> |
| 1357 | <if variable="reviewed-genre title"> |
| 1358 | <!-- Quotes, title case --> |
| 1359 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1360 | </if> |
| 1361 | <else-if variable="reviewed-genre reviewed-title title"> |
| 1362 | <!-- Quotes, title case --> |
| 1363 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1364 | </else-if> |
| 1365 | <else> |
| 1366 | <text macro="description-short"/> |
| 1367 | </else> |
| 1368 | </choose> |
| 1369 | </if> |
| 1370 | <else> |
| 1371 | <text macro="title-primary-short"/> |
| 1372 | </else> |
| 1373 | </choose> |
| 1374 | </macro> |
| 1375 | <!-- Title elements --> |
| 1376 | <macro name="title-and-part-filter-review-bib"> |
| 1377 | <choose> |
| 1378 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1379 | <!-- `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 --> |
| 1380 | <choose> |
| 1381 | <if match="any" variable="reviewed-genre reviewed-title"> |
| 1382 | <text macro="title-and-part-title-bib"/> |
| 1383 | </if> |
| 1384 | </choose> |
| 1385 | </if> |
| 1386 | <else> |
| 1387 | <text macro="title-and-part-title-bib"/> |
| 1388 | </else> |
| 1389 | </choose> |
| 1390 | </macro> |
| 1391 | <macro name="title-and-part-filter-review-note"> |
| 1392 | <choose> |
| 1393 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1394 | <!-- `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 --> |
| 1395 | <choose> |
| 1396 | <if match="any" variable="reviewed-genre reviewed-title"> |
| 1397 | <text macro="title-and-part-title-note"/> |
| 1398 | </if> |
| 1399 | </choose> |
| 1400 | </if> |
| 1401 | <else> |
| 1402 | <text macro="title-and-part-title-note"/> |
| 1403 | </else> |
| 1404 | </choose> |
| 1405 | </macro> |
| 1406 | <macro name="title-and-part-title-bib"> |
| 1407 | <group delimiter=". "> |
| 1408 | <text macro="title-primary"/> |
| 1409 | <group delimiter=", "> |
| 1410 | <text macro="label-part-number-capitalized"/> |
| 1411 | <text macro="title-part"/> |
| 1412 | </group> |
| 1413 | </group> |
| 1414 | </macro> |
| 1415 | <macro name="title-and-part-title-note"> |
| 1416 | <group delimiter=", "> |
| 1417 | <text macro="title-primary"/> |
| 1418 | <group delimiter=", "> |
| 1419 | <text macro="label-part-number"/> |
| 1420 | <text macro="title-part"/> |
| 1421 | </group> |
| 1422 | </group> |
| 1423 | </macro> |
| 1424 | <macro name="title-part"> |
| 1425 | <choose> |
| 1426 | <if type="patent"> |
| 1427 | <!-- No italics or quotes, sentence case --> |
| 1428 | <text form="short" text-case="capitalize-first" variable="part-title"/> |
| 1429 | </if> |
| 1430 | <else-if match="any" type="bill collection legislation regulation treaty"> |
| 1431 | <!-- No italics or quotes, title case --> |
| 1432 | <text text-case="title" variable="part-title"/> |
| 1433 | </else-if> |
| 1434 | <else-if type="legal_case"> |
| 1435 | <!-- Italicized, sentence case --> |
| 1436 | <text font-style="italic" variable="part-title"/> |
| 1437 | </else-if> |
| 1438 | <else-if match="any" type="book classic graphic hearing map"> |
| 1439 | <!-- Italicized, title case (regardless of `container-title`) --> |
| 1440 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1441 | </else-if> |
| 1442 | <else-if type="entry-encyclopedia" variable="author container-title"> |
| 1443 | <!-- Signed encyclopedia entry in quotes, title case (CMOS18 14.132) --> |
| 1444 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1445 | </else-if> |
| 1446 | <else-if type="entry-dictionary" variable="container-title"> |
| 1447 | <!-- Quotes, sentence case --> |
| 1448 | <text quotes="true" variable="part-title"/> |
| 1449 | </else-if> |
| 1450 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 1451 | <!-- Quotes, sentence case --> |
| 1452 | <text quotes="true" variable="part-title"/> |
| 1453 | </else-if> |
| 1454 | <else-if type="post"> |
| 1455 | <!-- Quotes, sentence case --> |
| 1456 | <text quotes="true" variable="part-title"/> |
| 1457 | </else-if> |
| 1458 | <else-if type="webpage"> |
| 1459 | <!-- Quotes, title case --> |
| 1460 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1461 | </else-if> |
| 1462 | <!-- Other types are formatted based on presence of `container-title` --> |
| 1463 | <else-if variable="container-title"> |
| 1464 | <choose> |
| 1465 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1466 | <!-- serial types --> |
| 1467 | <!-- Quotes, title case --> |
| 1468 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1469 | </if> |
| 1470 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1471 | <!-- monographic types --> |
| 1472 | <!-- Italics, title case --> |
| 1473 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1474 | </else-if> |
| 1475 | <else-if match="any" type="interview paper-conference"> |
| 1476 | <!-- serial types --> |
| 1477 | <!-- Quotes, title case --> |
| 1478 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1479 | </else-if> |
| 1480 | <else> |
| 1481 | <!-- monographic types --> |
| 1482 | <!-- Italics, title case --> |
| 1483 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1484 | </else> |
| 1485 | </choose> |
| 1486 | </else-if> |
| 1487 | <else-if match="any" type="article dataset document interview manuscript paper-conference personal_communication speech thesis webpage"> |
| 1488 | <!-- Container-like but not necessarily with `container-title` --> |
| 1489 | <!-- Quotes, title case --> |
| 1490 | <text quotes="true" text-case="title" variable="part-title"/> |
| 1491 | </else-if> |
| 1492 | <else> |
| 1493 | <!-- Italicized, title case (default) --> |
| 1494 | <text font-style="italic" text-case="title" variable="part-title"/> |
| 1495 | </else> |
| 1496 | </choose> |
| 1497 | </macro> |
| 1498 | <macro name="title-primary"> |
| 1499 | <choose> |
| 1500 | <if type="patent"> |
| 1501 | <!-- No italics or quotes, sentence case --> |
| 1502 | <text form="short" text-case="capitalize-first" variable="title"/> |
| 1503 | </if> |
| 1504 | <else-if match="any" type="bill collection legislation regulation treaty"> |
| 1505 | <!-- No italics or quotes, title case --> |
| 1506 | <text text-case="title" variable="title"/> |
| 1507 | </else-if> |
| 1508 | <else-if type="legal_case"> |
| 1509 | <!-- Italicized, sentence case --> |
| 1510 | <text font-style="italic" variable="title"/> |
| 1511 | </else-if> |
| 1512 | <else-if match="any" type="book classic graphic hearing map"> |
| 1513 | <!-- Italicized, title case (regardless of `container-title`) --> |
| 1514 | <text font-style="italic" text-case="title" variable="title"/> |
| 1515 | </else-if> |
| 1516 | <else-if type="entry-encyclopedia" variable="author container-title"> |
| 1517 | <!-- Signed encyclopedia entry in quotes, title case (CMOS18 14.132) --> |
| 1518 | <text quotes="true" text-case="title" variable="title"/> |
| 1519 | </else-if> |
| 1520 | <else-if type="entry-dictionary" variable="container-title"> |
| 1521 | <!-- Quotes, sentence case --> |
| 1522 | <text quotes="true" variable="title"/> |
| 1523 | </else-if> |
| 1524 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 1525 | <!-- Quotes, sentence case --> |
| 1526 | <text quotes="true" variable="title"/> |
| 1527 | </else-if> |
| 1528 | <else-if type="post"> |
| 1529 | <!-- Quotes, sentence case --> |
| 1530 | <text quotes="true" variable="title"/> |
| 1531 | </else-if> |
| 1532 | <!-- Other types are formatted based on presence of `container-title` --> |
| 1533 | <else-if variable="container-title"> |
| 1534 | <!-- Quotes, title case --> |
| 1535 | <text quotes="true" text-case="title" variable="title"/> |
| 1536 | </else-if> |
| 1537 | <else-if match="any" type="article dataset document interview manuscript paper-conference personal_communication speech thesis webpage"> |
| 1538 | <!-- Container-like but not necessarily with `container-title` --> |
| 1539 | <!-- Quotes, title case --> |
| 1540 | <text quotes="true" text-case="title" variable="title"/> |
| 1541 | </else-if> |
| 1542 | <else> |
| 1543 | <!-- Italicized, title case (default) --> |
| 1544 | <text font-style="italic" text-case="title" variable="title"/> |
| 1545 | </else> |
| 1546 | </choose> |
| 1547 | </macro> |
| 1548 | <macro name="title-primary-short"> |
| 1549 | <choose> |
| 1550 | <if type="patent"> |
| 1551 | <!-- No italics or quotes, sentence case --> |
| 1552 | <text form="short" text-case="capitalize-first" variable="title"/> |
| 1553 | </if> |
| 1554 | <else-if match="any" type="bill collection legislation regulation treaty"> |
| 1555 | <!-- No italics or quotes, title case --> |
| 1556 | <text form="short" text-case="title" variable="title"/> |
| 1557 | </else-if> |
| 1558 | <else-if type="legal_case"> |
| 1559 | <!-- Italicized, sentence case --> |
| 1560 | <text font-style="italic" form="short" variable="title"/> |
| 1561 | </else-if> |
| 1562 | <else-if match="any" type="book classic graphic hearing map"> |
| 1563 | <!-- Italicized, title case (regardless of `container-title`) --> |
| 1564 | <text font-style="italic" form="short" text-case="title" variable="title"/> |
| 1565 | </else-if> |
| 1566 | <else-if type="entry-encyclopedia" variable="author container-title"> |
| 1567 | <!-- Signed encyclopedia entry in quotes, title case (CMOS18 14.132) --> |
| 1568 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1569 | </else-if> |
| 1570 | <else-if type="entry-dictionary" variable="container-title"> |
| 1571 | <!-- Quotes, sentence case --> |
| 1572 | <text form="short" quotes="true" variable="title"/> |
| 1573 | </else-if> |
| 1574 | <else-if type="entry-encyclopedia" variable="container-title"> |
| 1575 | <!-- Quotes, sentence case --> |
| 1576 | <text form="short" quotes="true" variable="title"/> |
| 1577 | </else-if> |
| 1578 | <else-if type="post"> |
| 1579 | <!-- Quotes, sentence case --> |
| 1580 | <text form="short" quotes="true" variable="title"/> |
| 1581 | </else-if> |
| 1582 | <!-- Other types are formatted based on presence of `container-title` --> |
| 1583 | <else-if variable="container-title"> |
| 1584 | <!-- Quotes, title case --> |
| 1585 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1586 | </else-if> |
| 1587 | <else-if match="any" type="article dataset document interview manuscript paper-conference personal_communication speech thesis webpage"> |
| 1588 | <!-- Container-like but not necessarily with `container-title` --> |
| 1589 | <!-- Quotes, title case --> |
| 1590 | <text form="short" quotes="true" text-case="title" variable="title"/> |
| 1591 | </else-if> |
| 1592 | <else> |
| 1593 | <!-- Italicized, title case (default) --> |
| 1594 | <text font-style="italic" form="short" text-case="title" variable="title"/> |
| 1595 | </else> |
| 1596 | </choose> |
| 1597 | </macro> |
| 1598 | <macro name="title-volume"> |
| 1599 | <choose> |
| 1600 | <if type="manuscript"> |
| 1601 | <!-- Quotes, title case --> |
| 1602 | <text quotes="true" text-case="title" variable="volume-title"/> |
| 1603 | </if> |
| 1604 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1605 | <!-- serial types --> |
| 1606 | <!-- Quotes, title case --> |
| 1607 | <text quotes="true" text-case="title" variable="volume-title"/> |
| 1608 | </else-if> |
| 1609 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1610 | <!-- monographic types --> |
| 1611 | <!-- Italics, title case --> |
| 1612 | <text font-style="italic" text-case="title" variable="volume-title"/> |
| 1613 | </else-if> |
| 1614 | <else-if match="any" type="interview paper-conference"> |
| 1615 | <!-- serial types --> |
| 1616 | <!-- Quotes, title case --> |
| 1617 | <text quotes="true" text-case="title" variable="volume-title"/> |
| 1618 | </else-if> |
| 1619 | <else> |
| 1620 | <!-- monographic types --> |
| 1621 | <!-- Italics, title case --> |
| 1622 | <text font-style="italic" text-case="title" variable="volume-title"/> |
| 1623 | </else> |
| 1624 | </choose> |
| 1625 | </macro> |
| 1626 | <!-- 3.2. Description --> |
| 1627 | <macro name="description-bib"> |
| 1628 | <choose> |
| 1629 | <if match="any" type="interview" variable="interviewer"> |
| 1630 | <text macro="description-interview-bib"/> |
| 1631 | </if> |
| 1632 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1633 | <text macro="description-review-bib"/> |
| 1634 | </else-if> |
| 1635 | <else-if type="personal_communication"> |
| 1636 | <text macro="description-letter-bib"/> |
| 1637 | </else-if> |
| 1638 | <else-if type="song" variable="composer"> |
| 1639 | <text macro="description-song-bib"/> |
| 1640 | </else-if> |
| 1641 | <!-- thesis type appears with university name (CMOS18 14.113) --> |
| 1642 | <else-if type="thesis"/> |
| 1643 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1644 | <!-- serial types --> |
| 1645 | <text macro="description-serial-bib"/> |
| 1646 | </else-if> |
| 1647 | <else-if type="paper-conference"> |
| 1648 | <text macro="description-paper-conference-bib"/> |
| 1649 | </else-if> |
| 1650 | <else-if match="none" variable="container-title"> |
| 1651 | <text macro="description-format-bib"/> |
| 1652 | </else-if> |
| 1653 | <!-- For conference presentations/performances/events, chapters in reports/standards/generic documents, software, place description within the source element --> |
| 1654 | <else-if match="any" type="document report software standard"/> |
| 1655 | <else-if match="any" type="event paper-conference performance speech"> |
| 1656 | <choose> |
| 1657 | <if match="any" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 1658 | <text macro="description-format-bib"/> |
| 1659 | </if> |
| 1660 | </choose> |
| 1661 | </else-if> |
| 1662 | <else> |
| 1663 | <text macro="description-format-bib"/> |
| 1664 | </else> |
| 1665 | </choose> |
| 1666 | </macro> |
| 1667 | <macro name="description-note"> |
| 1668 | <choose> |
| 1669 | <if match="any" type="interview" variable="interviewer"> |
| 1670 | <text macro="description-interview-note"/> |
| 1671 | </if> |
| 1672 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1673 | <text macro="description-review-note"/> |
| 1674 | </else-if> |
| 1675 | <else-if type="personal_communication"> |
| 1676 | <text macro="description-letter-note"/> |
| 1677 | </else-if> |
| 1678 | <else-if type="song" variable="composer"> |
| 1679 | <text macro="description-song-note"/> |
| 1680 | </else-if> |
| 1681 | <!-- thesis type appears with university name (CMOS18 14.113) --> |
| 1682 | <else-if type="thesis"/> |
| 1683 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1684 | <!-- serial types --> |
| 1685 | <text macro="description-serial-note"/> |
| 1686 | </else-if> |
| 1687 | <else-if type="paper-conference"> |
| 1688 | <text macro="description-paper-conference-note"/> |
| 1689 | </else-if> |
| 1690 | <else-if match="none" variable="container-title"> |
| 1691 | <text macro="description-format-note"/> |
| 1692 | </else-if> |
| 1693 | <!-- For conference presentations/performances/events, chapters in reports/standards/generic documents, software, place description within the source element --> |
| 1694 | <else-if match="any" type="document report software standard"/> |
| 1695 | <else-if match="any" type="event paper-conference performance speech"> |
| 1696 | <choose> |
| 1697 | <if match="any" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 1698 | <text macro="description-format-note"/> |
| 1699 | </if> |
| 1700 | </choose> |
| 1701 | </else-if> |
| 1702 | <else> |
| 1703 | <text macro="description-format-note"/> |
| 1704 | </else> |
| 1705 | </choose> |
| 1706 | </macro> |
| 1707 | <macro name="description-short"> |
| 1708 | <choose> |
| 1709 | <if match="any" type="interview" variable="interviewer"> |
| 1710 | <choose> |
| 1711 | <if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 1712 | <text macro="description-interview-short"/> |
| 1713 | </if> |
| 1714 | <else> |
| 1715 | <!-- for an inaccessible `interview`, give a full in-text description at the first citation --> |
| 1716 | <choose> |
| 1717 | <if position="first"> |
| 1718 | <text macro="description-interview-note"/> |
| 1719 | </if> |
| 1720 | <else> |
| 1721 | <text macro="description-interview-short"/> |
| 1722 | </else> |
| 1723 | </choose> |
| 1724 | </else> |
| 1725 | </choose> |
| 1726 | </if> |
| 1727 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 1728 | <text macro="description-review-short"/> |
| 1729 | </else-if> |
| 1730 | <else-if type="personal_communication"> |
| 1731 | <text macro="description-letter-short"/> |
| 1732 | </else-if> |
| 1733 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 1734 | <!-- serial types --> |
| 1735 | <text macro="description-serial-short"/> |
| 1736 | </else-if> |
| 1737 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 1738 | <!-- monographic types --> |
| 1739 | <text macro="description-format-short"/> |
| 1740 | </else-if> |
| 1741 | <else-if type="paper-conference"> |
| 1742 | <!-- serial `paper-conference` --> |
| 1743 | <text macro="description-serial-short"/> |
| 1744 | </else-if> |
| 1745 | <else> |
| 1746 | <!-- monographic types --> |
| 1747 | <text macro="description-format-short"/> |
| 1748 | </else> |
| 1749 | </choose> |
| 1750 | </macro> |
| 1751 | <!-- Description elements --> |
| 1752 | <macro name="description-format-bib"> |
| 1753 | <choose> |
| 1754 | <if variable="genre number"/> |
| 1755 | <else-if variable="genre"> |
| 1756 | <text text-case="capitalize-first" variable="genre"/> |
| 1757 | </else-if> |
| 1758 | <!-- generic labels if unpublished --> |
| 1759 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"/> |
| 1760 | <else-if type="manuscript"> |
| 1761 | <!-- 'unpublished manuscript' if no `genre` (CMOS18 14.114) --> |
| 1762 | <text term="manuscript" text-case="capitalize-first"/> |
| 1763 | </else-if> |
| 1764 | <else-if type="personal_communication"> |
| 1765 | <!-- 'personal communication' if no `genre` (CMOS18 14.111) --> |
| 1766 | <text term="personal-communication" text-case="capitalize-first"/> |
| 1767 | </else-if> |
| 1768 | </choose> |
| 1769 | </macro> |
| 1770 | <macro name="description-format-note"> |
| 1771 | <choose> |
| 1772 | <if variable="genre number"/> |
| 1773 | <else-if variable="genre"> |
| 1774 | <text variable="genre"/> |
| 1775 | </else-if> |
| 1776 | <!-- generic labels if unpublished --> |
| 1777 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"/> |
| 1778 | <else-if type="manuscript"> |
| 1779 | <!-- 'unpublished manuscript' if no `genre` (CMOS18 14.114) --> |
| 1780 | <text term="manuscript"/> |
| 1781 | </else-if> |
| 1782 | <else-if type="personal_communication"> |
| 1783 | <!-- 'personal communication' if no `genre` (CMOS18 14.111) --> |
| 1784 | <text term="personal-communication"/> |
| 1785 | </else-if> |
| 1786 | </choose> |
| 1787 | </macro> |
| 1788 | <macro name="description-format-short"> |
| 1789 | <group delimiter=" "> |
| 1790 | <choose> |
| 1791 | <if type="chapter" variable="container-title genre"> |
| 1792 | <!-- untitled introductions: cf. review model, which includes a title (CMOS18 14.101) --> |
| 1793 | <text form="short" variable="genre"/> |
| 1794 | <choose> |
| 1795 | <if match="none" position="ibid ibid-with-locator"> |
| 1796 | <!-- CMOS team suggests leaving out title in repeated references --> |
| 1797 | <text macro="source-monographic-preposition-note"/> |
| 1798 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 1799 | </if> |
| 1800 | </choose> |
| 1801 | </if> |
| 1802 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 1803 | <!-- untitled introduction to a special issue or supplement --> |
| 1804 | <text form="short" variable="genre"/> |
| 1805 | <choose> |
| 1806 | <if match="none" position="ibid ibid-with-locator"> |
| 1807 | <text macro="source-monographic-preposition-note"/> |
| 1808 | <text form="short" quotes="true" text-case="title" variable="volume-title"/> |
| 1809 | </if> |
| 1810 | </choose> |
| 1811 | </else-if> |
| 1812 | <else-if variable="genre"> |
| 1813 | <text form="short" variable="genre"/> |
| 1814 | </else-if> |
| 1815 | <else-if variable="medium"> |
| 1816 | <text form="short" variable="medium"/> |
| 1817 | </else-if> |
| 1818 | <else-if variable="chapter-number container-title"> |
| 1819 | <text macro="source-monographic-preposition-note"/> |
| 1820 | <text font-style="italic" form="short" text-case="title" variable="container-title"/> |
| 1821 | </else-if> |
| 1822 | <else-if variable="chapter-number"> |
| 1823 | <text macro="label-chapter-number"/> |
| 1824 | </else-if> |
| 1825 | <!-- generic labels if unpublished --> |
| 1826 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"/> |
| 1827 | <else-if type="manuscript"> |
| 1828 | <!-- 'unpublished manuscript' if no `genre` (CMOS18 14.114) --> |
| 1829 | <text term="manuscript"/> |
| 1830 | </else-if> |
| 1831 | <else-if type="personal_communication"> |
| 1832 | <!-- 'pers. comm.' if no `genre` (CMOS18 14.111) --> |
| 1833 | <text form="short" term="personal-communication"/> |
| 1834 | </else-if> |
| 1835 | </choose> |
| 1836 | </group> |
| 1837 | </macro> |
| 1838 | <macro name="description-interview-bib"> |
| 1839 | <group delimiter=", "> |
| 1840 | <choose> |
| 1841 | <if variable="genre number"> |
| 1842 | <!-- `genre` printed with `number` --> |
| 1843 | <names variable="interviewer"> |
| 1844 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1845 | <name and="text" initialize="false"/> |
| 1846 | </names> |
| 1847 | </if> |
| 1848 | <else-if variable="genre"> |
| 1849 | <group delimiter=" "> |
| 1850 | <text text-case="capitalize-first" variable="genre"/> |
| 1851 | <group delimiter=" "> |
| 1852 | <text form="verb" term="container-author"/> |
| 1853 | <names variable="interviewer"> |
| 1854 | <name and="text" initialize="false"/> |
| 1855 | </names> |
| 1856 | </group> |
| 1857 | </group> |
| 1858 | </else-if> |
| 1859 | <else-if variable="interviewer"> |
| 1860 | <names variable="interviewer"> |
| 1861 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1862 | <name and="text" initialize="false"/> |
| 1863 | </names> |
| 1864 | </else-if> |
| 1865 | <else> |
| 1866 | <text macro="description-format-bib"/> |
| 1867 | </else> |
| 1868 | </choose> |
| 1869 | <text macro="source-event-place-first"/> |
| 1870 | </group> |
| 1871 | </macro> |
| 1872 | <macro name="description-interview-note"> |
| 1873 | <group delimiter=", "> |
| 1874 | <choose> |
| 1875 | <if variable="genre number"> |
| 1876 | <!-- `genre` printed with `number` --> |
| 1877 | <names variable="interviewer"> |
| 1878 | <label form="verb" suffix=" "/> |
| 1879 | <name and="text" initialize="false"/> |
| 1880 | </names> |
| 1881 | </if> |
| 1882 | <else-if variable="genre"> |
| 1883 | <group delimiter=" "> |
| 1884 | <text variable="genre"/> |
| 1885 | <group delimiter=" "> |
| 1886 | <text form="verb" term="container-author"/> |
| 1887 | <names variable="interviewer"> |
| 1888 | <name and="text" initialize="false"/> |
| 1889 | </names> |
| 1890 | </group> |
| 1891 | </group> |
| 1892 | </else-if> |
| 1893 | <else-if variable="interviewer"> |
| 1894 | <names variable="interviewer"> |
| 1895 | <label form="verb" suffix=" "/> |
| 1896 | <name and="text" initialize="false"/> |
| 1897 | </names> |
| 1898 | </else-if> |
| 1899 | <else> |
| 1900 | <text macro="description-format-note"/> |
| 1901 | </else> |
| 1902 | </choose> |
| 1903 | <text macro="source-event-place-first"/> |
| 1904 | </group> |
| 1905 | </macro> |
| 1906 | <macro name="description-interview-short"> |
| 1907 | <choose> |
| 1908 | <if disambiguate="true"> |
| 1909 | <names variable="interviewer"> |
| 1910 | <label form="verb" suffix=" "/> |
| 1911 | <name and="text" form="short" initialize="true"/> |
| 1912 | <substitute> |
| 1913 | <text macro="description-format-short"/> |
| 1914 | </substitute> |
| 1915 | </names> |
| 1916 | </if> |
| 1917 | <else-if match="any" variable="genre medium"> |
| 1918 | <choose> |
| 1919 | <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"> |
| 1920 | <text macro="description-format-short"/> |
| 1921 | </if> |
| 1922 | <else> |
| 1923 | <!-- capitalize if no author or title --> |
| 1924 | <text macro="description-format-bib"/> |
| 1925 | </else> |
| 1926 | </choose> |
| 1927 | </else-if> |
| 1928 | <else> |
| 1929 | <!-- generic description for an unpublished interview (CMOS18 14.108) --> |
| 1930 | <text term="interview"/> |
| 1931 | </else> |
| 1932 | </choose> |
| 1933 | </macro> |
| 1934 | <macro name="description-letter-bib"> |
| 1935 | <choose> |
| 1936 | <if variable="recipient"> |
| 1937 | <group delimiter=", "> |
| 1938 | <choose> |
| 1939 | <if variable="genre number"> |
| 1940 | <!-- `genre` appears with `number` --> |
| 1941 | <names variable="recipient"> |
| 1942 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1943 | <name and="text" initialize="false"/> |
| 1944 | </names> |
| 1945 | </if> |
| 1946 | <else-if variable="genre"> |
| 1947 | <group delimiter=" "> |
| 1948 | <text macro="description-format-bib"/> |
| 1949 | <names variable="recipient"> |
| 1950 | <label form="verb" suffix=" "/> |
| 1951 | <name and="text" initialize="false"/> |
| 1952 | </names> |
| 1953 | </group> |
| 1954 | </else-if> |
| 1955 | <else> |
| 1956 | <names variable="recipient"> |
| 1957 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 1958 | <name and="text" initialize="false"/> |
| 1959 | </names> |
| 1960 | </else> |
| 1961 | </choose> |
| 1962 | <text variable="event-place"/> |
| 1963 | <text macro="date-event-full"/> |
| 1964 | </group> |
| 1965 | </if> |
| 1966 | <else> |
| 1967 | <text macro="description-format-bib"/> |
| 1968 | </else> |
| 1969 | </choose> |
| 1970 | </macro> |
| 1971 | <macro name="description-letter-note"> |
| 1972 | <choose> |
| 1973 | <if variable="recipient"> |
| 1974 | <group delimiter=", "> |
| 1975 | <choose> |
| 1976 | <if variable="genre number"> |
| 1977 | <!-- `genre` appears with `number` --> |
| 1978 | <names variable="recipient"> |
| 1979 | <label form="verb" suffix=" "/> |
| 1980 | <name and="text" initialize="false"/> |
| 1981 | </names> |
| 1982 | </if> |
| 1983 | <else-if variable="genre"> |
| 1984 | <group delimiter=" "> |
| 1985 | <text macro="description-format-note"/> |
| 1986 | <names variable="recipient"> |
| 1987 | <label form="verb" suffix=" "/> |
| 1988 | <name and="text" initialize="false"/> |
| 1989 | </names> |
| 1990 | </group> |
| 1991 | </else-if> |
| 1992 | <else> |
| 1993 | <names variable="recipient"> |
| 1994 | <label form="verb" suffix=" "/> |
| 1995 | <name and="text" initialize="false"/> |
| 1996 | </names> |
| 1997 | </else> |
| 1998 | </choose> |
| 1999 | <text variable="event-place"/> |
| 2000 | <text macro="date-event-full"/> |
| 2001 | </group> |
| 2002 | </if> |
| 2003 | <else> |
| 2004 | <text macro="description-format-note"/> |
| 2005 | </else> |
| 2006 | </choose> |
| 2007 | </macro> |
| 2008 | <macro name="description-letter-short"> |
| 2009 | <!-- shortened notes ideally give author, recipient, place, and date (CMOS18 14.13) --> |
| 2010 | <group delimiter=", "> |
| 2011 | <choose> |
| 2012 | <if variable="genre recipient"> |
| 2013 | <group delimiter=" "> |
| 2014 | <text macro="description-format-short"/> |
| 2015 | <names variable="recipient"> |
| 2016 | <label form="verb" suffix=" "/> |
| 2017 | <name and="text" form="short" initialize="true"/> |
| 2018 | </names> |
| 2019 | </group> |
| 2020 | </if> |
| 2021 | <else> |
| 2022 | <text macro="description-format-short"/> |
| 2023 | </else> |
| 2024 | </choose> |
| 2025 | <text variable="event-place"/> |
| 2026 | <choose> |
| 2027 | <if variable="event-date"> |
| 2028 | <text macro="date-event-full"/> |
| 2029 | </if> |
| 2030 | <else> |
| 2031 | <text macro="date-issued-full"/> |
| 2032 | </else> |
| 2033 | </choose> |
| 2034 | </group> |
| 2035 | </macro> |
| 2036 | <macro name="description-paper-conference-bib"> |
| 2037 | <choose> |
| 2038 | <if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2039 | <!-- monographic types --> |
| 2040 | <text macro="description-format-bib"/> |
| 2041 | </if> |
| 2042 | <else> |
| 2043 | <!-- serial types --> |
| 2044 | <group delimiter=". "> |
| 2045 | <text macro="description-serial-bib"/> |
| 2046 | <text macro="source-event-bib"/> |
| 2047 | </group> |
| 2048 | </else> |
| 2049 | </choose> |
| 2050 | </macro> |
| 2051 | <macro name="description-paper-conference-note"> |
| 2052 | <choose> |
| 2053 | <if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2054 | <!-- monographic types --> |
| 2055 | <text macro="description-format-bib"/> |
| 2056 | </if> |
| 2057 | <else> |
| 2058 | <!-- serial types --> |
| 2059 | <group delimiter=", "> |
| 2060 | <text macro="description-serial-note"/> |
| 2061 | <text macro="source-event-note"/> |
| 2062 | </group> |
| 2063 | </else> |
| 2064 | </choose> |
| 2065 | </macro> |
| 2066 | <macro name="description-review-bib"> |
| 2067 | <!-- Reviewed item --> |
| 2068 | <group delimiter=". "> |
| 2069 | <group delimiter=", "> |
| 2070 | <group delimiter=" "> |
| 2071 | <text macro="description-review-genre-bib"/> |
| 2072 | <text macro="description-review-title"/> |
| 2073 | </group> |
| 2074 | <choose> |
| 2075 | <if variable="reviewed-genre reviewed-title title"> |
| 2076 | <names variable="reviewed-author"> |
| 2077 | <label form="verb" suffix=" "/> |
| 2078 | <name and="text" initialize="false"/> |
| 2079 | </names> |
| 2080 | </if> |
| 2081 | <else-if variable="reviewed-genre"/> |
| 2082 | <else> |
| 2083 | <names variable="reviewed-author"> |
| 2084 | <label form="verb" suffix=" "/> |
| 2085 | <name and="text" initialize="false"/> |
| 2086 | </names> |
| 2087 | </else> |
| 2088 | </choose> |
| 2089 | <text macro="source-event-place-first"/> |
| 2090 | </group> |
| 2091 | <text macro="label-section-capitalized"/> |
| 2092 | </group> |
| 2093 | </macro> |
| 2094 | <macro name="description-review-note"> |
| 2095 | <!-- Reviewed item --> |
| 2096 | <group delimiter=", "> |
| 2097 | <group delimiter=", "> |
| 2098 | <group delimiter=" "> |
| 2099 | <text macro="description-review-genre-note"/> |
| 2100 | <text macro="description-review-title"/> |
| 2101 | </group> |
| 2102 | <choose> |
| 2103 | <if variable="reviewed-genre reviewed-title title"> |
| 2104 | <names variable="reviewed-author"> |
| 2105 | <label form="verb" suffix=" "/> |
| 2106 | <name and="text" initialize="false"/> |
| 2107 | </names> |
| 2108 | </if> |
| 2109 | <else-if variable="reviewed-genre"/> |
| 2110 | <else> |
| 2111 | <names variable="reviewed-author"> |
| 2112 | <label form="verb" suffix=" "/> |
| 2113 | <name and="text" initialize="false"/> |
| 2114 | </names> |
| 2115 | </else> |
| 2116 | </choose> |
| 2117 | <text macro="source-event-place-first"/> |
| 2118 | </group> |
| 2119 | <text macro="label-section"/> |
| 2120 | </group> |
| 2121 | </macro> |
| 2122 | <macro name="description-review-genre-bib"> |
| 2123 | <choose> |
| 2124 | <if variable="reviewed-genre"> |
| 2125 | <group delimiter=" "> |
| 2126 | <text macro="description-review-term-unsigned-bib"/> |
| 2127 | <text variable="reviewed-genre"/> |
| 2128 | <choose> |
| 2129 | <if match="none" variable="reviewed-title"> |
| 2130 | <names variable="reviewed-author"> |
| 2131 | <label form="verb" suffix=" "/> |
| 2132 | <name and="text" initialize="false"/> |
| 2133 | </names> |
| 2134 | </if> |
| 2135 | </choose> |
| 2136 | </group> |
| 2137 | </if> |
| 2138 | <else-if variable="number"> |
| 2139 | <text macro="description-review-term-unsigned-bib"/> |
| 2140 | </else-if> |
| 2141 | <!-- If no `reviewed-genre`, assume that `genre` is entered as 'Review of the book' or similar --> |
| 2142 | <else-if variable="genre"> |
| 2143 | <text text-case="capitalize-first" variable="genre"/> |
| 2144 | </else-if> |
| 2145 | <else> |
| 2146 | <text macro="description-review-term-unsigned-bib"/> |
| 2147 | </else> |
| 2148 | </choose> |
| 2149 | </macro> |
| 2150 | <macro name="description-review-genre-note"> |
| 2151 | <choose> |
| 2152 | <if variable="reviewed-genre"> |
| 2153 | <group delimiter=" "> |
| 2154 | <text macro="description-review-term-unsigned-note"/> |
| 2155 | <text variable="reviewed-genre"/> |
| 2156 | <choose> |
| 2157 | <if match="none" variable="reviewed-title"> |
| 2158 | <names variable="reviewed-author"> |
| 2159 | <label form="verb" suffix=" "/> |
| 2160 | <name and="text" initialize="false"/> |
| 2161 | </names> |
| 2162 | </if> |
| 2163 | </choose> |
| 2164 | </group> |
| 2165 | </if> |
| 2166 | <else-if variable="number"> |
| 2167 | <text macro="description-review-term-unsigned-note"/> |
| 2168 | </else-if> |
| 2169 | <!-- If no `reviewed-genre`, assume that `genre` is entered as 'Review of the book' or similar --> |
| 2170 | <else-if variable="genre"> |
| 2171 | <text variable="genre"/> |
| 2172 | </else-if> |
| 2173 | <else> |
| 2174 | <text macro="description-review-term-unsigned-note"/> |
| 2175 | </else> |
| 2176 | </choose> |
| 2177 | </macro> |
| 2178 | <macro name="description-review-short"> |
| 2179 | <choose> |
| 2180 | <if match="any" position="ibid ibid-with-locator"> |
| 2181 | <text term="review"/> |
| 2182 | </if> |
| 2183 | <else> |
| 2184 | <group delimiter=" "> |
| 2185 | <text term="review-of"/> |
| 2186 | <text macro="description-review-title-short"/> |
| 2187 | </group> |
| 2188 | </else> |
| 2189 | </choose> |
| 2190 | </macro> |
| 2191 | <macro name="description-review-term-unsigned-bib"> |
| 2192 | <!-- Anonymous reviews appear as 'unsigned' (CMOS18 14.102) --> |
| 2193 | <choose> |
| 2194 | <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"> |
| 2195 | <text term="review-of" text-case="capitalize-first"/> |
| 2196 | </if> |
| 2197 | <else> |
| 2198 | <group delimiter=" "> |
| 2199 | <text term="anonymous" text-case="capitalize-first"/> |
| 2200 | <text term="review-of"/> |
| 2201 | </group> |
| 2202 | </else> |
| 2203 | </choose> |
| 2204 | </macro> |
| 2205 | <macro name="description-review-term-unsigned-note"> |
| 2206 | <!-- Anonymous reviews appear as 'unsigned' (CMOS18 14.102) --> |
| 2207 | <choose> |
| 2208 | <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"> |
| 2209 | <text term="review-of"/> |
| 2210 | </if> |
| 2211 | <else> |
| 2212 | <group delimiter=" "> |
| 2213 | <text term="anonymous"/> |
| 2214 | <text term="review-of"/> |
| 2215 | </group> |
| 2216 | </else> |
| 2217 | </choose> |
| 2218 | </macro> |
| 2219 | <macro name="description-review-title"> |
| 2220 | <choose> |
| 2221 | <if match="any" variable="reviewed-genre reviewed-title"> |
| 2222 | <!-- Not possible to distinguish TV series episode from other reviewed works without a reviewed source title --> |
| 2223 | <!-- Adapt for `reviewed-container-title` or similar if it becomes available --> |
| 2224 | <text font-style="italic" text-case="title" variable="reviewed-title"/> |
| 2225 | </if> |
| 2226 | <else> |
| 2227 | <!-- Assume title is title of reviewed work --> |
| 2228 | <text font-style="italic" text-case="title" variable="title"/> |
| 2229 | </else> |
| 2230 | </choose> |
| 2231 | </macro> |
| 2232 | <macro name="description-review-title-short"> |
| 2233 | <choose> |
| 2234 | <if match="any" variable="reviewed-genre reviewed-title"> |
| 2235 | <!-- Not possible to distinguish TV series episode from other reviewed works without a reviewed source title --> |
| 2236 | <!-- Adapt for `reviewed-container-title` or similar if it becomes available --> |
| 2237 | <text font-style="italic" form="short" text-case="title" variable="reviewed-title"/> |
| 2238 | </if> |
| 2239 | <else> |
| 2240 | <!-- Assume title is title of reviewed work --> |
| 2241 | <text font-style="italic" form="short" text-case="title" variable="title"/> |
| 2242 | </else> |
| 2243 | </choose> |
| 2244 | </macro> |
| 2245 | <macro name="description-serial-bib"> |
| 2246 | <group delimiter=". "> |
| 2247 | <text macro="description-format-bib"/> |
| 2248 | <!-- `section` provides magazine departments (CMOS18 14.88) and newspaper column names (CMOS18 14.93) --> |
| 2249 | <text macro="label-section-capitalized"/> |
| 2250 | </group> |
| 2251 | </macro> |
| 2252 | <macro name="description-serial-note"> |
| 2253 | <group delimiter=", "> |
| 2254 | <text macro="description-format-note"/> |
| 2255 | <!-- `section` provides magazine departments (CMOS18 14.88) and newspaper column names (CMOS18 14.93) --> |
| 2256 | <text macro="label-section"/> |
| 2257 | </group> |
| 2258 | </macro> |
| 2259 | <macro name="description-serial-short"> |
| 2260 | <choose> |
| 2261 | <if variable="title"/> |
| 2262 | <else-if variable="genre"> |
| 2263 | <text macro="description-format-short"/> |
| 2264 | </else-if> |
| 2265 | <else> |
| 2266 | <text form="short" text-case="title" variable="section"/> |
| 2267 | </else> |
| 2268 | </choose> |
| 2269 | </macro> |
| 2270 | <macro name="description-song-bib"> |
| 2271 | <!-- Performer of classical music works --> |
| 2272 | <!-- TODO: remove when Zotero fixes mapping of performer to `author` --> |
| 2273 | <group delimiter=" "> |
| 2274 | <!-- Based on `description-format` macro --> |
| 2275 | <choose> |
| 2276 | <if variable="genre"> |
| 2277 | <text text-case="capitalize-first" variable="genre"/> |
| 2278 | <text form="verb" term="performer"/> |
| 2279 | </if> |
| 2280 | <!-- providing 'performed by' label for recorded readings (CMOS18 14.164), but it should be omitted for classical music (CMOS18 14.163) --> |
| 2281 | <else> |
| 2282 | <text form="verb" term="performer" text-case="capitalize-first"/> |
| 2283 | </else> |
| 2284 | </choose> |
| 2285 | <names variable="author"> |
| 2286 | <name and="text" initialize="false"/> |
| 2287 | <substitute> |
| 2288 | <names variable="performer"/> |
| 2289 | </substitute> |
| 2290 | </names> |
| 2291 | </group> |
| 2292 | </macro> |
| 2293 | <macro name="description-song-note"> |
| 2294 | <!-- Performer of classical music works --> |
| 2295 | <!-- TODO: remove when Zotero fixes mapping of performer to `author` --> |
| 2296 | <group delimiter=" "> |
| 2297 | <!-- Based on `description-format` macro --> |
| 2298 | <choose> |
| 2299 | <if variable="genre"> |
| 2300 | <text variable="genre"/> |
| 2301 | <text form="verb" term="performer"/> |
| 2302 | </if> |
| 2303 | <!-- providing 'performed by' label for recorded readings (CMOS18 14.164), but it should be omitted for classical music (CMOS18 14.163) --> |
| 2304 | <else> |
| 2305 | <text form="verb" term="performer"/> |
| 2306 | </else> |
| 2307 | </choose> |
| 2308 | <names variable="author"> |
| 2309 | <name and="text" initialize="false"/> |
| 2310 | <substitute> |
| 2311 | <names variable="performer"/> |
| 2312 | </substitute> |
| 2313 | </names> |
| 2314 | </group> |
| 2315 | </macro> |
| 2316 | <!-- 3.3. Identifier (edition, contributors, volume) --> |
| 2317 | <macro name="identifier-bib"> |
| 2318 | <group delimiter=". "> |
| 2319 | <choose> |
| 2320 | <if type="patent"> |
| 2321 | <text macro="identifier-patent"/> |
| 2322 | </if> |
| 2323 | <else-if type="report"> |
| 2324 | <text macro="identifier-report-bib"/> |
| 2325 | </else-if> |
| 2326 | <else-if match="any" type="post webpage"> |
| 2327 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 2328 | <text macro="identifier-number-bib"/> |
| 2329 | <text macro="label-version-capitalized"/> |
| 2330 | <text macro="identifier-edition-bib"/> |
| 2331 | <text macro="identifier-contributors-bib"/> |
| 2332 | </else-if> |
| 2333 | <else-if variable="container-title"> |
| 2334 | <choose> |
| 2335 | <if match="any" type="broadcast graphic map motion_picture"> |
| 2336 | <!-- For audiovisual media, number information comes after `title`, not `container-title`; `song` places album catalogue `number` with `publisher` (CMOS18 14.163-164) --> |
| 2337 | <text macro="identifier-number-bib"/> |
| 2338 | </if> |
| 2339 | </choose> |
| 2340 | <text macro="identifier-contributors-bib"/> |
| 2341 | </else-if> |
| 2342 | <else> |
| 2343 | <choose> |
| 2344 | <if match="none" type="song"> |
| 2345 | <text macro="identifier-number-bib"/> |
| 2346 | </if> |
| 2347 | </choose> |
| 2348 | <text macro="label-version-capitalized"/> |
| 2349 | <text macro="identifier-edition-bib"/> |
| 2350 | <text macro="identifier-contributors-and-volume-bib"/> |
| 2351 | </else> |
| 2352 | </choose> |
| 2353 | </group> |
| 2354 | </macro> |
| 2355 | <macro name="identifier-note"> |
| 2356 | <group delimiter=", "> |
| 2357 | <choose> |
| 2358 | <if type="patent"> |
| 2359 | <text macro="identifier-patent"/> |
| 2360 | </if> |
| 2361 | <else-if type="report"> |
| 2362 | <text macro="identifier-report-note"/> |
| 2363 | </else-if> |
| 2364 | <else-if match="any" type="post webpage"> |
| 2365 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 2366 | <text macro="identifier-number-note"/> |
| 2367 | <text macro="label-version"/> |
| 2368 | <text macro="identifier-edition-note"/> |
| 2369 | <text macro="identifier-contributors-note"/> |
| 2370 | </else-if> |
| 2371 | <else-if variable="container-title"> |
| 2372 | <choose> |
| 2373 | <if match="any" type="broadcast graphic map motion_picture"> |
| 2374 | <!-- For audiovisual media, number information comes after `title`, not `container-title`; `song` places album catalogue `number` with `publisher` (CMOS18 14.163-164) --> |
| 2375 | <text macro="identifier-number-note"/> |
| 2376 | </if> |
| 2377 | </choose> |
| 2378 | <text macro="identifier-contributors-note"/> |
| 2379 | </else-if> |
| 2380 | <else> |
| 2381 | <choose> |
| 2382 | <if match="none" type="song"> |
| 2383 | <text macro="identifier-number-note"/> |
| 2384 | </if> |
| 2385 | </choose> |
| 2386 | <text macro="label-version"/> |
| 2387 | <text macro="identifier-edition-note"/> |
| 2388 | <text macro="identifier-contributors-and-volume-note"/> |
| 2389 | </else> |
| 2390 | </choose> |
| 2391 | </group> |
| 2392 | </macro> |
| 2393 | <!-- Identifier elements --> |
| 2394 | <macro name="identifier-contributors-bib"> |
| 2395 | <choose> |
| 2396 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 2397 | <text macro="identifier-contributors-serial-bib"/> |
| 2398 | </if> |
| 2399 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2400 | <text macro="identifier-contributors-monographic-bib"/> |
| 2401 | </else-if> |
| 2402 | <else-if match="any" type="interview paper-conference"> |
| 2403 | <text macro="identifier-contributors-serial-bib"/> |
| 2404 | </else-if> |
| 2405 | <else> |
| 2406 | <text macro="identifier-contributors-monographic-bib"/> |
| 2407 | </else> |
| 2408 | </choose> |
| 2409 | </macro> |
| 2410 | <macro name="identifier-contributors-note"> |
| 2411 | <choose> |
| 2412 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 2413 | <text macro="identifier-contributors-serial-note"/> |
| 2414 | </if> |
| 2415 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2416 | <text macro="identifier-contributors-monographic-note"/> |
| 2417 | </else-if> |
| 2418 | <else-if match="any" type="interview paper-conference"> |
| 2419 | <text macro="identifier-contributors-serial-note"/> |
| 2420 | </else-if> |
| 2421 | <else> |
| 2422 | <text macro="identifier-contributors-monographic-note"/> |
| 2423 | </else> |
| 2424 | </choose> |
| 2425 | </macro> |
| 2426 | <macro name="identifier-contributors-monographic-bib"> |
| 2427 | <group delimiter=". "> |
| 2428 | <choose> |
| 2429 | <if match="any" type="post webpage"> |
| 2430 | <names variable="container-author"> |
| 2431 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2432 | <name and="text" initialize="false"/> |
| 2433 | </names> |
| 2434 | <names variable="editor-translator"> |
| 2435 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2436 | <name and="text" initialize="false"/> |
| 2437 | </names> |
| 2438 | <names delimiter=". " variable="editor translator"> |
| 2439 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2440 | <name and="text" initialize="false"/> |
| 2441 | </names> |
| 2442 | <names variable="editorial-director"> |
| 2443 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2444 | <name and="text" initialize="false"/> |
| 2445 | </names> |
| 2446 | <names variable="guest"> |
| 2447 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2448 | <name and="text" initialize="false"/> |
| 2449 | </names> |
| 2450 | <names variable="host"> |
| 2451 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2452 | <name and="text" initialize="false"/> |
| 2453 | </names> |
| 2454 | <names variable="illustrator"> |
| 2455 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2456 | <name and="text" initialize="false"/> |
| 2457 | </names> |
| 2458 | <names variable="narrator"> |
| 2459 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2460 | <name and="text" initialize="false"/> |
| 2461 | </names> |
| 2462 | <names delimiter=". " variable="compiler chair organizer curator"> |
| 2463 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2464 | <name and="text" initialize="false"/> |
| 2465 | </names> |
| 2466 | <names delimiter=". " variable="series-creator executive-producer"> |
| 2467 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2468 | <name and="text" initialize="false"/> |
| 2469 | </names> |
| 2470 | <names variable="producer"> |
| 2471 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2472 | <name and="text" initialize="false"/> |
| 2473 | </names> |
| 2474 | <names variable="director"> |
| 2475 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2476 | <name and="text" initialize="false"/> |
| 2477 | </names> |
| 2478 | <choose> |
| 2479 | <if match="any" type="broadcast performance"> |
| 2480 | <names variable="script-writer"> |
| 2481 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2482 | <name and="text" initialize="false"/> |
| 2483 | </names> |
| 2484 | </if> |
| 2485 | </choose> |
| 2486 | <names variable="performer"> |
| 2487 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2488 | <name and="text" initialize="false"/> |
| 2489 | </names> |
| 2490 | <choose> |
| 2491 | <if match="none" type="thesis"> |
| 2492 | <names variable="contributor"> |
| 2493 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2494 | <name and="text" initialize="false"/> |
| 2495 | </names> |
| 2496 | </if> |
| 2497 | </choose> |
| 2498 | </if> |
| 2499 | <else> |
| 2500 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 2501 | <choose> |
| 2502 | <if match="none" variable="container-title"> |
| 2503 | <names variable="container-author"> |
| 2504 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2505 | <name and="text" initialize="false"/> |
| 2506 | </names> |
| 2507 | <names variable="editor-translator"> |
| 2508 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2509 | <name and="text" initialize="false"/> |
| 2510 | </names> |
| 2511 | <names delimiter=". " variable="editor translator"> |
| 2512 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2513 | <name and="text" initialize="false"/> |
| 2514 | </names> |
| 2515 | <names variable="editorial-director"> |
| 2516 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2517 | <name and="text" initialize="false"/> |
| 2518 | </names> |
| 2519 | <names variable="guest"> |
| 2520 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2521 | <name and="text" initialize="false"/> |
| 2522 | </names> |
| 2523 | <names variable="host"> |
| 2524 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2525 | <name and="text" initialize="false"/> |
| 2526 | </names> |
| 2527 | </if> |
| 2528 | </choose> |
| 2529 | <names variable="illustrator"> |
| 2530 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2531 | <name and="text" initialize="false"/> |
| 2532 | </names> |
| 2533 | <names variable="narrator"> |
| 2534 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2535 | <name and="text" initialize="false"/> |
| 2536 | </names> |
| 2537 | <choose> |
| 2538 | <if match="none" variable="container-title"> |
| 2539 | <names delimiter=". " variable="compiler chair organizer curator"> |
| 2540 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2541 | <name and="text" initialize="false"/> |
| 2542 | </names> |
| 2543 | <names delimiter=". " variable="series-creator executive-producer"> |
| 2544 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2545 | <name and="text" initialize="false"/> |
| 2546 | </names> |
| 2547 | <names variable="producer"> |
| 2548 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2549 | <name and="text" initialize="false"/> |
| 2550 | </names> |
| 2551 | <names variable="director"> |
| 2552 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2553 | <name and="text" initialize="false"/> |
| 2554 | </names> |
| 2555 | <choose> |
| 2556 | <if match="any" type="broadcast performance"> |
| 2557 | <names variable="script-writer"> |
| 2558 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2559 | <name and="text" initialize="false"/> |
| 2560 | </names> |
| 2561 | </if> |
| 2562 | </choose> |
| 2563 | <names variable="performer"> |
| 2564 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2565 | <name and="text" initialize="false"/> |
| 2566 | </names> |
| 2567 | <choose> |
| 2568 | <if match="none" type="song thesis"> |
| 2569 | <names variable="contributor"> |
| 2570 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2571 | <name and="text" initialize="false"/> |
| 2572 | </names> |
| 2573 | </if> |
| 2574 | </choose> |
| 2575 | </if> |
| 2576 | </choose> |
| 2577 | <choose> |
| 2578 | <if type="song"> |
| 2579 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 2580 | <names variable="contributor"> |
| 2581 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2582 | <name and="text" initialize="false"/> |
| 2583 | </names> |
| 2584 | </if> |
| 2585 | </choose> |
| 2586 | </else> |
| 2587 | </choose> |
| 2588 | </group> |
| 2589 | </macro> |
| 2590 | <macro name="identifier-contributors-monographic-bib-multivolume"> |
| 2591 | <!-- lowercase for attachment to volume; otherwise identical to `identifier-contributors-monographic-bib` --> |
| 2592 | <group delimiter=", "> |
| 2593 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 2594 | <choose> |
| 2595 | <if match="none" variable="container-title"> |
| 2596 | <names variable="container-author"> |
| 2597 | <label form="verb" suffix=" "/> |
| 2598 | <name and="text" initialize="false"/> |
| 2599 | </names> |
| 2600 | <names variable="editor-translator"> |
| 2601 | <label form="verb" suffix=" "/> |
| 2602 | <name and="text" initialize="false"/> |
| 2603 | </names> |
| 2604 | <names delimiter=", " variable="editor translator"> |
| 2605 | <label form="verb" suffix=" "/> |
| 2606 | <name and="text" initialize="false"/> |
| 2607 | </names> |
| 2608 | <names variable="editorial-director"> |
| 2609 | <label form="verb" suffix=" "/> |
| 2610 | <name and="text" initialize="false"/> |
| 2611 | </names> |
| 2612 | <names variable="guest"> |
| 2613 | <label form="verb" suffix=" "/> |
| 2614 | <name and="text" initialize="false"/> |
| 2615 | </names> |
| 2616 | <names variable="host"> |
| 2617 | <label form="verb" suffix=" "/> |
| 2618 | <name and="text" initialize="false"/> |
| 2619 | </names> |
| 2620 | </if> |
| 2621 | </choose> |
| 2622 | <names variable="illustrator"> |
| 2623 | <label form="verb" suffix=" "/> |
| 2624 | <name and="text" initialize="false"/> |
| 2625 | </names> |
| 2626 | <names variable="narrator"> |
| 2627 | <label form="verb" suffix=" "/> |
| 2628 | <name and="text" initialize="false"/> |
| 2629 | </names> |
| 2630 | <choose> |
| 2631 | <if match="none" variable="container-title"> |
| 2632 | <names delimiter=", " variable="compiler chair organizer curator"> |
| 2633 | <label form="verb" suffix=" "/> |
| 2634 | <name and="text" initialize="false"/> |
| 2635 | </names> |
| 2636 | <names delimiter=", " variable="series-creator executive-producer"> |
| 2637 | <label form="verb" suffix=" "/> |
| 2638 | <name and="text" initialize="false"/> |
| 2639 | </names> |
| 2640 | <names variable="producer"> |
| 2641 | <label form="verb" suffix=" "/> |
| 2642 | <name and="text" initialize="false"/> |
| 2643 | </names> |
| 2644 | <names variable="director"> |
| 2645 | <label form="verb" suffix=" "/> |
| 2646 | <name and="text" initialize="false"/> |
| 2647 | </names> |
| 2648 | <choose> |
| 2649 | <if match="any" type="broadcast performance"> |
| 2650 | <names variable="script-writer"> |
| 2651 | <label form="verb" suffix=" "/> |
| 2652 | <name and="text" initialize="false"/> |
| 2653 | </names> |
| 2654 | </if> |
| 2655 | </choose> |
| 2656 | <names variable="performer"> |
| 2657 | <label form="verb" suffix=" "/> |
| 2658 | <name and="text" initialize="false"/> |
| 2659 | </names> |
| 2660 | <choose> |
| 2661 | <if match="none" type="song thesis"> |
| 2662 | <names variable="contributor"> |
| 2663 | <label form="verb" suffix=" "/> |
| 2664 | <name and="text" initialize="false"/> |
| 2665 | </names> |
| 2666 | </if> |
| 2667 | </choose> |
| 2668 | </if> |
| 2669 | </choose> |
| 2670 | <choose> |
| 2671 | <if type="song"> |
| 2672 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 2673 | <names variable="contributor"> |
| 2674 | <label form="verb" suffix=" "/> |
| 2675 | <name and="text" initialize="false"/> |
| 2676 | </names> |
| 2677 | </if> |
| 2678 | </choose> |
| 2679 | </group> |
| 2680 | </macro> |
| 2681 | <macro name="identifier-contributors-monographic-note"> |
| 2682 | <group delimiter=", "> |
| 2683 | <choose> |
| 2684 | <if match="any" type="post webpage"> |
| 2685 | <names variable="container-author"> |
| 2686 | <label form="verb" suffix=" "/> |
| 2687 | <name and="text" initialize="false"/> |
| 2688 | </names> |
| 2689 | <names variable="editor-translator"> |
| 2690 | <label form="verb-short" suffix=" "/> |
| 2691 | <name and="text" initialize="false"/> |
| 2692 | </names> |
| 2693 | <names delimiter=", " variable="editor translator"> |
| 2694 | <label form="verb-short" suffix=" "/> |
| 2695 | <name and="text" initialize="false"/> |
| 2696 | </names> |
| 2697 | <names variable="editorial-director"> |
| 2698 | <label form="verb-short" suffix=" "/> |
| 2699 | <name and="text" initialize="false"/> |
| 2700 | </names> |
| 2701 | <names variable="guest"> |
| 2702 | <label form="verb" suffix=" "/> |
| 2703 | <name and="text" initialize="false"/> |
| 2704 | </names> |
| 2705 | <names variable="host"> |
| 2706 | <label form="verb" suffix=" "/> |
| 2707 | <name and="text" initialize="false"/> |
| 2708 | </names> |
| 2709 | <names variable="illustrator"> |
| 2710 | <label form="verb-short" suffix=" "/> |
| 2711 | <name and="text" initialize="false"/> |
| 2712 | </names> |
| 2713 | <names variable="narrator"> |
| 2714 | <label form="verb" suffix=" "/> |
| 2715 | <name and="text" initialize="false"/> |
| 2716 | </names> |
| 2717 | <names variable="compiler"> |
| 2718 | <label form="verb-short" suffix=" "/> |
| 2719 | <name and="text" initialize="false"/> |
| 2720 | </names> |
| 2721 | <names delimiter=", " variable="chair organizer curator"> |
| 2722 | <label form="verb" suffix=" "/> |
| 2723 | <name and="text" initialize="false"/> |
| 2724 | </names> |
| 2725 | <names delimiter=", " variable="series-creator executive-producer"> |
| 2726 | <label form="verb" suffix=" "/> |
| 2727 | <name and="text" initialize="false"/> |
| 2728 | </names> |
| 2729 | <names variable="producer"> |
| 2730 | <!-- not abbreviated (CMOS18 14.168) --> |
| 2731 | <label form="verb" suffix=" "/> |
| 2732 | <name and="text" initialize="false"/> |
| 2733 | </names> |
| 2734 | <names variable="director"> |
| 2735 | <!-- `director` is not abbreviated (CMOS18 14.165) --> |
| 2736 | <label form="verb" suffix=" "/> |
| 2737 | <name and="text" initialize="false"/> |
| 2738 | </names> |
| 2739 | <choose> |
| 2740 | <if match="any" type="broadcast performance"> |
| 2741 | <names variable="script-writer"> |
| 2742 | <!-- `script-writer` is not abbreviated (CMOS18 14.165) --> |
| 2743 | <label form="verb" suffix=" "/> |
| 2744 | <name and="text" initialize="false"/> |
| 2745 | </names> |
| 2746 | </if> |
| 2747 | </choose> |
| 2748 | <names variable="performer"> |
| 2749 | <label form="verb" suffix=" "/> |
| 2750 | <name and="text" initialize="false"/> |
| 2751 | </names> |
| 2752 | <choose> |
| 2753 | <if match="none" type="thesis"> |
| 2754 | <names variable="contributor"> |
| 2755 | <label form="verb" suffix=" "/> |
| 2756 | <name and="text" initialize="false"/> |
| 2757 | </names> |
| 2758 | </if> |
| 2759 | </choose> |
| 2760 | </if> |
| 2761 | <else> |
| 2762 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 2763 | <choose> |
| 2764 | <if match="none" variable="container-title"> |
| 2765 | <names variable="container-author"> |
| 2766 | <label form="verb" suffix=" "/> |
| 2767 | <name and="text" initialize="false"/> |
| 2768 | </names> |
| 2769 | <names variable="editor-translator"> |
| 2770 | <label form="verb-short" suffix=" "/> |
| 2771 | <name and="text" initialize="false"/> |
| 2772 | </names> |
| 2773 | <names delimiter=", " variable="editor translator"> |
| 2774 | <label form="verb-short" suffix=" "/> |
| 2775 | <name and="text" initialize="false"/> |
| 2776 | </names> |
| 2777 | <names variable="editorial-director"> |
| 2778 | <label form="verb-short" suffix=" "/> |
| 2779 | <name and="text" initialize="false"/> |
| 2780 | </names> |
| 2781 | <names variable="guest"> |
| 2782 | <label form="verb" suffix=" "/> |
| 2783 | <name and="text" initialize="false"/> |
| 2784 | </names> |
| 2785 | <names variable="host"> |
| 2786 | <label form="verb" suffix=" "/> |
| 2787 | <name and="text" initialize="false"/> |
| 2788 | </names> |
| 2789 | </if> |
| 2790 | </choose> |
| 2791 | <names delimiter=", " variable="illustrator"> |
| 2792 | <label form="verb-short" suffix=" "/> |
| 2793 | <name and="text" initialize="false"/> |
| 2794 | </names> |
| 2795 | <names delimiter=", " variable="narrator"> |
| 2796 | <!-- narrator is not abbreviated (CMOS18 14.58) --> |
| 2797 | <label form="verb" suffix=" "/> |
| 2798 | <name and="text" initialize="false"/> |
| 2799 | </names> |
| 2800 | <choose> |
| 2801 | <if match="none" variable="container-title"> |
| 2802 | <names variable="compiler"> |
| 2803 | <label form="verb-short" suffix=" "/> |
| 2804 | <name and="text" initialize="false"/> |
| 2805 | </names> |
| 2806 | <names delimiter=", " variable="chair organizer curator"> |
| 2807 | <label form="verb" suffix=" "/> |
| 2808 | <name and="text" initialize="false"/> |
| 2809 | </names> |
| 2810 | <names delimiter=", " variable="series-creator executive-producer"> |
| 2811 | <label form="verb" suffix=" "/> |
| 2812 | <name and="text" initialize="false"/> |
| 2813 | </names> |
| 2814 | <names variable="producer"> |
| 2815 | <!-- not abbreviated (CMOS18 14.168) --> |
| 2816 | <label form="verb" suffix=" "/> |
| 2817 | <name and="text" initialize="false"/> |
| 2818 | </names> |
| 2819 | <names variable="director"> |
| 2820 | <!-- `director` is not abbreviated (CMOS18 14.165) --> |
| 2821 | <label form="verb" suffix=" "/> |
| 2822 | <name and="text" initialize="false"/> |
| 2823 | </names> |
| 2824 | <choose> |
| 2825 | <if match="any" type="broadcast performance"> |
| 2826 | <names variable="script-writer"> |
| 2827 | <!-- `script-writer` is not abbreviated (CMOS18 14.165) --> |
| 2828 | <label form="verb" suffix=" "/> |
| 2829 | <name and="text" initialize="false"/> |
| 2830 | </names> |
| 2831 | </if> |
| 2832 | </choose> |
| 2833 | <names variable="performer"> |
| 2834 | <label form="verb" suffix=" "/> |
| 2835 | <name and="text" initialize="false"/> |
| 2836 | </names> |
| 2837 | <choose> |
| 2838 | <if match="none" type="song thesis"> |
| 2839 | <names variable="contributor"> |
| 2840 | <label form="verb" suffix=" "/> |
| 2841 | <name and="text" initialize="false"/> |
| 2842 | </names> |
| 2843 | </if> |
| 2844 | </choose> |
| 2845 | </if> |
| 2846 | </choose> |
| 2847 | <choose> |
| 2848 | <if type="song"> |
| 2849 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 2850 | <names variable="contributor"> |
| 2851 | <label form="verb" suffix=" "/> |
| 2852 | <name and="text" initialize="false"/> |
| 2853 | </names> |
| 2854 | </if> |
| 2855 | </choose> |
| 2856 | </else> |
| 2857 | </choose> |
| 2858 | </group> |
| 2859 | </macro> |
| 2860 | <macro name="identifier-contributors-serial-bib"> |
| 2861 | <group delimiter=". "> |
| 2862 | <names delimiter=". " variable="translator narrator"> |
| 2863 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2864 | <name and="text" initialize="false"/> |
| 2865 | </names> |
| 2866 | <names delimiter=". " variable="compiler chair organizer curator"> |
| 2867 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2868 | <name and="text" initialize="false"/> |
| 2869 | </names> |
| 2870 | <names delimiter=". " variable="series-creator executive-producer"> |
| 2871 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2872 | <name and="text" initialize="false"/> |
| 2873 | </names> |
| 2874 | <names variable="producer"> |
| 2875 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2876 | <name and="text" initialize="false"/> |
| 2877 | </names> |
| 2878 | <names variable="director"> |
| 2879 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2880 | <name and="text" initialize="false"/> |
| 2881 | </names> |
| 2882 | <names variable="script-writer"> |
| 2883 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2884 | <name and="text" initialize="false"/> |
| 2885 | </names> |
| 2886 | <names variable="performer"> |
| 2887 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2888 | <name and="text" initialize="false"/> |
| 2889 | </names> |
| 2890 | </group> |
| 2891 | </macro> |
| 2892 | <macro name="identifier-contributors-serial-note"> |
| 2893 | <group delimiter=", "> |
| 2894 | <names variable="translator"> |
| 2895 | <label form="verb-short" suffix=" "/> |
| 2896 | <name and="text" initialize="false"/> |
| 2897 | </names> |
| 2898 | <names variable="narrator"> |
| 2899 | <label form="verb" suffix=" "/> |
| 2900 | <name and="text" initialize="false"/> |
| 2901 | </names> |
| 2902 | <names delimiter=", " variable="compiler chair organizer curator"> |
| 2903 | <label form="verb" suffix=" "/> |
| 2904 | <name and="text" initialize="false"/> |
| 2905 | </names> |
| 2906 | <names delimiter=", " variable="series-creator executive-producer"> |
| 2907 | <label form="verb" suffix=" "/> |
| 2908 | <name and="text" initialize="false"/> |
| 2909 | </names> |
| 2910 | <names variable="producer"> |
| 2911 | <!-- not abbreviated (CMOS18 14.168) --> |
| 2912 | <label form="verb" suffix=" "/> |
| 2913 | <name and="text" initialize="false"/> |
| 2914 | </names> |
| 2915 | <names variable="director"> |
| 2916 | <!-- `director` is not abbreviated (CMOS18 14.165) --> |
| 2917 | <label form="verb" suffix=" "/> |
| 2918 | <name and="text" initialize="false"/> |
| 2919 | </names> |
| 2920 | <names variable="script-writer"> |
| 2921 | <!-- `script-writer` is not abbreviated (CMOS18 14.165) --> |
| 2922 | <label form="verb" suffix=" "/> |
| 2923 | <name and="text" initialize="false"/> |
| 2924 | </names> |
| 2925 | <names variable="performer"> |
| 2926 | <label form="verb" suffix=" "/> |
| 2927 | <name and="text" initialize="false"/> |
| 2928 | </names> |
| 2929 | </group> |
| 2930 | </macro> |
| 2931 | <macro name="identifier-contributors-and-volume-bib"> |
| 2932 | <choose> |
| 2933 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 2934 | <!-- serial types --> |
| 2935 | <text macro="identifier-contributors-serial-bib"/> |
| 2936 | </if> |
| 2937 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2938 | <!-- monographic types --> |
| 2939 | <text macro="identifier-contributors-and-volume-monographic-bib"/> |
| 2940 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 2941 | <!-- <text macro="identifier-contributors-and-volume-monographic-bib-specific-title-first"/> --> |
| 2942 | </else-if> |
| 2943 | <else-if match="any" type="interview paper-conference"> |
| 2944 | <!-- serial types --> |
| 2945 | <text macro="identifier-contributors-serial-bib"/> |
| 2946 | </else-if> |
| 2947 | <else> |
| 2948 | <!-- monographic types --> |
| 2949 | <text macro="identifier-contributors-and-volume-monographic-bib"/> |
| 2950 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 2951 | <!-- <text macro="identifier-contributors-and-volume-monographic-bib-specific-title-first"/> --> |
| 2952 | </else> |
| 2953 | </choose> |
| 2954 | </macro> |
| 2955 | <macro name="identifier-contributors-and-volume-note"> |
| 2956 | <choose> |
| 2957 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 2958 | <!-- serial types --> |
| 2959 | <text macro="identifier-contributors-serial-note"/> |
| 2960 | </if> |
| 2961 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 2962 | <!-- monographic types --> |
| 2963 | <text macro="identifier-contributors-and-volume-monographic-note"/> |
| 2964 | </else-if> |
| 2965 | <else-if match="any" type="interview paper-conference"> |
| 2966 | <!-- serial types --> |
| 2967 | <text macro="identifier-contributors-serial-note"/> |
| 2968 | </else-if> |
| 2969 | <else> |
| 2970 | <!-- monographic types --> |
| 2971 | <text macro="identifier-contributors-and-volume-monographic-note"/> |
| 2972 | </else> |
| 2973 | </choose> |
| 2974 | </macro> |
| 2975 | <macro name="identifier-contributors-and-volume-monographic-bib"> |
| 2976 | <group delimiter=". "> |
| 2977 | <choose> |
| 2978 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 2979 | <!-- cite multivolume `collection-editor`; otherwise it belongs with `collection-title` --> |
| 2980 | <names variable="collection-editor"> |
| 2981 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 2982 | <name and="text" initialize="false"/> |
| 2983 | </names> |
| 2984 | </if> |
| 2985 | </choose> |
| 2986 | <group delimiter=", "> |
| 2987 | <text macro="identifier-volume-bib"/> |
| 2988 | <choose> |
| 2989 | <if match="any" variable="part-number part-title volume volume-title"> |
| 2990 | <text macro="identifier-contributors-monographic-bib-multivolume"/> |
| 2991 | </if> |
| 2992 | </choose> |
| 2993 | </group> |
| 2994 | <choose> |
| 2995 | <if match="none" variable="part-number part-title volume volume-title"> |
| 2996 | <text macro="identifier-contributors-monographic-bib"/> |
| 2997 | <text macro="label-number-of-volumes"/> |
| 2998 | </if> |
| 2999 | </choose> |
| 3000 | </group> |
| 3001 | </macro> |
| 3002 | <macro name="identifier-contributors-and-volume-monographic-note"> |
| 3003 | <group delimiter=", "> |
| 3004 | <choose> |
| 3005 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 3006 | <!-- cite multivolume `collection-editor`; otherwise it belongs with `collection-title` --> |
| 3007 | <names variable="collection-editor"> |
| 3008 | <label form="verb-short" suffix=" "/> |
| 3009 | <name and="text" initialize="false"/> |
| 3010 | </names> |
| 3011 | </if> |
| 3012 | </choose> |
| 3013 | <text macro="identifier-volume-note"/> |
| 3014 | <text macro="identifier-contributors-note"/> |
| 3015 | <choose> |
| 3016 | <!-- notes only show the number of volumes if there is no physical locator, which should include a volume number, e.g. 4:243 --> |
| 3017 | <if match="any" variable="part-number part-title volume volume-title"/> |
| 3018 | <else-if locator="column"/> |
| 3019 | <else-if locator="folio"/> |
| 3020 | <else-if locator="page"/> |
| 3021 | <else> |
| 3022 | <text macro="label-number-of-volumes"/> |
| 3023 | </else> |
| 3024 | </choose> |
| 3025 | </group> |
| 3026 | </macro> |
| 3027 | <macro name="identifier-edition-bib"> |
| 3028 | <choose> |
| 3029 | <!-- ensure `source-publication-history-bib` does not duplicate edition --> |
| 3030 | <if variable="original-title"> |
| 3031 | <text macro="label-edition-capitalized"/> |
| 3032 | </if> |
| 3033 | <else-if variable="issued original-date"/> |
| 3034 | <else> |
| 3035 | <text macro="label-edition-capitalized"/> |
| 3036 | </else> |
| 3037 | </choose> |
| 3038 | </macro> |
| 3039 | <macro name="identifier-edition-note"> |
| 3040 | <choose> |
| 3041 | <!-- ensure `source-publication-history-note` does not duplicate edition --> |
| 3042 | <if variable="original-title"> |
| 3043 | <text macro="label-edition"/> |
| 3044 | </if> |
| 3045 | <else-if variable="issued original-date"/> |
| 3046 | <else> |
| 3047 | <text macro="label-edition"/> |
| 3048 | </else> |
| 3049 | </choose> |
| 3050 | </macro> |
| 3051 | <macro name="identifier-number-bib"> |
| 3052 | <group delimiter=" "> |
| 3053 | <choose> |
| 3054 | <if type="thesis"/> |
| 3055 | <else-if is-numeric="number" type="broadcast" variable="genre"> |
| 3056 | <text text-case="capitalize-first" variable="genre"/> |
| 3057 | <text variable="number"/> |
| 3058 | </else-if> |
| 3059 | <else-if is-numeric="number" type="broadcast"> |
| 3060 | <text text-case="capitalize-first" value="episode"/> |
| 3061 | <text variable="number"/> |
| 3062 | </else-if> |
| 3063 | <else-if variable="number"> |
| 3064 | <text text-case="title" variable="genre"/> |
| 3065 | <text macro="label-number-capitalized"/> |
| 3066 | </else-if> |
| 3067 | </choose> |
| 3068 | </group> |
| 3069 | </macro> |
| 3070 | <macro name="identifier-number-note"> |
| 3071 | <group delimiter=" "> |
| 3072 | <choose> |
| 3073 | <if type="thesis"/> |
| 3074 | <else-if is-numeric="number" type="broadcast" variable="genre"> |
| 3075 | <text variable="genre"/> |
| 3076 | <text variable="number"/> |
| 3077 | </else-if> |
| 3078 | <else-if is-numeric="number" type="broadcast"> |
| 3079 | <text value="episode"/> |
| 3080 | <text variable="number"/> |
| 3081 | </else-if> |
| 3082 | <else-if variable="number"> |
| 3083 | <text variable="genre"/> |
| 3084 | <text macro="label-number"/> |
| 3085 | </else-if> |
| 3086 | </choose> |
| 3087 | </group> |
| 3088 | </macro> |
| 3089 | <macro name="identifier-patent"> |
| 3090 | <group delimiter=", "> |
| 3091 | <group delimiter=" "> |
| 3092 | <!-- `authority`: US ; `genre`: patent ; `number`: 123,445 --> |
| 3093 | <text form="short" variable="authority"/> |
| 3094 | <!-- 'US Patent' capitalized in both bibliography and note forms --> |
| 3095 | <choose> |
| 3096 | <if variable="genre"> |
| 3097 | <text text-case="capitalize-first" variable="genre"/> |
| 3098 | </if> |
| 3099 | <else> |
| 3100 | <text term="patent" text-case="capitalize-first"/> |
| 3101 | </else> |
| 3102 | </choose> |
| 3103 | <text variable="number"/> |
| 3104 | </group> |
| 3105 | <group delimiter=" "> |
| 3106 | <text value="filed"/> |
| 3107 | <date form="text" variable="submitted"/> |
| 3108 | </group> |
| 3109 | <group delimiter=" "> |
| 3110 | <choose> |
| 3111 | <if variable="issued submitted"> |
| 3112 | <text term="and"/> |
| 3113 | </if> |
| 3114 | </choose> |
| 3115 | <text value="issued"/> |
| 3116 | <!-- Always give full issue date, even in author-date (CMOS18 14.158) --> |
| 3117 | <text macro="date-issued-full"/> |
| 3118 | </group> |
| 3119 | </group> |
| 3120 | </macro> |
| 3121 | <macro name="identifier-report-bib"> |
| 3122 | <group delimiter=". "> |
| 3123 | <choose> |
| 3124 | <if variable="container-title"> |
| 3125 | <!-- If the report is a chapter in a larger report, then most identifying information is printed in the source. --> |
| 3126 | <text macro="identifier-contributors-bib"/> |
| 3127 | </if> |
| 3128 | <else-if variable="title"> |
| 3129 | <text macro="identifier-number-bib"/> |
| 3130 | <text macro="label-version-capitalized"/> |
| 3131 | <text macro="identifier-edition-bib"/> |
| 3132 | <text macro="identifier-contributors-and-volume-bib"/> |
| 3133 | </else-if> |
| 3134 | <else> |
| 3135 | <!-- If there is no `title`, then `genre` and `number` are already printed as the title. --> |
| 3136 | <text macro="label-version-capitalized"/> |
| 3137 | <text macro="identifier-edition-bib"/> |
| 3138 | <text macro="identifier-contributors-and-volume-bib"/> |
| 3139 | </else> |
| 3140 | </choose> |
| 3141 | </group> |
| 3142 | </macro> |
| 3143 | <macro name="identifier-report-note"> |
| 3144 | <group delimiter=", "> |
| 3145 | <choose> |
| 3146 | <if variable="container-title"> |
| 3147 | <!-- If the report is a chapter in a larger report, then most identifying information is printed in the source. --> |
| 3148 | <text macro="identifier-contributors-note"/> |
| 3149 | </if> |
| 3150 | <else-if variable="title"> |
| 3151 | <text macro="identifier-number-note"/> |
| 3152 | <text macro="label-version"/> |
| 3153 | <text macro="identifier-edition-note"/> |
| 3154 | <text macro="identifier-contributors-and-volume-note"/> |
| 3155 | </else-if> |
| 3156 | <else> |
| 3157 | <!-- If there is no `title`, then `genre` and `number` are already printed as the title. --> |
| 3158 | <text macro="label-version"/> |
| 3159 | <text macro="identifier-edition-note"/> |
| 3160 | <text macro="identifier-contributors-and-volume-note"/> |
| 3161 | </else> |
| 3162 | </choose> |
| 3163 | </group> |
| 3164 | </macro> |
| 3165 | <macro name="identifier-volume-bib"> |
| 3166 | <!-- 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) --> |
| 3167 | <group delimiter=", "> |
| 3168 | <choose> |
| 3169 | <if match="any" variable="volume volume-title"> |
| 3170 | <!-- if there is a volume or volume title, the part number is not capitalized --> |
| 3171 | <text macro="label-volume-capitalized"/> |
| 3172 | <text macro="title-volume"/> |
| 3173 | <text macro="label-part-number"/> |
| 3174 | <text macro="title-part"/> |
| 3175 | </if> |
| 3176 | <else-if match="any" variable="part-number part-title"> |
| 3177 | <text macro="label-part-number-capitalized"/> |
| 3178 | <text macro="title-part"/> |
| 3179 | </else-if> |
| 3180 | </choose> |
| 3181 | </group> |
| 3182 | </macro> |
| 3183 | <macro name="identifier-volume-note"> |
| 3184 | <!-- List the general title first in the notes (CMOS18 14.20) --> |
| 3185 | <group delimiter=", "> |
| 3186 | <choose> |
| 3187 | <if match="any" variable="part-number part-title volume-title"> |
| 3188 | <text macro="label-volume"/> |
| 3189 | <text macro="title-volume"/> |
| 3190 | <text macro="label-part-number"/> |
| 3191 | <text macro="title-part"/> |
| 3192 | </if> |
| 3193 | <else-if is-numeric="volume" locator="page"> |
| 3194 | <!-- provide lone `volume` only if it does not appear in `source-monographic-locator-note` (CMOS18 14.20) --> |
| 3195 | <choose> |
| 3196 | <!-- check for variables that might come between the volume and page number --> |
| 3197 | <if match="any" variable="part-number part-title volume-title"> |
| 3198 | <text macro="label-volume"/> |
| 3199 | </if> |
| 3200 | <else-if match="any" variable="container-author editor editor-translator translator"> |
| 3201 | <text macro="label-volume"/> |
| 3202 | </else-if> |
| 3203 | </choose> |
| 3204 | </else-if> |
| 3205 | <else-if is-numeric="volume" variable="page"> |
| 3206 | <choose> |
| 3207 | <if match="any" variable="part-number part-title volume-title"> |
| 3208 | <text macro="label-volume"/> |
| 3209 | </if> |
| 3210 | <else-if match="any" variable="container-author editor editor-translator translator"> |
| 3211 | <text macro="label-volume"/> |
| 3212 | </else-if> |
| 3213 | </choose> |
| 3214 | </else-if> |
| 3215 | <else-if variable="volume"> |
| 3216 | <text macro="label-volume"/> |
| 3217 | </else-if> |
| 3218 | </choose> |
| 3219 | </group> |
| 3220 | </macro> |
| 3221 | <!-- 4. Source --> |
| 3222 | <macro name="source-bib"> |
| 3223 | <choose> |
| 3224 | <if match="any" type="patent post webpage"/> |
| 3225 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 3226 | <text macro="source-serial-bib"/> |
| 3227 | </else-if> |
| 3228 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 3229 | <text macro="source-monographic-bib"/> |
| 3230 | </else-if> |
| 3231 | <else-if match="any" type="interview paper-conference"> |
| 3232 | <text macro="source-serial-bib"/> |
| 3233 | </else-if> |
| 3234 | <else> |
| 3235 | <text macro="source-monographic-bib"/> |
| 3236 | </else> |
| 3237 | </choose> |
| 3238 | </macro> |
| 3239 | <macro name="source-note"> |
| 3240 | <choose> |
| 3241 | <if match="any" type="patent post webpage"/> |
| 3242 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 3243 | <text macro="source-serial-note"/> |
| 3244 | </else-if> |
| 3245 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 3246 | <text macro="source-monographic-note"/> |
| 3247 | </else-if> |
| 3248 | <else-if match="any" type="interview paper-conference"> |
| 3249 | <text macro="source-serial-note"/> |
| 3250 | </else-if> |
| 3251 | <else> |
| 3252 | <text macro="source-monographic-note"/> |
| 3253 | </else> |
| 3254 | </choose> |
| 3255 | </macro> |
| 3256 | <!-- 4.1. Serial sources --> |
| 3257 | <macro name="source-serial-bib"> |
| 3258 | <group delimiter=". "> |
| 3259 | <text macro="source-serial-title-volume-bib"/> |
| 3260 | <choose> |
| 3261 | <if match="any" type="article-magazine article-newspaper"> |
| 3262 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 3263 | <group delimiter=", "> |
| 3264 | <text macro="source-serial-title-bib"/> |
| 3265 | <text macro="source-serial-identifier-bib"/> |
| 3266 | </group> |
| 3267 | </if> |
| 3268 | <else-if variable="collection-title volume"> |
| 3269 | <group delimiter=", "> |
| 3270 | <text macro="source-serial-title-bib"/> |
| 3271 | <text macro="source-serial-identifier-bib"/> |
| 3272 | </group> |
| 3273 | </else-if> |
| 3274 | <else-if variable="volume"> |
| 3275 | <group delimiter=" "> |
| 3276 | <text macro="source-serial-title-bib"/> |
| 3277 | <text macro="source-serial-identifier-bib"/> |
| 3278 | </group> |
| 3279 | </else-if> |
| 3280 | <else> |
| 3281 | <group delimiter=", "> |
| 3282 | <text macro="source-serial-title-bib"/> |
| 3283 | <text macro="source-serial-identifier-bib"/> |
| 3284 | </group> |
| 3285 | </else> |
| 3286 | </choose> |
| 3287 | </group> |
| 3288 | </macro> |
| 3289 | <macro name="source-serial-note"> |
| 3290 | <group delimiter=", "> |
| 3291 | <text macro="source-serial-title-volume-note"/> |
| 3292 | <choose> |
| 3293 | <if match="any" type="article-magazine article-newspaper"> |
| 3294 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 3295 | <group delimiter=", "> |
| 3296 | <text macro="source-serial-title-note"/> |
| 3297 | <text macro="source-serial-identifier-note"/> |
| 3298 | </group> |
| 3299 | </if> |
| 3300 | <else-if variable="collection-title volume"> |
| 3301 | <group delimiter=", "> |
| 3302 | <text macro="source-serial-title-note"/> |
| 3303 | <text macro="source-serial-identifier-note"/> |
| 3304 | </group> |
| 3305 | </else-if> |
| 3306 | <else-if variable="volume"> |
| 3307 | <group delimiter=" "> |
| 3308 | <text macro="source-serial-title-note"/> |
| 3309 | <text macro="source-serial-identifier-note"/> |
| 3310 | </group> |
| 3311 | </else-if> |
| 3312 | <else> |
| 3313 | <group delimiter=", "> |
| 3314 | <text macro="source-serial-title-note"/> |
| 3315 | <text macro="source-serial-identifier-note"/> |
| 3316 | </group> |
| 3317 | </else> |
| 3318 | </choose> |
| 3319 | </group> |
| 3320 | </macro> |
| 3321 | <!-- Serial source title --> |
| 3322 | <macro name="source-serial-name"> |
| 3323 | <group delimiter=" "> |
| 3324 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 3325 | <choose> |
| 3326 | <!-- TODO: remove conditional when Zotero stops double-mapping `event-place` and `publisher-place` --> |
| 3327 | <if match="none" variable="event-date event-title"> |
| 3328 | <text prefix="(" suffix=")" variable="publisher-place"/> |
| 3329 | </if> |
| 3330 | </choose> |
| 3331 | </group> |
| 3332 | </macro> |
| 3333 | <macro name="source-serial-title-bib"> |
| 3334 | <group delimiter=", "> |
| 3335 | <choose> |
| 3336 | <!-- Journal special issues (CMOS18 14.77) and supplements (CMOS18 14.78) --> |
| 3337 | <if match="none" variable="container-title"/> |
| 3338 | <else-if match="none" type="periodical" variable="supplement-number volume-title"/> |
| 3339 | <!-- TODO: use `container-genre` here once available to allow a custom description of the journal volume --> |
| 3340 | <else-if variable="supplement-number volume-title"> |
| 3341 | <text term="supplement" text-case="capitalize-first"/> |
| 3342 | </else-if> |
| 3343 | <else-if type="periodical" variable="supplement-number title"> |
| 3344 | <text term="supplement" text-case="capitalize-first"/> |
| 3345 | </else-if> |
| 3346 | <else-if variable="volume-title"> |
| 3347 | <text term="special-issue" text-case="capitalize-first"/> |
| 3348 | </else-if> |
| 3349 | <else-if type="periodical" variable="title"> |
| 3350 | <text term="special-issue" text-case="capitalize-first"/> |
| 3351 | </else-if> |
| 3352 | </choose> |
| 3353 | <text macro="source-serial-name"/> |
| 3354 | <choose> |
| 3355 | <!-- 'ahead of print' is placed akin to a series (CMOS18 14.75) --> |
| 3356 | <if match="any" variable="collection-title issue number page supplement-number volume volume-title"/> |
| 3357 | <else-if match="any" variable="available-date status"/> |
| 3358 | <else-if type="article-journal" variable="DOI issued"> |
| 3359 | <text term="advance-online-publication"/> |
| 3360 | </else-if> |
| 3361 | </choose> |
| 3362 | </group> |
| 3363 | </macro> |
| 3364 | <macro name="source-serial-title-note"> |
| 3365 | <group delimiter=", "> |
| 3366 | <choose> |
| 3367 | <!-- Journal special issues (CMOS18 14.77) and supplements (CMOS18 14.78) --> |
| 3368 | <if match="none" variable="container-title"/> |
| 3369 | <else-if match="none" type="periodical" variable="supplement-number volume-title"/> |
| 3370 | <!-- TODO: use `container-genre` here once available to allow a custom description of the journal volume --> |
| 3371 | <else-if variable="supplement-number volume-title"> |
| 3372 | <text term="supplement"/> |
| 3373 | </else-if> |
| 3374 | <else-if type="periodical" variable="supplement-number title"> |
| 3375 | <text term="supplement"/> |
| 3376 | </else-if> |
| 3377 | <else-if variable="volume-title"> |
| 3378 | <text term="special-issue"/> |
| 3379 | </else-if> |
| 3380 | <else-if type="periodical" variable="title"> |
| 3381 | <text term="special-issue"/> |
| 3382 | </else-if> |
| 3383 | </choose> |
| 3384 | <text macro="source-serial-name"/> |
| 3385 | <choose> |
| 3386 | <!-- 'ahead of print' is placed akin to a series (CMOS18 14.75) --> |
| 3387 | <if match="any" variable="collection-title issue number page supplement-number volume volume-title"/> |
| 3388 | <else-if match="any" variable="available-date status"/> |
| 3389 | <else-if type="article-journal" variable="DOI issued"> |
| 3390 | <text term="advance-online-publication"/> |
| 3391 | </else-if> |
| 3392 | </choose> |
| 3393 | </group> |
| 3394 | </macro> |
| 3395 | <macro name="source-serial-title-volume-bib"> |
| 3396 | <choose> |
| 3397 | <if variable="volume-title"> |
| 3398 | <!-- Journal special issues (CMOS18 14.77) and supplements (CMOS18 14.78) --> |
| 3399 | <group delimiter=", "> |
| 3400 | <group delimiter=" "> |
| 3401 | <text macro="source-monographic-preposition-bib"/> |
| 3402 | <text macro="title-volume"/> |
| 3403 | </group> |
| 3404 | <text macro="source-monographic-identifier-contributors-bib"/> |
| 3405 | </group> |
| 3406 | </if> |
| 3407 | </choose> |
| 3408 | </macro> |
| 3409 | <macro name="source-serial-title-volume-note"> |
| 3410 | <choose> |
| 3411 | <if variable="volume-title"> |
| 3412 | <!-- Journal special issues (CMOS18 14.77) and supplements (CMOS18 14.78) --> |
| 3413 | <group delimiter=", "> |
| 3414 | <group delimiter=" "> |
| 3415 | <text macro="source-monographic-preposition-note"/> |
| 3416 | <text macro="title-volume"/> |
| 3417 | </group> |
| 3418 | <text macro="source-monographic-identifier-contributors-note"/> |
| 3419 | </group> |
| 3420 | </if> |
| 3421 | </choose> |
| 3422 | </macro> |
| 3423 | <!-- Serial source identifier --> |
| 3424 | <macro name="source-serial-identifier-bib"> |
| 3425 | <group delimiter=", "> |
| 3426 | <choose> |
| 3427 | <if match="any" type="article-magazine article-newspaper"> |
| 3428 | <group delimiter=". "> |
| 3429 | <text macro="source-serial-identifier-volume-bib"/> |
| 3430 | <!-- for author-date: --> |
| 3431 | <!-- <text macro="source-serial-identifier-volume-author-date"/> --> |
| 3432 | <!-- newspaper edition always capitalized (CMOS18 14.89) --> |
| 3433 | <text macro="label-edition-capitalized"/> |
| 3434 | </group> |
| 3435 | <text macro="source-serial-locator"/> |
| 3436 | </if> |
| 3437 | <else-if match="any" variable="issue supplement-number volume"> |
| 3438 | <group delimiter=": "> |
| 3439 | <text macro="source-serial-identifier-volume-bib"/> |
| 3440 | <!-- for author-date: --> |
| 3441 | <!-- <text macro="source-serial-identifier-volume-author-date"/> --> |
| 3442 | <text macro="source-serial-locator"/> |
| 3443 | </group> |
| 3444 | </else-if> |
| 3445 | <else> |
| 3446 | <text macro="source-serial-identifier-volume-bib"/> |
| 3447 | <!-- for author-date: --> |
| 3448 | <!-- <text macro="source-serial-identifier-volume-author-date"/> --> |
| 3449 | <text macro="source-serial-locator"/> |
| 3450 | </else> |
| 3451 | <!-- 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 --> |
| 3452 | </choose> |
| 3453 | </group> |
| 3454 | </macro> |
| 3455 | <macro name="source-serial-identifier-note"> |
| 3456 | <group delimiter=", "> |
| 3457 | <choose> |
| 3458 | <if match="any" type="article-magazine article-newspaper"> |
| 3459 | <group delimiter=", "> |
| 3460 | <text macro="source-serial-identifier-volume-note"/> |
| 3461 | <!-- newspaper edition always capitalized (CMOS18 14.89) --> |
| 3462 | <text macro="label-edition-capitalized"/> |
| 3463 | </group> |
| 3464 | <text macro="source-serial-locator"/> |
| 3465 | </if> |
| 3466 | <else-if match="any" variable="issue supplement-number volume"> |
| 3467 | <group delimiter=": "> |
| 3468 | <text macro="source-serial-identifier-volume-note"/> |
| 3469 | <text macro="source-serial-locator"/> |
| 3470 | </group> |
| 3471 | </else-if> |
| 3472 | <else> |
| 3473 | <text macro="source-serial-identifier-volume-note"/> |
| 3474 | <text macro="source-serial-locator"/> |
| 3475 | </else> |
| 3476 | </choose> |
| 3477 | </group> |
| 3478 | </macro> |
| 3479 | <macro name="source-serial-identifier-volume-bib"> |
| 3480 | <group delimiter=", "> |
| 3481 | <choose> |
| 3482 | <if match="any" type="article-magazine article-newspaper"> |
| 3483 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 3484 | <text variable="collection-title"/> |
| 3485 | <text macro="source-serial-volume-status-bib"/> |
| 3486 | </if> |
| 3487 | <else-if match="any" variable="issue supplement-number volume"> |
| 3488 | <choose> |
| 3489 | <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"/> |
| 3490 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 3491 | <!-- date appears first if the review `container-title` has been substituted for a missing author (CMOS18 14.87, 14.102) --> |
| 3492 | <text macro="source-date-issued-or-status"/> |
| 3493 | </else-if> |
| 3494 | </choose> |
| 3495 | <!-- `collection-title` is for any serial with multiple series (e.g. 'second series') --> |
| 3496 | <text variable="collection-title"/> |
| 3497 | <group delimiter=" "> |
| 3498 | <group delimiter=", "> |
| 3499 | <choose> |
| 3500 | <if variable="collection-title volume"> |
| 3501 | <text macro="label-volume"/> |
| 3502 | </if> |
| 3503 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 3504 | <!-- date appears first if a review `container-title` has been substituted for a missing author (CMOS18 14.87, 14.102) --> |
| 3505 | <choose> |
| 3506 | <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"> |
| 3507 | <text variable="volume"/> |
| 3508 | </if> |
| 3509 | <else> |
| 3510 | <text macro="label-volume"/> |
| 3511 | </else> |
| 3512 | </choose> |
| 3513 | </else-if> |
| 3514 | <else> |
| 3515 | <text variable="volume"/> |
| 3516 | </else> |
| 3517 | </choose> |
| 3518 | <text macro="label-issue"/> |
| 3519 | <text macro="label-supplement-number"/> |
| 3520 | </group> |
| 3521 | <choose> |
| 3522 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 3523 | <!-- date for unsigned reviews only appears here if it did not earlier (CMOS18 14.102) --> |
| 3524 | <choose> |
| 3525 | <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"> |
| 3526 | <text macro="source-date-issued-or-status" prefix="(" suffix=")"/> |
| 3527 | </if> |
| 3528 | </choose> |
| 3529 | </if> |
| 3530 | <else> |
| 3531 | <text macro="source-date-issued-or-status" prefix="(" suffix=")"/> |
| 3532 | </else> |
| 3533 | </choose> |
| 3534 | </group> |
| 3535 | </else-if> |
| 3536 | <else> |
| 3537 | <text variable="collection-title"/> |
| 3538 | <choose> |
| 3539 | <if match="any" type="interview post-weblog"> |
| 3540 | <!-- publisher possible with broadcast `interview` (CMOS18 14.110) or `post-weblog` (CMOS18 14.105) --> |
| 3541 | <text variable="publisher"/> |
| 3542 | </if> |
| 3543 | </choose> |
| 3544 | <text macro="source-serial-volume-status-bib"/> |
| 3545 | </else> |
| 3546 | </choose> |
| 3547 | </group> |
| 3548 | </macro> |
| 3549 | <macro name="source-serial-identifier-volume-note"> |
| 3550 | <group delimiter=", "> |
| 3551 | <choose> |
| 3552 | <if match="any" type="article-magazine article-newspaper"> |
| 3553 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 3554 | <text variable="collection-title"/> |
| 3555 | <text macro="source-serial-volume-status-note"/> |
| 3556 | </if> |
| 3557 | <else-if match="any" variable="issue supplement-number volume"> |
| 3558 | <choose> |
| 3559 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 3560 | <choose> |
| 3561 | <!-- date appears first if a review `container-title` has been substituted for a missing author (CMOS18 14.89) --> |
| 3562 | <!-- the conditions below mirror substitution in `author-note` --> |
| 3563 | <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"/> |
| 3564 | <else-if match="any" variable="reviewed-genre reviewed-title title"/> |
| 3565 | <else-if match="any" variable="genre section"> |
| 3566 | <text macro="source-date-issued-or-status"/> |
| 3567 | </else-if> |
| 3568 | </choose> |
| 3569 | </if> |
| 3570 | </choose> |
| 3571 | <!-- `collection-title` is for any serial with multiple series (e.g. 'second series') --> |
| 3572 | <text variable="collection-title"/> |
| 3573 | <group delimiter=" "> |
| 3574 | <group delimiter=", "> |
| 3575 | <choose> |
| 3576 | <if variable="collection-title volume"> |
| 3577 | <text macro="label-volume"/> |
| 3578 | </if> |
| 3579 | <else-if variable="volume"> |
| 3580 | <choose> |
| 3581 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 3582 | <!-- date appears first if a review `container-title` has been substituted for a missing author (CMOS18 14.89) --> |
| 3583 | <choose> |
| 3584 | <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"> |
| 3585 | <text variable="volume"/> |
| 3586 | </if> |
| 3587 | <else-if match="any" variable="reviewed-genre reviewed-title title"> |
| 3588 | <text variable="volume"/> |
| 3589 | </else-if> |
| 3590 | <else-if match="any" variable="genre section"> |
| 3591 | <text macro="label-volume"/> |
| 3592 | </else-if> |
| 3593 | <else> |
| 3594 | <text variable="volume"/> |
| 3595 | </else> |
| 3596 | </choose> |
| 3597 | </if> |
| 3598 | <else> |
| 3599 | <text variable="volume"/> |
| 3600 | </else> |
| 3601 | </choose> |
| 3602 | </else-if> |
| 3603 | </choose> |
| 3604 | <text macro="label-issue"/> |
| 3605 | <text macro="label-supplement-number"/> |
| 3606 | </group> |
| 3607 | <choose> |
| 3608 | <if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"> |
| 3609 | <!-- date appears first if a review `container-title` has been substituted for a missing author (CMOS18 14.89) --> |
| 3610 | <choose> |
| 3611 | <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"> |
| 3612 | <text macro="source-date-issued-or-status" prefix="(" suffix=")"/> |
| 3613 | </if> |
| 3614 | <else-if match="any" variable="reviewed-genre reviewed-title title"> |
| 3615 | <text macro="source-date-issued-or-status" prefix="(" suffix=")"/> |
| 3616 | </else-if> |
| 3617 | <else-if match="any" variable="genre section"/> |
| 3618 | <else> |
| 3619 | <text macro="source-date-issued-or-status" prefix="(" suffix=")"/> |
| 3620 | </else> |
| 3621 | </choose> |
| 3622 | </if> |
| 3623 | <else> |
| 3624 | <text macro="source-date-issued-or-status" prefix="(" suffix=")"/> |
| 3625 | </else> |
| 3626 | </choose> |
| 3627 | </group> |
| 3628 | </else-if> |
| 3629 | <else> |
| 3630 | <text variable="collection-title"/> |
| 3631 | <choose> |
| 3632 | <if match="any" type="interview post-weblog"> |
| 3633 | <!-- publisher possible with broadcast `interview` (CMOS18 14.110) or `post-weblog` (CMOS18 14.105) --> |
| 3634 | <text variable="publisher"/> |
| 3635 | </if> |
| 3636 | </choose> |
| 3637 | <text macro="source-serial-volume-status-note"/> |
| 3638 | </else> |
| 3639 | </choose> |
| 3640 | </group> |
| 3641 | </macro> |
| 3642 | <macro name="source-serial-volume-status-bib"> |
| 3643 | <group delimiter=", "> |
| 3644 | <choose> |
| 3645 | <if match="any" variable="collection-title issue number page supplement-number volume volume-title"/> |
| 3646 | <else-if variable="issued"/> |
| 3647 | <else-if variable="available-date"> |
| 3648 | <group delimiter=" "> |
| 3649 | <!-- article accepted for publication and available on publisher website (CMOS18 14.75) --> |
| 3650 | <!-- TODO: use CSL term for `available-date` when available --> |
| 3651 | <text value="accepted"/> |
| 3652 | <date form="text" variable="available-date"/> |
| 3653 | </group> |
| 3654 | </else-if> |
| 3655 | </choose> |
| 3656 | <group delimiter=" "> |
| 3657 | <text macro="source-date-status-bib"/> |
| 3658 | <text macro="source-date-issued-or-status"/> |
| 3659 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 3660 | <!-- <text macro="source-date-specific-title-first"/> --> |
| 3661 | </group> |
| 3662 | </group> |
| 3663 | </macro> |
| 3664 | <macro name="source-serial-volume-status-note"> |
| 3665 | <group delimiter=", "> |
| 3666 | <choose> |
| 3667 | <if match="any" variable="collection-title issue number page supplement-number volume volume-title"/> |
| 3668 | <else-if variable="issued"/> |
| 3669 | <else-if variable="available-date"> |
| 3670 | <group delimiter=" "> |
| 3671 | <!-- article accepted for publication and available on publisher website (CMOS18 14.75) --> |
| 3672 | <!-- TODO: use CSL term for `available-date` when available --> |
| 3673 | <text value="accepted"/> |
| 3674 | <date form="text" variable="available-date"/> |
| 3675 | </group> |
| 3676 | </else-if> |
| 3677 | </choose> |
| 3678 | <group delimiter=" "> |
| 3679 | <text macro="source-date-status-note"/> |
| 3680 | <text macro="source-date-issued-or-status"/> |
| 3681 | </group> |
| 3682 | </group> |
| 3683 | </macro> |
| 3684 | <!-- Serial source locator --> |
| 3685 | <macro name="source-serial-locator"> |
| 3686 | <choose> |
| 3687 | <if match="any" variable="locator number"> |
| 3688 | <group delimiter=", "> |
| 3689 | <text macro="label-locator"/> |
| 3690 | <!-- an article ID appears alongside locators in notes (CMOS18 14.71) --> |
| 3691 | <choose> |
| 3692 | <!-- if there is an `archive` with no other reference, `number` appears in `source-archive-database-number` --> |
| 3693 | <if match="any" variable="archive_collection archive_location archive-place"> |
| 3694 | <text variable="number"/> |
| 3695 | </if> |
| 3696 | <else-if variable="archive"/> |
| 3697 | <else> |
| 3698 | <text variable="number"/> |
| 3699 | </else> |
| 3700 | </choose> |
| 3701 | </group> |
| 3702 | </if> |
| 3703 | <!-- do not give pages for magazines or newspapers (CMOS18 14.87, 14.89) --> |
| 3704 | <else-if match="any" type="article-magazine article-newspaper"/> |
| 3705 | <else> |
| 3706 | <text variable="page"/> |
| 3707 | </else> |
| 3708 | </choose> |
| 3709 | </macro> |
| 3710 | <!-- 4.2. Monographic sources --> |
| 3711 | <macro name="source-monographic-bib"> |
| 3712 | <group delimiter=". "> |
| 3713 | <!-- Monographic sources repeat main reference elements --> |
| 3714 | <choose> |
| 3715 | <if variable="container-title"> |
| 3716 | <group delimiter=", "> |
| 3717 | <group delimiter=" "> |
| 3718 | <text macro="source-monographic-preposition-bib"/> |
| 3719 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 3720 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 3721 | <!-- <text macro="source-monographic-title-specific-title-first"/> --> |
| 3722 | </group> |
| 3723 | <text macro="source-monographic-description"/> |
| 3724 | <text macro="source-monographic-identifier-bib"/> |
| 3725 | <text macro="source-monographic-locator"/> |
| 3726 | </group> |
| 3727 | </if> |
| 3728 | </choose> |
| 3729 | <text macro="source-monographic-identifier-contributors-bib-container-author"/> |
| 3730 | <text macro="source-series-bib"/> |
| 3731 | <choose> |
| 3732 | <!-- show event information here only if not collapsed with `issued` (CMOS18 14.167) --> |
| 3733 | <if match="any" variable="event-date original-date original-publisher original-publisher-place publisher status"> |
| 3734 | <text macro="source-event-bib"/> |
| 3735 | </if> |
| 3736 | </choose> |
| 3737 | </group> |
| 3738 | </macro> |
| 3739 | <macro name="source-monographic-note"> |
| 3740 | <group delimiter=", "> |
| 3741 | <!-- Monographic sources repeat main reference elements --> |
| 3742 | <choose> |
| 3743 | <if variable="container-title"> |
| 3744 | <group delimiter=", "> |
| 3745 | <group delimiter=" "> |
| 3746 | <text macro="source-monographic-preposition-note"/> |
| 3747 | <text font-style="italic" text-case="title" variable="container-title"/> |
| 3748 | </group> |
| 3749 | <text macro="source-monographic-description"/> |
| 3750 | <text macro="source-monographic-identifier-note"/> |
| 3751 | <!-- no `source-monographic-locator` in note --> |
| 3752 | </group> |
| 3753 | </if> |
| 3754 | </choose> |
| 3755 | <text macro="source-series-note"/> |
| 3756 | <text macro="source-event-note"/> |
| 3757 | </group> |
| 3758 | </macro> |
| 3759 | <!-- Monographic source title --> |
| 3760 | <macro name="source-monographic-preposition-bib"> |
| 3761 | <choose> |
| 3762 | <if match="any" type="broadcast motion_picture"/> |
| 3763 | <else-if type="chapter" variable="container-title genre"> |
| 3764 | <text value="to"/> |
| 3765 | </else-if> |
| 3766 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 3767 | <text value="to"/> |
| 3768 | </else-if> |
| 3769 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 3770 | <choose> |
| 3771 | <if match="any" variable="author composer"> |
| 3772 | <!-- Give preposition only for signed entries; otherwise, title is substituted --> |
| 3773 | <text term="in" text-case="capitalize-first"/> |
| 3774 | </if> |
| 3775 | </choose> |
| 3776 | </else-if> |
| 3777 | <else-if variable="chapter-number page title"> |
| 3778 | <text term="in" text-case="capitalize-first"/> |
| 3779 | </else-if> |
| 3780 | <else-if variable="chapter-number"> |
| 3781 | <group delimiter=" "> |
| 3782 | <text macro="label-chapter-number-capitalized"/> |
| 3783 | <choose> |
| 3784 | <if type="song"> |
| 3785 | <text term="on"/> |
| 3786 | </if> |
| 3787 | <else> |
| 3788 | <text term="in"/> |
| 3789 | </else> |
| 3790 | </choose> |
| 3791 | </group> |
| 3792 | </else-if> |
| 3793 | <else> |
| 3794 | <text term="in" text-case="capitalize-first"/> |
| 3795 | </else> |
| 3796 | </choose> |
| 3797 | </macro> |
| 3798 | <macro name="source-monographic-preposition-note"> |
| 3799 | <choose> |
| 3800 | <if match="any" type="broadcast motion_picture"/> |
| 3801 | <else-if type="chapter" variable="container-title genre"> |
| 3802 | <text value="to"/> |
| 3803 | </else-if> |
| 3804 | <else-if type="article-journal" variable="container-title genre volume-title"> |
| 3805 | <text value="to"/> |
| 3806 | </else-if> |
| 3807 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 3808 | <choose> |
| 3809 | <if match="any" variable="author composer"> |
| 3810 | <!-- Give preposition only for signed entries; otherwise, title is substituted --> |
| 3811 | <text term="in"/> |
| 3812 | </if> |
| 3813 | </choose> |
| 3814 | </else-if> |
| 3815 | <else-if variable="chapter-number page title"> |
| 3816 | <text term="in"/> |
| 3817 | </else-if> |
| 3818 | <else-if variable="chapter-number"> |
| 3819 | <group delimiter=" "> |
| 3820 | <text macro="label-chapter-number"/> |
| 3821 | <choose> |
| 3822 | <if type="song"> |
| 3823 | <text term="on"/> |
| 3824 | </if> |
| 3825 | <else> |
| 3826 | <text term="in"/> |
| 3827 | </else> |
| 3828 | </choose> |
| 3829 | </group> |
| 3830 | </else-if> |
| 3831 | <else> |
| 3832 | <text term="in"/> |
| 3833 | </else> |
| 3834 | </choose> |
| 3835 | </macro> |
| 3836 | <!-- Monographic source description --> |
| 3837 | <macro name="source-monographic-description"> |
| 3838 | <choose> |
| 3839 | <if match="any" type="document report software standard"> |
| 3840 | <!-- place description after `container-title` --> |
| 3841 | <text macro="description-format-note"/> |
| 3842 | </if> |
| 3843 | <else-if match="any" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"/> |
| 3844 | <else-if match="any" type="event paper-conference performance speech"> |
| 3845 | <!-- unpublished conference presentations should describe the session --> |
| 3846 | <text macro="description-format-note"/> |
| 3847 | </else-if> |
| 3848 | </choose> |
| 3849 | </macro> |
| 3850 | <!-- Monographic source identifier --> |
| 3851 | <macro name="source-monographic-identifier-bib"> |
| 3852 | <!-- Based on `identifier-bib` --> |
| 3853 | <choose> |
| 3854 | <if variable="container-title"> |
| 3855 | <group delimiter=", "> |
| 3856 | <choose> |
| 3857 | <if match="none" type="broadcast graphic map motion_picture song"> |
| 3858 | <!-- For audiovisual media, number information comes after `title`, not `container-title`; `song` places album catalogue `number` with `publisher` (CMOS18 14.163-164) --> |
| 3859 | <text macro="identifier-number-bib"/> |
| 3860 | </if> |
| 3861 | </choose> |
| 3862 | <text macro="label-version"/> |
| 3863 | <!-- use note form as `edition` is not capitalized here --> |
| 3864 | <text macro="identifier-edition-note"/> |
| 3865 | <text macro="source-monographic-identifier-contributors-and-volume-bib"/> |
| 3866 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 3867 | <!-- <text macro="source-monographic-identifier-contributors-and-volume-bib-specific-title-first"/> --> |
| 3868 | </group> |
| 3869 | </if> |
| 3870 | </choose> |
| 3871 | </macro> |
| 3872 | <macro name="source-monographic-identifier-note"> |
| 3873 | <!-- Based on `identifier-note` --> |
| 3874 | <choose> |
| 3875 | <if variable="container-title"> |
| 3876 | <group delimiter=", "> |
| 3877 | <choose> |
| 3878 | <if match="none" type="broadcast graphic map motion_picture song"> |
| 3879 | <!-- For audiovisual media, number information comes after `title`, not `container-title`; `song` places album catalogue `number` with `publisher` (CMOS18 14.163-164) --> |
| 3880 | <text macro="identifier-number-note"/> |
| 3881 | </if> |
| 3882 | </choose> |
| 3883 | <text macro="label-version"/> |
| 3884 | <text macro="identifier-edition-note"/> |
| 3885 | <text macro="source-monographic-identifier-contributors-and-volume-note"/> |
| 3886 | </group> |
| 3887 | </if> |
| 3888 | </choose> |
| 3889 | </macro> |
| 3890 | <macro name="source-monographic-identifier-contributors-bib"> |
| 3891 | <choose> |
| 3892 | <if variable="container-author container-title"> |
| 3893 | <!-- set off `container-author` from other contributors in the bibliography (CMOS18 14.12; for page location, CMOS17 14.110) --> |
| 3894 | <names variable="container-author"> |
| 3895 | <label form="verb" suffix=" "/> |
| 3896 | <name and="text" initialize="false"/> |
| 3897 | </names> |
| 3898 | <!-- other contributors shift to `source-monographic-identifier-contributors-bib-container-author` --> |
| 3899 | </if> |
| 3900 | <else> |
| 3901 | <group delimiter=", "> |
| 3902 | <names variable="editor-translator"> |
| 3903 | <label form="verb" suffix=" "/> |
| 3904 | <name and="text" initialize="false"/> |
| 3905 | </names> |
| 3906 | <names delimiter=", " variable="editor translator"> |
| 3907 | <label form="verb" suffix=" "/> |
| 3908 | <name and="text" initialize="false"/> |
| 3909 | </names> |
| 3910 | <names variable="guest"> |
| 3911 | <label form="verb" suffix=" "/> |
| 3912 | <name and="text" initialize="false"/> |
| 3913 | </names> |
| 3914 | <names variable="host"> |
| 3915 | <label form="verb" suffix=" "/> |
| 3916 | <name and="text" initialize="false"/> |
| 3917 | </names> |
| 3918 | <names delimiter=", " variable="chair organizer"> |
| 3919 | <label form="verb" suffix=" "/> |
| 3920 | <name and="text" initialize="false"/> |
| 3921 | </names> |
| 3922 | <names delimiter=", " variable="illustrator narrator compiler curator"> |
| 3923 | <label form="verb" suffix=" "/> |
| 3924 | <name and="text" initialize="false"/> |
| 3925 | </names> |
| 3926 | <names delimiter=", " variable="series-creator executive-producer"> |
| 3927 | <label form="verb" suffix=" "/> |
| 3928 | <name and="text" initialize="false"/> |
| 3929 | </names> |
| 3930 | <names variable="producer"> |
| 3931 | <label form="verb" suffix=" "/> |
| 3932 | <name and="text" initialize="false"/> |
| 3933 | </names> |
| 3934 | <names variable="editorial-director"> |
| 3935 | <label form="verb" suffix=" "/> |
| 3936 | <name and="text" initialize="false"/> |
| 3937 | </names> |
| 3938 | <choose> |
| 3939 | <if match="any" type="broadcast performance"> |
| 3940 | <names variable="script-writer"> |
| 3941 | <label form="verb" suffix=" "/> |
| 3942 | <name and="text" initialize="false"/> |
| 3943 | </names> |
| 3944 | </if> |
| 3945 | </choose> |
| 3946 | <names variable="director"> |
| 3947 | <label form="verb" suffix=" "/> |
| 3948 | <name and="text" initialize="false"/> |
| 3949 | </names> |
| 3950 | <names variable="performer"> |
| 3951 | <label form="verb" suffix=" "/> |
| 3952 | <name and="text" initialize="false"/> |
| 3953 | </names> |
| 3954 | <choose> |
| 3955 | <if match="none" type="song thesis"> |
| 3956 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 3957 | <names variable="contributor"> |
| 3958 | <label form="verb" suffix=" "/> |
| 3959 | <name and="text" initialize="false"/> |
| 3960 | </names> |
| 3961 | </if> |
| 3962 | </choose> |
| 3963 | </group> |
| 3964 | </else> |
| 3965 | </choose> |
| 3966 | </macro> |
| 3967 | <macro name="source-monographic-identifier-contributors-bib-container-author"> |
| 3968 | <!-- set off `container-author` from other contributors in the bibliography (CMOS18 14.12; for page location, CMOS17 14.110) --> |
| 3969 | <choose> |
| 3970 | <if variable="container-author container-title"> |
| 3971 | <group delimiter=". "> |
| 3972 | <names variable="editor-translator"> |
| 3973 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 3974 | <name and="text" initialize="false"/> |
| 3975 | </names> |
| 3976 | <names delimiter=". " variable="editor translator"> |
| 3977 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 3978 | <name and="text" initialize="false"/> |
| 3979 | </names> |
| 3980 | <names variable="guest"> |
| 3981 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 3982 | <name and="text" initialize="false"/> |
| 3983 | </names> |
| 3984 | <names variable="host"> |
| 3985 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 3986 | <name and="text" initialize="false"/> |
| 3987 | </names> |
| 3988 | <names delimiter=". " variable="chair organizer"> |
| 3989 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 3990 | <name and="text" initialize="false"/> |
| 3991 | </names> |
| 3992 | <names delimiter=". " variable="illustrator narrator compiler curator"> |
| 3993 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 3994 | <name and="text" initialize="false"/> |
| 3995 | </names> |
| 3996 | <names delimiter=". " variable="series-creator executive-producer"> |
| 3997 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 3998 | <name and="text" initialize="false"/> |
| 3999 | </names> |
| 4000 | <names variable="producer"> |
| 4001 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 4002 | <name and="text" initialize="false"/> |
| 4003 | </names> |
| 4004 | <names variable="editorial-director"> |
| 4005 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 4006 | <name and="text" initialize="false"/> |
| 4007 | </names> |
| 4008 | <choose> |
| 4009 | <if match="any" type="broadcast performance"> |
| 4010 | <names variable="script-writer"> |
| 4011 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 4012 | <name and="text" initialize="false"/> |
| 4013 | </names> |
| 4014 | </if> |
| 4015 | </choose> |
| 4016 | <names variable="director"> |
| 4017 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 4018 | <name and="text" initialize="false"/> |
| 4019 | </names> |
| 4020 | <names variable="performer"> |
| 4021 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 4022 | <name and="text" initialize="false"/> |
| 4023 | </names> |
| 4024 | <choose> |
| 4025 | <if match="none" type="song thesis"> |
| 4026 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 4027 | <names variable="contributor"> |
| 4028 | <label form="verb" suffix=" " text-case="capitalize-first"/> |
| 4029 | <name and="text" initialize="false"/> |
| 4030 | </names> |
| 4031 | </if> |
| 4032 | </choose> |
| 4033 | </group> |
| 4034 | </if> |
| 4035 | </choose> |
| 4036 | </macro> |
| 4037 | <macro name="source-monographic-identifier-contributors-note"> |
| 4038 | <group delimiter=", "> |
| 4039 | <names variable="container-author"> |
| 4040 | <label form="verb" suffix=" "/> |
| 4041 | <name and="text" initialize="false"/> |
| 4042 | </names> |
| 4043 | <names variable="editor-translator"> |
| 4044 | <label form="verb-short" suffix=" "/> |
| 4045 | <name and="text" initialize="false"/> |
| 4046 | </names> |
| 4047 | <names delimiter=", " variable="editor translator"> |
| 4048 | <label form="verb-short" suffix=" "/> |
| 4049 | <name and="text" initialize="false"/> |
| 4050 | </names> |
| 4051 | <names variable="guest"> |
| 4052 | <label form="verb" suffix=" "/> |
| 4053 | <name and="text" initialize="false"/> |
| 4054 | </names> |
| 4055 | <names variable="host"> |
| 4056 | <label form="verb" suffix=" "/> |
| 4057 | <name and="text" initialize="false"/> |
| 4058 | </names> |
| 4059 | <names delimiter=", " variable="chair organizer"> |
| 4060 | <label form="verb" suffix=" "/> |
| 4061 | <name and="text" initialize="false"/> |
| 4062 | </names> |
| 4063 | <names variable="illustrator"> |
| 4064 | <label form="verb-short" suffix=" "/> |
| 4065 | <name and="text" initialize="false"/> |
| 4066 | </names> |
| 4067 | <names variable="narrator"> |
| 4068 | <label form="verb" suffix=" "/> |
| 4069 | <name and="text" initialize="false"/> |
| 4070 | </names> |
| 4071 | <names variable="compiler"> |
| 4072 | <label form="verb-short" suffix=" "/> |
| 4073 | <name and="text" initialize="false"/> |
| 4074 | </names> |
| 4075 | <names variable="curator"> |
| 4076 | <label form="verb" suffix=" "/> |
| 4077 | <name and="text" initialize="false"/> |
| 4078 | </names> |
| 4079 | <names delimiter=", " variable="series-creator executive-producer"> |
| 4080 | <label form="verb" suffix=" "/> |
| 4081 | <name and="text" initialize="false"/> |
| 4082 | </names> |
| 4083 | <names variable="producer"> |
| 4084 | <label form="verb" suffix=" "/> |
| 4085 | <name and="text" initialize="false"/> |
| 4086 | </names> |
| 4087 | <names variable="editorial-director"> |
| 4088 | <label form="verb-short" suffix=" "/> |
| 4089 | <name and="text" initialize="false"/> |
| 4090 | </names> |
| 4091 | <choose> |
| 4092 | <if match="any" type="broadcast performance"> |
| 4093 | <names variable="script-writer"> |
| 4094 | <!-- `script-writer` is not abbreviated (CMOS18 14.165) --> |
| 4095 | <label form="verb" suffix=" "/> |
| 4096 | <name and="text" initialize="false"/> |
| 4097 | </names> |
| 4098 | </if> |
| 4099 | </choose> |
| 4100 | <names variable="director"> |
| 4101 | <!-- `director` is not abbreviated (CMOS18 14.165) --> |
| 4102 | <label form="verb" suffix=" "/> |
| 4103 | <name and="text" initialize="false"/> |
| 4104 | </names> |
| 4105 | <names variable="performer"> |
| 4106 | <label form="verb" suffix=" "/> |
| 4107 | <name and="text" initialize="false"/> |
| 4108 | </names> |
| 4109 | <choose> |
| 4110 | <if match="none" type="song thesis"> |
| 4111 | <!-- Song contributors attached to album (CMOS18 14.163) --> |
| 4112 | <names variable="contributor"> |
| 4113 | <label form="verb" suffix=" "/> |
| 4114 | <name and="text" initialize="false"/> |
| 4115 | </names> |
| 4116 | </if> |
| 4117 | </choose> |
| 4118 | </group> |
| 4119 | </macro> |
| 4120 | <macro name="source-monographic-identifier-contributors-and-volume-bib"> |
| 4121 | <!-- based on `identifier-contributors-and-volume-monographic-bib` --> |
| 4122 | <group delimiter=", "> |
| 4123 | <choose> |
| 4124 | <if match="any" variable="number-of-volumes part-number part-number volume volume-title"> |
| 4125 | <!-- cite multivolume `collection-editor`; otherwise it belongs with `collection-title` --> |
| 4126 | <names variable="collection-editor"> |
| 4127 | <label form="verb" suffix=" "/> |
| 4128 | <name and="text" initialize="false"/> |
| 4129 | </names> |
| 4130 | </if> |
| 4131 | </choose> |
| 4132 | <!-- use the note form for an item with `container-title` --> |
| 4133 | <text macro="identifier-volume-note"/> |
| 4134 | <text macro="source-monographic-identifier-contributors-bib"/> |
| 4135 | <choose> |
| 4136 | <if match="any" variable="part-number part-title volume volume-title"/> |
| 4137 | <else-if variable="page"/> |
| 4138 | <else> |
| 4139 | <text macro="label-number-of-volumes"/> |
| 4140 | </else> |
| 4141 | </choose> |
| 4142 | </group> |
| 4143 | </macro> |
| 4144 | <macro name="source-monographic-identifier-contributors-and-volume-note"> |
| 4145 | <group delimiter=", "> |
| 4146 | <choose> |
| 4147 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 4148 | <!-- cite multivolume `collection-editor`; otherwise it belongs with `collection-title` --> |
| 4149 | <names variable="collection-editor"> |
| 4150 | <label form="verb-short" suffix=" "/> |
| 4151 | <name and="text" initialize="false"/> |
| 4152 | </names> |
| 4153 | </if> |
| 4154 | </choose> |
| 4155 | <text macro="identifier-volume-note"/> |
| 4156 | <text macro="source-monographic-identifier-contributors-note"/> |
| 4157 | <choose> |
| 4158 | <!-- notes only show the number of volumes if there is no physical locator, which should include a volume number, e.g. 4:243 --> |
| 4159 | <if match="any" variable="part-number part-title volume volume-title"/> |
| 4160 | <else-if locator="column"/> |
| 4161 | <else-if locator="folio"/> |
| 4162 | <else-if locator="page"/> |
| 4163 | <else-if variable="page"/> |
| 4164 | <else> |
| 4165 | <text macro="label-number-of-volumes"/> |
| 4166 | </else> |
| 4167 | </choose> |
| 4168 | </group> |
| 4169 | </macro> |
| 4170 | <!-- Monographic source locator --> |
| 4171 | <macro name="source-monographic-locator"> |
| 4172 | <choose> |
| 4173 | <!-- archival locators appear after the shelfmark (CMOS18 14.127) --> |
| 4174 | <if locator="column" variable="archive archive_location"/> |
| 4175 | <else-if locator="folio" variable="archive archive_location"/> |
| 4176 | <else-if locator="page" variable="archive archive_location"/> |
| 4177 | <else-if is-numeric="volume" locator="page"> |
| 4178 | <!-- separate a volume and page number with a colon (CMOS18 14.18) --> |
| 4179 | <group delimiter=":"> |
| 4180 | <choose> |
| 4181 | <if match="any" variable="part-number part-title volume-title"/> |
| 4182 | <else-if match="any" variable="container-author editor editor-translator translator"/> |
| 4183 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21), check for name variables falling after the general title: --> |
| 4184 | <!-- <else-if variable="collection-editor"/> --> |
| 4185 | <else> |
| 4186 | <text variable="volume"/> |
| 4187 | </else> |
| 4188 | </choose> |
| 4189 | <text variable="locator"/> |
| 4190 | </group> |
| 4191 | </else-if> |
| 4192 | <else-if variable="locator"> |
| 4193 | <text macro="label-locator"/> |
| 4194 | </else-if> |
| 4195 | <else-if is-numeric="volume" variable="page"> |
| 4196 | <!-- collapse the volume and page number if adjacent (CMOS18 14.18) --> |
| 4197 | <group delimiter=":"> |
| 4198 | <choose> |
| 4199 | <!-- check for variables that might come between the volume and page number --> |
| 4200 | <if match="any" variable="part-number part-title volume-title"/> |
| 4201 | <else-if match="any" variable="container-author editor editor-translator translator"/> |
| 4202 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21), check for name variables falling after the general title: --> |
| 4203 | <!-- <else-if variable="collection-editor"/> --> |
| 4204 | <else> |
| 4205 | <text variable="volume"/> |
| 4206 | </else> |
| 4207 | </choose> |
| 4208 | <text variable="page"/> |
| 4209 | </group> |
| 4210 | </else-if> |
| 4211 | <!-- archival locators appear after the shelfmark (CMOS18 14.127) --> |
| 4212 | <else-if variable="archive archive_location page"/> |
| 4213 | <else> |
| 4214 | <text variable="page"/> |
| 4215 | </else> |
| 4216 | </choose> |
| 4217 | </macro> |
| 4218 | <!-- 4.3. Series --> |
| 4219 | <macro name="source-series-bib"> |
| 4220 | <group delimiter=", "> |
| 4221 | <choose> |
| 4222 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 4223 | <text macro="source-series-title"/> |
| 4224 | </if> |
| 4225 | <else-if variable="collection-editor collection-title"> |
| 4226 | <!-- `collection-editor` belongs with `collection-title` if the item is not multivolume --> |
| 4227 | <text text-case="title" variable="collection-title"/> |
| 4228 | <names variable="collection-editor"> |
| 4229 | <label form="verb" suffix=" "/> |
| 4230 | <name and="text" initialize="false"/> |
| 4231 | </names> |
| 4232 | <text macro="label-collection-number"/> |
| 4233 | <text macro="label-issue"/> |
| 4234 | </else-if> |
| 4235 | <else> |
| 4236 | <text macro="source-series-title"/> |
| 4237 | </else> |
| 4238 | </choose> |
| 4239 | </group> |
| 4240 | </macro> |
| 4241 | <macro name="source-series-note"> |
| 4242 | <group delimiter=", "> |
| 4243 | <choose> |
| 4244 | <if match="any" variable="number-of-volumes part-number part-title volume volume-title"> |
| 4245 | <text macro="source-series-title"/> |
| 4246 | </if> |
| 4247 | <else-if variable="collection-editor collection-title"> |
| 4248 | <!-- `collection-editor` belongs with `collection-title` if the item is not multivolume --> |
| 4249 | <text text-case="title" variable="collection-title"/> |
| 4250 | <names variable="collection-editor"> |
| 4251 | <label form="verb-short" suffix=" "/> |
| 4252 | <name and="text" initialize="false"/> |
| 4253 | </names> |
| 4254 | <text macro="label-collection-number"/> |
| 4255 | <text macro="label-issue"/> |
| 4256 | </else-if> |
| 4257 | <else> |
| 4258 | <text macro="source-series-title"/> |
| 4259 | </else> |
| 4260 | </choose> |
| 4261 | </group> |
| 4262 | </macro> |
| 4263 | <macro name="source-series-title"> |
| 4264 | <group delimiter=", "> |
| 4265 | <choose> |
| 4266 | <if variable="issue"> |
| 4267 | <text text-case="title" variable="collection-title"/> |
| 4268 | <text macro="label-collection-number"/> |
| 4269 | <text macro="label-issue"/> |
| 4270 | </if> |
| 4271 | <else-if is-numeric="collection-number" variable="collection-title"> |
| 4272 | <group delimiter=" "> |
| 4273 | <text text-case="title" variable="collection-title"/> |
| 4274 | <text variable="collection-number"/> |
| 4275 | </group> |
| 4276 | </else-if> |
| 4277 | <else-if variable="collection-title"> |
| 4278 | <text text-case="title" variable="collection-title"/> |
| 4279 | <text variable="collection-number"/> |
| 4280 | </else-if> |
| 4281 | </choose> |
| 4282 | </group> |
| 4283 | </macro> |
| 4284 | <!-- 4.4. Event --> |
| 4285 | <macro name="source-event-bib"> |
| 4286 | <group delimiter=" "> |
| 4287 | <choose> |
| 4288 | <!-- omit types that provide event information in description --> |
| 4289 | <if match="any" type="interview" variable="interviewer"/> |
| 4290 | <else-if type="personal_communication" variable="recipient"/> |
| 4291 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"/> |
| 4292 | <else-if match="any" variable="event event-date event-title"> |
| 4293 | <!-- 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. --> |
| 4294 | <choose> |
| 4295 | <if type="paper-conference"> |
| 4296 | <choose> |
| 4297 | <if match="none" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 4298 | <!-- Don't print event info for conference papers published in proceedings --> |
| 4299 | <text macro="source-event-status-bib"/> |
| 4300 | <text macro="source-event-description-bib"/> |
| 4301 | </if> |
| 4302 | </choose> |
| 4303 | </if> |
| 4304 | <else> |
| 4305 | <!-- For other item types, print event info even if published (e.g. collection catalogs, performance programs). --> |
| 4306 | <text macro="source-event-status-bib"/> |
| 4307 | <text macro="source-event-description-bib"/> |
| 4308 | </else> |
| 4309 | </choose> |
| 4310 | </else-if> |
| 4311 | </choose> |
| 4312 | </group> |
| 4313 | </macro> |
| 4314 | <macro name="source-event-note"> |
| 4315 | <group delimiter=" "> |
| 4316 | <choose> |
| 4317 | <!-- omit types that provide event information in description --> |
| 4318 | <if match="any" type="interview" variable="interviewer"/> |
| 4319 | <else-if type="personal_communication" variable="recipient"/> |
| 4320 | <else-if match="any" type="review review-book" variable="reviewed-author reviewed-genre reviewed-title"/> |
| 4321 | <else-if match="any" variable="event event-date event-title"> |
| 4322 | <!-- 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. --> |
| 4323 | <choose> |
| 4324 | <if type="paper-conference"> |
| 4325 | <choose> |
| 4326 | <if match="none" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 4327 | <!-- Don't print event info for conference papers published in proceedings --> |
| 4328 | <text macro="source-event-status-note"/> |
| 4329 | <text macro="source-event-description-note"/> |
| 4330 | </if> |
| 4331 | </choose> |
| 4332 | </if> |
| 4333 | <else> |
| 4334 | <!-- For other item types, print event info even if published (e.g. collection catalogs, performance programs). --> |
| 4335 | <text macro="source-event-status-note"/> |
| 4336 | <text macro="source-event-description-note"/> |
| 4337 | </else> |
| 4338 | </choose> |
| 4339 | </else-if> |
| 4340 | </choose> |
| 4341 | </group> |
| 4342 | </macro> |
| 4343 | <macro name="source-event-place-first"> |
| 4344 | <!-- for descriptive elements for interviews, reviews, letters --> |
| 4345 | <choose> |
| 4346 | <if match="any" variable="event event-date event-title"> |
| 4347 | <group delimiter=", "> |
| 4348 | <text variable="event-title"/> |
| 4349 | <text variable="event-place"/> |
| 4350 | <text macro="date-event-full"/> |
| 4351 | </group> |
| 4352 | </if> |
| 4353 | </choose> |
| 4354 | </macro> |
| 4355 | <macro name="source-event-status-bib"> |
| 4356 | <group delimiter=" "> |
| 4357 | <choose> |
| 4358 | <if type="broadcast" variable="status"> |
| 4359 | <!-- 'aired', 'performed', etc. (CMOS18 14.165) --> |
| 4360 | <text text-case="capitalize-first" variable="status"/> |
| 4361 | </if> |
| 4362 | <else-if type="paper-conference"> |
| 4363 | <choose> |
| 4364 | <if variable="genre"> |
| 4365 | <text text-case="capitalize-first" value="presented"/> |
| 4366 | </if> |
| 4367 | <else> |
| 4368 | <text form="short" term="paper-conference" text-case="capitalize-first"/> |
| 4369 | <text value="presented"/> |
| 4370 | </else> |
| 4371 | </choose> |
| 4372 | <choose> |
| 4373 | <if variable="event-title"> |
| 4374 | <text term="at"/> |
| 4375 | </if> |
| 4376 | </choose> |
| 4377 | </else-if> |
| 4378 | <else-if type="song"> |
| 4379 | <text text-case="capitalize-first" value="recorded"/> |
| 4380 | <choose> |
| 4381 | <if variable="event-title"> |
| 4382 | <text term="at"/> |
| 4383 | </if> |
| 4384 | </choose> |
| 4385 | </else-if> |
| 4386 | <else-if variable="event-date issued"/> |
| 4387 | <else-if variable="issued"/> |
| 4388 | <else> |
| 4389 | <text text-case="capitalize-first" variable="status"/> |
| 4390 | </else> |
| 4391 | </choose> |
| 4392 | </group> |
| 4393 | </macro> |
| 4394 | <macro name="source-event-status-note"> |
| 4395 | <group delimiter=" "> |
| 4396 | <choose> |
| 4397 | <if type="broadcast" variable="status"> |
| 4398 | <!-- 'aired', 'performed', etc. (CMOS18 14.165) --> |
| 4399 | <text variable="status"/> |
| 4400 | </if> |
| 4401 | <else-if type="paper-conference"> |
| 4402 | <choose> |
| 4403 | <if variable="genre"> |
| 4404 | <text value="presented"/> |
| 4405 | </if> |
| 4406 | <else> |
| 4407 | <text form="short" term="paper-conference"/> |
| 4408 | <text value="presented"/> |
| 4409 | </else> |
| 4410 | </choose> |
| 4411 | <choose> |
| 4412 | <if match="any" variable="event event-title"> |
| 4413 | <text term="at"/> |
| 4414 | </if> |
| 4415 | </choose> |
| 4416 | </else-if> |
| 4417 | <else-if type="song"> |
| 4418 | <text value="recorded"/> |
| 4419 | <choose> |
| 4420 | <if variable="event-title"> |
| 4421 | <text term="at"/> |
| 4422 | </if> |
| 4423 | </choose> |
| 4424 | </else-if> |
| 4425 | <else-if variable="event-date issued"/> |
| 4426 | <else-if variable="issued"/> |
| 4427 | <else> |
| 4428 | <text variable="status"/> |
| 4429 | </else> |
| 4430 | </choose> |
| 4431 | </group> |
| 4432 | </macro> |
| 4433 | <macro name="source-event-title"> |
| 4434 | <choose> |
| 4435 | <!-- 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. --> |
| 4436 | <if variable="event-title"> |
| 4437 | <text variable="event-title"/> |
| 4438 | </if> |
| 4439 | <else> |
| 4440 | <text variable="event"/> |
| 4441 | </else> |
| 4442 | </choose> |
| 4443 | </macro> |
| 4444 | <macro name="source-event-title-capitalized"> |
| 4445 | <choose> |
| 4446 | <!-- 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. --> |
| 4447 | <if variable="event-title"> |
| 4448 | <text text-case="capitalize-first" variable="event-title"/> |
| 4449 | </if> |
| 4450 | <else> |
| 4451 | <text text-case="capitalize-first" variable="event"/> |
| 4452 | </else> |
| 4453 | </choose> |
| 4454 | </macro> |
| 4455 | <macro name="source-event-description-bib"> |
| 4456 | <group delimiter=", "> |
| 4457 | <choose> |
| 4458 | <if type="song"> |
| 4459 | <text macro="source-event-title"/> |
| 4460 | </if> |
| 4461 | <else-if type="paper-conference" variable="genre"> |
| 4462 | <text macro="source-event-title-capitalized"/> |
| 4463 | </else-if> |
| 4464 | <else-if type="paper-conference"> |
| 4465 | <text macro="source-event-title"/> |
| 4466 | </else-if> |
| 4467 | <else> |
| 4468 | <text macro="source-event-title-capitalized"/> |
| 4469 | </else> |
| 4470 | </choose> |
| 4471 | <text macro="date-event-full"/> |
| 4472 | <text variable="event-place"/> |
| 4473 | </group> |
| 4474 | </macro> |
| 4475 | <macro name="source-event-description-note"> |
| 4476 | <group delimiter=", "> |
| 4477 | <choose> |
| 4478 | <if type="song"> |
| 4479 | <text macro="source-event-title"/> |
| 4480 | </if> |
| 4481 | <else-if type="paper-conference" variable="genre"> |
| 4482 | <text macro="source-event-title"/> |
| 4483 | </else-if> |
| 4484 | <else-if type="paper-conference"> |
| 4485 | <text macro="source-event-title"/> |
| 4486 | </else-if> |
| 4487 | <else> |
| 4488 | <text macro="source-event-title"/> |
| 4489 | </else> |
| 4490 | </choose> |
| 4491 | <text macro="date-event-full"/> |
| 4492 | <text variable="event-place"/> |
| 4493 | </group> |
| 4494 | </macro> |
| 4495 | <!-- 4.5. Facts of publication --> |
| 4496 | <macro name="source-monographic-publication-bib"> |
| 4497 | <group delimiter=". "> |
| 4498 | <choose> |
| 4499 | <!-- `patent` date in identification (CMOS18 14.158) --> |
| 4500 | <if type="patent"/> |
| 4501 | <!-- omit serial types --> |
| 4502 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"/> |
| 4503 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 4504 | <!-- monographic types --> |
| 4505 | <text macro="source-publication-and-date-bib"/> |
| 4506 | </else-if> |
| 4507 | <!-- omit serial types --> |
| 4508 | <else-if match="any" type="interview paper-conference"/> |
| 4509 | <else> |
| 4510 | <!-- monographic types --> |
| 4511 | <text macro="source-publication-and-date-bib"/> |
| 4512 | </else> |
| 4513 | </choose> |
| 4514 | <text macro="source-publication-original-title-bib"/> |
| 4515 | </group> |
| 4516 | </macro> |
| 4517 | <macro name="source-monographic-publication-note"> |
| 4518 | <group delimiter="; "> |
| 4519 | <choose> |
| 4520 | <!-- `patent` date in identification (CMOS18 14.158) --> |
| 4521 | <if type="patent"/> |
| 4522 | <!-- omit serial types --> |
| 4523 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"/> |
| 4524 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 4525 | <!-- monographic types --> |
| 4526 | <text macro="source-publication-and-date-note"/> |
| 4527 | </else-if> |
| 4528 | <!-- omit serial types --> |
| 4529 | <else-if match="any" type="interview paper-conference"/> |
| 4530 | <else> |
| 4531 | <!-- monographic types --> |
| 4532 | <text macro="source-publication-and-date-note"/> |
| 4533 | </else> |
| 4534 | </choose> |
| 4535 | <text macro="source-publication-original-title-note"/> |
| 4536 | </group> |
| 4537 | </macro> |
| 4538 | <macro name="source-monographic-publication-note-bracketed"> |
| 4539 | <!-- Facts of publication with brackets for print monographic formats --> |
| 4540 | <choose> |
| 4541 | <if match="any" type="book chapter classic interview musical_score pamphlet paper-conference report thesis"> |
| 4542 | <text macro="source-monographic-publication-note" prefix="(" suffix=")"/> |
| 4543 | </if> |
| 4544 | <else-if type="article" variable="genre publisher"> |
| 4545 | <!-- without brackets for a preprint in a repository (CMOS18 14.76), with brackets for a working paper (CMOS18 14.116) --> |
| 4546 | <text macro="source-monographic-publication-note" prefix="(" suffix=")"/> |
| 4547 | </else-if> |
| 4548 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 4549 | <choose> |
| 4550 | <if match="any" variable="publisher publisher-place"> |
| 4551 | <text macro="source-monographic-publication-note" prefix="(" suffix=")"/> |
| 4552 | </if> |
| 4553 | <!-- online reference sources without a additional publisher details are unbracketed (CMOS18 14.131) --> |
| 4554 | <else-if match="any" variable="DOI URL"/> |
| 4555 | <else> |
| 4556 | <text macro="source-monographic-publication-note" prefix="(" suffix=")"/> |
| 4557 | </else> |
| 4558 | </choose> |
| 4559 | </else-if> |
| 4560 | <else-if type="motion_picture" variable="publisher"> |
| 4561 | <text macro="source-monographic-publication-note" prefix="(" suffix=")"/> |
| 4562 | </else-if> |
| 4563 | <else-if type="personal_communication"> |
| 4564 | <choose> |
| 4565 | <if match="any" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 4566 | <!-- in an edited collection --> |
| 4567 | <text macro="source-monographic-publication-note" prefix="(" suffix=")"/> |
| 4568 | </if> |
| 4569 | </choose> |
| 4570 | </else-if> |
| 4571 | <else-if is-uncertain-date="issued"> |
| 4572 | <!-- space before bracketed uncertain date (CMOS18 14.127) --> |
| 4573 | <text macro="source-monographic-publication-note"/> |
| 4574 | </else-if> |
| 4575 | </choose> |
| 4576 | </macro> |
| 4577 | <macro name="source-monographic-publication-note-unbracketed"> |
| 4578 | <!-- Facts of publication without brackets --> |
| 4579 | <choose> |
| 4580 | <if match="any" type="book chapter classic interview musical_score pamphlet paper-conference report thesis"/> |
| 4581 | <else-if type="article" variable="genre publisher"/> |
| 4582 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 4583 | <choose> |
| 4584 | <if match="any" variable="publisher publisher-place"/> |
| 4585 | <!-- online reference sources without a additional publisher details are unbracketed (CMOS18 14.131) --> |
| 4586 | <else-if match="any" variable="DOI URL"> |
| 4587 | <text macro="source-monographic-publication-note"/> |
| 4588 | </else-if> |
| 4589 | </choose> |
| 4590 | </else-if> |
| 4591 | <else-if type="motion_picture" variable="publisher"/> |
| 4592 | <else-if type="personal_communication"> |
| 4593 | <choose> |
| 4594 | <if match="none" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 4595 | <!-- not in an edited collection --> |
| 4596 | <text macro="source-monographic-publication-note"/> |
| 4597 | </if> |
| 4598 | </choose> |
| 4599 | </else-if> |
| 4600 | <else-if is-uncertain-date="issued"/> |
| 4601 | <else> |
| 4602 | <text macro="source-monographic-publication-note"/> |
| 4603 | </else> |
| 4604 | </choose> |
| 4605 | </macro> |
| 4606 | <macro name="source-monographic-publication-short-bracketed"> |
| 4607 | <!-- mirrors `source-monographic-publication-note-bracketed` --> |
| 4608 | <group delimiter=", " prefix="(" suffix=")"> |
| 4609 | <choose> |
| 4610 | <if disambiguate="true" match="none"/> |
| 4611 | <!-- Facts of publication with brackets for print monographic formats --> |
| 4612 | <else-if match="any" type="book chapter classic interview musical_score pamphlet paper-conference report thesis"> |
| 4613 | <choose> |
| 4614 | <if disambiguate="true"> |
| 4615 | <text macro="source-publication-publisher-note"/> |
| 4616 | </if> |
| 4617 | </choose> |
| 4618 | <text macro="source-date-issued-or-status"/> |
| 4619 | </else-if> |
| 4620 | <else-if type="article" variable="genre publisher"> |
| 4621 | <!-- without brackets for a preprint in a repository (CMOS18 14.76), with brackets for a working paper (CMOS18 14.116) --> |
| 4622 | <choose> |
| 4623 | <if disambiguate="true"> |
| 4624 | <text macro="source-publication-publisher-note"/> |
| 4625 | </if> |
| 4626 | </choose> |
| 4627 | <text macro="source-date-issued-or-status"/> |
| 4628 | </else-if> |
| 4629 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 4630 | <choose> |
| 4631 | <if match="any" variable="publisher publisher-place"> |
| 4632 | <choose> |
| 4633 | <if disambiguate="true"> |
| 4634 | <text macro="source-publication-publisher-note"/> |
| 4635 | </if> |
| 4636 | </choose> |
| 4637 | <text macro="source-date-issued-or-status"/> |
| 4638 | </if> |
| 4639 | <!-- online reference sources without a additional publisher details are unbracketed (CMOS18 14.131) --> |
| 4640 | <else-if match="any" variable="DOI URL"/> |
| 4641 | <else> |
| 4642 | <choose> |
| 4643 | <if disambiguate="true"> |
| 4644 | <text macro="source-publication-publisher-note"/> |
| 4645 | </if> |
| 4646 | </choose> |
| 4647 | <text macro="source-date-issued-or-status"/> |
| 4648 | </else> |
| 4649 | </choose> |
| 4650 | </else-if> |
| 4651 | <else-if type="motion_picture" variable="publisher"> |
| 4652 | <choose> |
| 4653 | <if disambiguate="true"> |
| 4654 | <text macro="source-publication-publisher-note"/> |
| 4655 | </if> |
| 4656 | </choose> |
| 4657 | <text macro="source-date-issued-or-status"/> |
| 4658 | </else-if> |
| 4659 | <else-if type="personal_communication"> |
| 4660 | <choose> |
| 4661 | <if match="any" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 4662 | <!-- in an edited collection --> |
| 4663 | <text macro="source-date-issued-or-status"/> |
| 4664 | </if> |
| 4665 | </choose> |
| 4666 | </else-if> |
| 4667 | <else-if is-uncertain-date="issued"> |
| 4668 | <!-- space before bracketed uncertain date (CMOS18 14.127) --> |
| 4669 | <text macro="source-date-issued-or-status"/> |
| 4670 | </else-if> |
| 4671 | </choose> |
| 4672 | </group> |
| 4673 | </macro> |
| 4674 | <macro name="source-monographic-publication-short-unbracketed"> |
| 4675 | <!-- mirrors `source-monographic-publication-note-unbracketed` --> |
| 4676 | <choose> |
| 4677 | <if disambiguate="true" match="none"/> |
| 4678 | <!-- Facts of publication without brackets --> |
| 4679 | <else-if match="any" type="book chapter classic interview musical_score pamphlet paper-conference report thesis"/> |
| 4680 | <else-if type="article" variable="genre publisher"/> |
| 4681 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 4682 | <choose> |
| 4683 | <if match="any" variable="publisher publisher-place"/> |
| 4684 | <!-- online reference sources without a additional publisher details are unbracketed (CMOS18 14.131) --> |
| 4685 | <else-if match="any" variable="DOI URL"> |
| 4686 | <text macro="source-date-issued-or-status"/> |
| 4687 | </else-if> |
| 4688 | </choose> |
| 4689 | </else-if> |
| 4690 | <else-if type="motion_picture" variable="publisher"/> |
| 4691 | <else-if type="personal_communication"> |
| 4692 | <choose> |
| 4693 | <if match="none" variable="collection-editor compiler editor editorial-director issue page supplement-number volume"> |
| 4694 | <!-- not in an edited collection --> |
| 4695 | <text macro="source-date-issued-or-status"/> |
| 4696 | </if> |
| 4697 | </choose> |
| 4698 | </else-if> |
| 4699 | <else-if is-uncertain-date="issued"/> |
| 4700 | <else> |
| 4701 | <text macro="source-date-issued-or-status"/> |
| 4702 | </else> |
| 4703 | </choose> |
| 4704 | </macro> |
| 4705 | <macro name="source-publication-and-date-bib"> |
| 4706 | <group delimiter=", "> |
| 4707 | <choose> |
| 4708 | <if match="any" type="post webpage"> |
| 4709 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 4710 | <text text-case="title" variable="container-title"/> |
| 4711 | <!-- avoid possible repetition of `container-title` with author-date: --> |
| 4712 | <!-- <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>--> |
| 4713 | </if> |
| 4714 | </choose> |
| 4715 | <choose> |
| 4716 | <if type="broadcast" variable="DOI"> |
| 4717 | <!-- 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` --> |
| 4718 | <!-- 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 --> |
| 4719 | <text macro="source-publication-history-bib"/> |
| 4720 | </if> |
| 4721 | <else-if type="broadcast" variable="URL"> |
| 4722 | <text macro="source-publication-history-bib"/> |
| 4723 | </else-if> |
| 4724 | <else-if type="broadcast"/> |
| 4725 | <else> |
| 4726 | <text macro="source-publication-history-bib"/> |
| 4727 | </else> |
| 4728 | </choose> |
| 4729 | <group delimiter=" "> |
| 4730 | <text macro="source-date-status-bib"/> |
| 4731 | <text macro="source-date-issued-or-status"/> |
| 4732 | <!-- for author-date or notes and bibliography leading with volume title (CMOS18 14.21): --> |
| 4733 | <!-- <text macro="source-date-specific-title-first"/> --> |
| 4734 | </group> |
| 4735 | <choose> |
| 4736 | <if type="broadcast" variable="URL"/> |
| 4737 | <else-if type="broadcast"> |
| 4738 | <group delimiter=" "> |
| 4739 | <text term="on"/> |
| 4740 | <text macro="source-publication-history-bib"/> |
| 4741 | </group> |
| 4742 | </else-if> |
| 4743 | </choose> |
| 4744 | </group> |
| 4745 | </macro> |
| 4746 | <macro name="source-publication-and-date-note"> |
| 4747 | <group delimiter=", "> |
| 4748 | <choose> |
| 4749 | <if match="any" type="post webpage"> |
| 4750 | <!-- print `container-title` on `post` or `webpage` in the same way as `publisher` (CMOS18 14.104-106) --> |
| 4751 | <text text-case="title" variable="container-title"/> |
| 4752 | </if> |
| 4753 | </choose> |
| 4754 | <choose> |
| 4755 | <if type="broadcast" variable="DOI"> |
| 4756 | <!-- 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` --> |
| 4757 | <!-- 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 --> |
| 4758 | <text macro="source-publication-history-note"/> |
| 4759 | </if> |
| 4760 | <else-if type="broadcast" variable="URL"> |
| 4761 | <text macro="source-publication-history-note"/> |
| 4762 | </else-if> |
| 4763 | <else-if type="broadcast"/> |
| 4764 | <else> |
| 4765 | <text macro="source-publication-history-note"/> |
| 4766 | </else> |
| 4767 | </choose> |
| 4768 | <group delimiter=" "> |
| 4769 | <text macro="source-date-status-note"/> |
| 4770 | <text macro="source-date-issued-or-status"/> |
| 4771 | </group> |
| 4772 | <choose> |
| 4773 | <if type="broadcast" variable="DOI"/> |
| 4774 | <else-if type="broadcast" variable="URL"/> |
| 4775 | <else-if type="broadcast"> |
| 4776 | <group delimiter=" "> |
| 4777 | <text term="on"/> |
| 4778 | <text macro="source-publication-history-note"/> |
| 4779 | </group> |
| 4780 | </else-if> |
| 4781 | </choose> |
| 4782 | </group> |
| 4783 | </macro> |
| 4784 | <!-- Facts of publication elements --> |
| 4785 | <macro name="source-publication-description-bib"> |
| 4786 | <choose> |
| 4787 | <if type="article" variable="genre"/> |
| 4788 | <else-if type="article"> |
| 4789 | <!-- `preprint` term attached to repository name, but specific working paper descriptors appear in description (CMOS18 14.76, 14.116) --> |
| 4790 | <text term="preprint" text-case="capitalize-first"/> |
| 4791 | </else-if> |
| 4792 | <else-if type="thesis"> |
| 4793 | <!-- thesis type appears with university name (CMOS18 14.113) --> |
| 4794 | <text text-case="capitalize-first" variable="genre"/> |
| 4795 | </else-if> |
| 4796 | <else-if match="any" variable="original-publisher original-publisher-place"> |
| 4797 | <choose> |
| 4798 | <!-- `edition` provides an alternative label to `reprint` (CMOS18 14.16) --> |
| 4799 | <if match="any" variable="edition original-title"/> |
| 4800 | <else-if match="none" type="book chapter classic entry entry-dictionary entry-encyclopedia interview musical_score pamphlet paper-conference report thesis"/> |
| 4801 | <else-if variable="issued original-date"> |
| 4802 | <text text-case="capitalize-first" value="reprint"/> |
| 4803 | </else-if> |
| 4804 | </choose> |
| 4805 | </else-if> |
| 4806 | </choose> |
| 4807 | </macro> |
| 4808 | <macro name="source-publication-description-note"> |
| 4809 | <choose> |
| 4810 | <if type="article" variable="genre"/> |
| 4811 | <else-if type="article"> |
| 4812 | <!-- `preprint` term attached to repository name, but specific working paper descriptors appear in description (CMOS18 14.76, 14.116) --> |
| 4813 | <text term="preprint"/> |
| 4814 | </else-if> |
| 4815 | <else-if type="thesis"> |
| 4816 | <!-- thesis type appears with university name (CMOS18 14.113) --> |
| 4817 | <text variable="genre"/> |
| 4818 | </else-if> |
| 4819 | <else-if match="any" variable="original-publisher original-publisher-place"> |
| 4820 | <choose> |
| 4821 | <!-- `edition` provides an alternative label to `reprint` (CMOS18 14.16) --> |
| 4822 | <if match="any" variable="edition original-title"/> |
| 4823 | <else-if match="none" type="book chapter classic entry entry-dictionary entry-encyclopedia interview musical_score pamphlet paper-conference report thesis"/> |
| 4824 | <else-if variable="issued original-date"> |
| 4825 | <text value="repr."/> |
| 4826 | </else-if> |
| 4827 | </choose> |
| 4828 | </else-if> |
| 4829 | </choose> |
| 4830 | </macro> |
| 4831 | <macro name="source-publication-history-bib"> |
| 4832 | <choose> |
| 4833 | <if variable="original-title"> |
| 4834 | <!-- `original-title` is covered in `source-publication-original-title-bib` --> |
| 4835 | <group delimiter=", "> |
| 4836 | <text macro="source-publication-description-bib"/> |
| 4837 | <text macro="source-publication-publisher-bib"/> |
| 4838 | </group> |
| 4839 | </if> |
| 4840 | <else-if match="any" variable="edition original-publisher original-publisher-place"> |
| 4841 | <group delimiter=". "> |
| 4842 | <!-- full stop to separate original date if `original-publisher` (CMOS18 14.16) --> |
| 4843 | <group delimiter=", "> |
| 4844 | <text macro="source-publication-publisher-original-bib"/> |
| 4845 | <text macro="source-date-original"/> |
| 4846 | </group> |
| 4847 | <group delimiter=". "> |
| 4848 | <choose> |
| 4849 | <if variable="issued original-date"> |
| 4850 | <text macro="label-edition-capitalized"/> |
| 4851 | </if> |
| 4852 | </choose> |
| 4853 | <group delimiter=", "> |
| 4854 | <text macro="source-publication-description-bib"/> |
| 4855 | <text macro="source-publication-publisher-bib"/> |
| 4856 | </group> |
| 4857 | </group> |
| 4858 | </group> |
| 4859 | </else-if> |
| 4860 | <else> |
| 4861 | <group delimiter="; "> |
| 4862 | <!-- semicolon to separate original date if no publisher (CMOS18 14.165) --> |
| 4863 | <text macro="source-date-original"/> |
| 4864 | <group delimiter=", "> |
| 4865 | <text macro="source-publication-description-bib"/> |
| 4866 | <text macro="source-publication-publisher-bib"/> |
| 4867 | </group> |
| 4868 | </group> |
| 4869 | </else> |
| 4870 | </choose> |
| 4871 | </macro> |
| 4872 | <macro name="source-publication-history-note"> |
| 4873 | <choose> |
| 4874 | <if variable="original-title"> |
| 4875 | <!-- `original-title` is covered in `source-publication-original-title-bib` --> |
| 4876 | <group delimiter=", "> |
| 4877 | <text macro="source-publication-description-note"/> |
| 4878 | <text macro="source-publication-publisher-note"/> |
| 4879 | </group> |
| 4880 | </if> |
| 4881 | <else-if match="any" variable="edition original-publisher original-publisher-place"> |
| 4882 | <group delimiter="; "> |
| 4883 | <!-- semicolon to separate original date if `original-publisher` (CMOS18 14.16) --> |
| 4884 | <group delimiter=", "> |
| 4885 | <text macro="source-publication-publisher-original-note"/> |
| 4886 | <text macro="source-date-original"/> |
| 4887 | </group> |
| 4888 | <group delimiter=", "> |
| 4889 | <choose> |
| 4890 | <if variable="issued original-date"> |
| 4891 | <text macro="label-edition"/> |
| 4892 | </if> |
| 4893 | </choose> |
| 4894 | <group delimiter=", "> |
| 4895 | <text macro="source-publication-description-note"/> |
| 4896 | <text macro="source-publication-publisher-note"/> |
| 4897 | </group> |
| 4898 | </group> |
| 4899 | </group> |
| 4900 | </else-if> |
| 4901 | <else> |
| 4902 | <group delimiter="; "> |
| 4903 | <!-- semicolon to separate original date if no publisher (CMOS18 14.165) --> |
| 4904 | <text macro="source-date-original"/> |
| 4905 | <group delimiter=", "> |
| 4906 | <text macro="source-publication-description-note"/> |
| 4907 | <text macro="source-publication-publisher-note"/> |
| 4908 | </group> |
| 4909 | </group> |
| 4910 | </else> |
| 4911 | </choose> |
| 4912 | </macro> |
| 4913 | <macro name="source-publication-original-title-bib"> |
| 4914 | <!-- Work originally published under a different title (CMOS18 13.101) --> |
| 4915 | <choose> |
| 4916 | <if variable="original-title"> |
| 4917 | <group delimiter=" "> |
| 4918 | <text term="original-work-published" text-case="capitalize-first"/> |
| 4919 | <group delimiter=", "> |
| 4920 | <names variable="original-author"> |
| 4921 | <name and="text" initialize="false"/> |
| 4922 | </names> |
| 4923 | <text font-style="italic" text-case="title" variable="original-title"/> |
| 4924 | </group> |
| 4925 | <group delimiter=", " prefix="(" suffix=")"> |
| 4926 | <text macro="source-publication-publisher-original-bib"/> |
| 4927 | <text macro="source-date-original"/> |
| 4928 | </group> |
| 4929 | </group> |
| 4930 | </if> |
| 4931 | </choose> |
| 4932 | </macro> |
| 4933 | <macro name="source-publication-original-title-note"> |
| 4934 | <!-- Work originally published under a different title (CMOS18 13.101) --> |
| 4935 | <choose> |
| 4936 | <if variable="original-title"> |
| 4937 | <group delimiter=" "> |
| 4938 | <text term="original-work-published"/> |
| 4939 | <group delimiter=", "> |
| 4940 | <names variable="original-author"> |
| 4941 | <name and="text" initialize="false"/> |
| 4942 | </names> |
| 4943 | <text font-style="italic" text-case="title" variable="original-title"/> |
| 4944 | </group> |
| 4945 | <group delimiter=", " prefix="(" suffix=")"> |
| 4946 | <text macro="source-publication-publisher-original-note"/> |
| 4947 | <text macro="source-date-original"/> |
| 4948 | </group> |
| 4949 | </group> |
| 4950 | </if> |
| 4951 | </choose> |
| 4952 | </macro> |
| 4953 | <macro name="source-publication-publisher-bib"> |
| 4954 | <group delimiter=" "> |
| 4955 | <choose> |
| 4956 | <if type="thesis" variable="publisher"> |
| 4957 | <text text-case="capitalize-first" variable="publisher"/> |
| 4958 | </if> |
| 4959 | <else-if variable="publisher"> |
| 4960 | <group delimiter=": "> |
| 4961 | <text text-case="capitalize-first" variable="publisher-place"/> |
| 4962 | <text text-case="capitalize-first" variable="publisher"/> |
| 4963 | </group> |
| 4964 | </else-if> |
| 4965 | <!-- TODO: remove conditional when Zotero fixes double-mapping of `event-place` --> |
| 4966 | <else-if match="any" variable="event-date event-title"/> |
| 4967 | <else> |
| 4968 | <text text-case="capitalize-first" variable="publisher-place"/> |
| 4969 | </else> |
| 4970 | </choose> |
| 4971 | <choose> |
| 4972 | <if type="song"> |
| 4973 | <!-- Album catalogue number follows label name (CMOS18 14.163-164) --> |
| 4974 | <text variable="number"/> |
| 4975 | </if> |
| 4976 | </choose> |
| 4977 | </group> |
| 4978 | </macro> |
| 4979 | <macro name="source-publication-publisher-note"> |
| 4980 | <group delimiter=" "> |
| 4981 | <choose> |
| 4982 | <if type="thesis" variable="publisher"> |
| 4983 | <text variable="publisher"/> |
| 4984 | </if> |
| 4985 | <else-if variable="publisher"> |
| 4986 | <group delimiter=": "> |
| 4987 | <text variable="publisher-place"/> |
| 4988 | <text variable="publisher"/> |
| 4989 | </group> |
| 4990 | </else-if> |
| 4991 | <!-- TODO: remove conditional when Zotero fixes double-mapping of `event-place` --> |
| 4992 | <else-if match="any" variable="event-date event-title"/> |
| 4993 | <else> |
| 4994 | <text variable="publisher-place"/> |
| 4995 | </else> |
| 4996 | </choose> |
| 4997 | <choose> |
| 4998 | <if type="song"> |
| 4999 | <!-- Album catalogue number follows label name (CMOS18 14.163-164) --> |
| 5000 | <text variable="number"/> |
| 5001 | </if> |
| 5002 | </choose> |
| 5003 | </group> |
| 5004 | </macro> |
| 5005 | <macro name="source-publication-publisher-original-bib"> |
| 5006 | <choose> |
| 5007 | <if variable="original-publisher"> |
| 5008 | <group delimiter=": "> |
| 5009 | <text text-case="capitalize-first" variable="original-publisher-place"/> |
| 5010 | <text text-case="capitalize-first" variable="original-publisher"/> |
| 5011 | </group> |
| 5012 | </if> |
| 5013 | <else> |
| 5014 | <text text-case="capitalize-first" variable="original-publisher-place"/> |
| 5015 | </else> |
| 5016 | </choose> |
| 5017 | </macro> |
| 5018 | <macro name="source-publication-publisher-original-note"> |
| 5019 | <choose> |
| 5020 | <if variable="original-publisher"> |
| 5021 | <group delimiter=": "> |
| 5022 | <text variable="original-publisher-place"/> |
| 5023 | <text variable="original-publisher"/> |
| 5024 | </group> |
| 5025 | </if> |
| 5026 | <else> |
| 5027 | <text variable="original-publisher-place"/> |
| 5028 | </else> |
| 5029 | </choose> |
| 5030 | </macro> |
| 5031 | <!-- 4.6. Date --> |
| 5032 | <!-- Date elements --> |
| 5033 | <macro name="source-date-issued-full"> |
| 5034 | <!-- Give full date for more ephemeral types --> |
| 5035 | <!-- NB: any changes must also be applied to `source-date-original-full` --> |
| 5036 | <choose> |
| 5037 | <if type="personal_communication" variable="event-date issued"> |
| 5038 | <!-- Provide issue date for letters listed under event-date --> |
| 5039 | <text macro="date-issued-year"/> |
| 5040 | </if> |
| 5041 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 5042 | <choose> |
| 5043 | <if match="any" variable="DOI URL"> |
| 5044 | <!-- Online reference works use full dates (CMOS18 14.131) --> |
| 5045 | <text macro="date-issued-full"/> |
| 5046 | </if> |
| 5047 | <else> |
| 5048 | <text macro="date-issued-year"/> |
| 5049 | </else> |
| 5050 | </choose> |
| 5051 | </else-if> |
| 5052 | <else-if match="any" type="article broadcast collection dataset document event graphic manuscript map patent performance personal_communication post software song speech standard webpage"> |
| 5053 | <text macro="date-issued-full"/> |
| 5054 | </else-if> |
| 5055 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 5056 | <!-- serial types --> |
| 5057 | <text macro="source-date-issued-full-serial"/> |
| 5058 | </else-if> |
| 5059 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 5060 | <!-- monographic types --> |
| 5061 | <text macro="date-issued-year"/> |
| 5062 | </else-if> |
| 5063 | <else-if match="any" type="interview paper-conference"> |
| 5064 | <!-- serial types --> |
| 5065 | <text macro="source-date-issued-full-serial"/> |
| 5066 | </else-if> |
| 5067 | <!-- monographic types --> |
| 5068 | <else-if variable="issued"> |
| 5069 | <text macro="date-issued-year"/> |
| 5070 | </else-if> |
| 5071 | <else-if variable="event-date"> |
| 5072 | <text macro="date-event-year"/> |
| 5073 | </else-if> |
| 5074 | <else-if variable="available-date"> |
| 5075 | <date date-parts="year" form="numeric" variable="available-date"/> |
| 5076 | </else-if> |
| 5077 | </choose> |
| 5078 | </macro> |
| 5079 | <macro name="source-date-issued-full-serial"> |
| 5080 | <choose> |
| 5081 | <if match="any" type="article-magazine article-newspaper"> |
| 5082 | <!-- magazines and newspapers provide the full date in place of volume/issue numbers (CMOS18 14.87, 14.89) --> |
| 5083 | <text macro="date-issued-full"/> |
| 5084 | </if> |
| 5085 | <else-if variable="issue volume"> |
| 5086 | <text macro="date-issued-year-month"/> |
| 5087 | </else-if> |
| 5088 | <else-if variable="supplement-number"> |
| 5089 | <text macro="date-issued-year-month"/> |
| 5090 | </else-if> |
| 5091 | <else-if match="any" variable="issue volume"> |
| 5092 | <text macro="date-issued-year-month"/> |
| 5093 | </else-if> |
| 5094 | <else> |
| 5095 | <text macro="date-issued-full"/> |
| 5096 | </else> |
| 5097 | </choose> |
| 5098 | </macro> |
| 5099 | <macro name="source-date-issued-or-status"> |
| 5100 | <choose> |
| 5101 | <if match="any" variable="event-date issued"> |
| 5102 | <text macro="source-date-issued-full"/> |
| 5103 | </if> |
| 5104 | <else-if variable="status"> |
| 5105 | <text text-case="lowercase" variable="status"/> |
| 5106 | </else-if> |
| 5107 | <else-if match="any" type="interview personal_communication"> |
| 5108 | <choose> |
| 5109 | <if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 5110 | <!-- only give n.d. for accessible personal communication (CMOS18 14.111)--> |
| 5111 | <text form="short" term="no date"/> |
| 5112 | </if> |
| 5113 | </choose> |
| 5114 | </else-if> |
| 5115 | <!-- types with unusual reference (CMOS18 14.44, 14.127) --> |
| 5116 | <else-if match="any" type="classic collection entry entry-dictionary entry-encyclopedia webpage"/> |
| 5117 | <else-if type="manuscript"> |
| 5118 | <!-- do not give n.d. with a bare shelfmark --> |
| 5119 | <choose> |
| 5120 | <if match="any" variable="container-title event-date event-place event-title genre title publisher publisher-place"> |
| 5121 | <text form="short" term="no date"/> |
| 5122 | </if> |
| 5123 | </choose> |
| 5124 | </else-if> |
| 5125 | <else-if type="article-journal"> |
| 5126 | <choose> |
| 5127 | <if variable="available-date"> |
| 5128 | <!-- label journal articles available but not yet formally published as 'forthcoming' (CMOS18 14.75) --> |
| 5129 | <text term="forthcoming"/> |
| 5130 | </if> |
| 5131 | <else> |
| 5132 | <text form="short" term="no date"/> |
| 5133 | </else> |
| 5134 | </choose> |
| 5135 | </else-if> |
| 5136 | <else> |
| 5137 | <text form="short" term="no date"/> |
| 5138 | </else> |
| 5139 | </choose> |
| 5140 | </macro> |
| 5141 | <macro name="source-date-original"> |
| 5142 | <text macro="source-date-original-full"/> |
| 5143 | <!-- for author-date 18th edition: --> |
| 5144 | <!-- <text macro="source-date-original-month-day"/> --> |
| 5145 | </macro> |
| 5146 | <macro name="source-date-original-full"> |
| 5147 | <!-- Give full date for more ephemeral types --> |
| 5148 | <!-- Macro derived from `source-date-issued-full` --> |
| 5149 | <choose> |
| 5150 | <if type="personal_communication" variable="event-date original-date"> |
| 5151 | <!-- Provide original date for letters listed under event-date --> |
| 5152 | <text macro="date-original-year"/> |
| 5153 | </if> |
| 5154 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 5155 | <choose> |
| 5156 | <if match="any" variable="DOI URL"> |
| 5157 | <!-- Online reference works use full dates (CMOS18 14.131) --> |
| 5158 | <text macro="date-original-full"/> |
| 5159 | </if> |
| 5160 | <else> |
| 5161 | <text macro="date-original-year"/> |
| 5162 | </else> |
| 5163 | </choose> |
| 5164 | </else-if> |
| 5165 | <else-if match="any" type="article broadcast collection dataset document event graphic manuscript map patent performance personal_communication post software song speech standard webpage"> |
| 5166 | <text macro="date-original-full"/> |
| 5167 | </else-if> |
| 5168 | <else-if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 5169 | <!-- serial types --> |
| 5170 | <text macro="source-date-original-full-serial"/> |
| 5171 | </else-if> |
| 5172 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 5173 | <!-- monographic types --> |
| 5174 | <text macro="date-original-year"/> |
| 5175 | </else-if> |
| 5176 | <else-if match="any" type="interview paper-conference"> |
| 5177 | <!-- serial types --> |
| 5178 | <text macro="source-date-original-full-serial"/> |
| 5179 | </else-if> |
| 5180 | <else> |
| 5181 | <!-- monographic types --> |
| 5182 | <text macro="date-original-year"/> |
| 5183 | </else> |
| 5184 | </choose> |
| 5185 | </macro> |
| 5186 | <macro name="source-date-original-full-serial"> |
| 5187 | <choose> |
| 5188 | <if variable="issue volume"> |
| 5189 | <text macro="date-original-year-month"/> |
| 5190 | </if> |
| 5191 | <else-if variable="supplement-number"> |
| 5192 | <text macro="date-original-year-month"/> |
| 5193 | </else-if> |
| 5194 | <else-if match="any" variable="issue volume"> |
| 5195 | <text macro="date-original-year-month"/> |
| 5196 | </else-if> |
| 5197 | <else> |
| 5198 | <text macro="date-original-full"/> |
| 5199 | </else> |
| 5200 | </choose> |
| 5201 | </macro> |
| 5202 | <macro name="source-date-status-bib"> |
| 5203 | <choose> |
| 5204 | <if type="broadcast" variable="event-title issued status"/> |
| 5205 | <!-- on a `broadcast`, if there is an `event-title`, `status` appears with `event-date` as part of `source-event` (CMOS18 14.165) --> |
| 5206 | <else-if variable="issued status"> |
| 5207 | <!-- `status` specifies date type, e.g. 'effective', 'last modified', 'approved' (CMOS18 14.104 for `webpage`; CMOS18 14.159 for `standard`) --> |
| 5208 | <choose> |
| 5209 | <if type="webpage" variable="container-title"> |
| 5210 | <text variable="status"/> |
| 5211 | </if> |
| 5212 | <else-if type="webpage" variable="author publisher"> |
| 5213 | <text variable="status"/> |
| 5214 | </else-if> |
| 5215 | <else-if type="webpage" variable="translator publisher"> |
| 5216 | <text variable="status"/> |
| 5217 | </else-if> |
| 5218 | <else-if type="webpage"> |
| 5219 | <!-- capitalize `status` if there is nothing else after the `title` (either no website title or substituted publisher) --> |
| 5220 | <text text-case="capitalize-first" variable="status"/> |
| 5221 | </else-if> |
| 5222 | <else-if match="any" variable="original-date original-publisher original-publisher-place original-title publisher"> |
| 5223 | <text variable="status"/> |
| 5224 | </else-if> |
| 5225 | <else> |
| 5226 | <text text-case="capitalize-first" variable="status"/> |
| 5227 | </else> |
| 5228 | </choose> |
| 5229 | </else-if> |
| 5230 | <else-if type="broadcast" variable="issued URL"/> |
| 5231 | <else-if type="broadcast" variable="issued"> |
| 5232 | <!-- `status` of a radio or TV broadcast is 'aired' if unspecified (CMOS18 14.165) --> |
| 5233 | <text text-case="capitalize-first" value="aired"/> |
| 5234 | </else-if> |
| 5235 | <else-if type="software" variable="issued publisher"> |
| 5236 | <!-- `status` of software is 'released' if unspecified (CMOS18 14.169) --> |
| 5237 | <choose> |
| 5238 | <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"> |
| 5239 | <!-- lowercase if `publisher` is adjacent --> |
| 5240 | <text value="released"/> |
| 5241 | </if> |
| 5242 | <else> |
| 5243 | <text text-case="capitalize-first" value="released"/> |
| 5244 | </else> |
| 5245 | </choose> |
| 5246 | </else-if> |
| 5247 | <else-if type="software" variable="original-date"> |
| 5248 | <!-- lowercase if `original-date` is adjacent --> |
| 5249 | <text value="released"/> |
| 5250 | </else-if> |
| 5251 | <else-if type="software" variable="issued"> |
| 5252 | <!-- capitalize if `publisher` is not present --> |
| 5253 | <text text-case="capitalize-first" value="released"/> |
| 5254 | </else-if> |
| 5255 | </choose> |
| 5256 | </macro> |
| 5257 | <macro name="source-date-status-note"> |
| 5258 | <choose> |
| 5259 | <if type="broadcast" variable="event-title issued status"/> |
| 5260 | <!-- on a `broadcast`, if there is an `event-title`, `status` appears with `event-date` as part of `source-event` (CMOS18 14.165) --> |
| 5261 | <else-if variable="issued status"> |
| 5262 | <!-- `status` specifies date type, e.g. 'effective', 'last modified', 'approved' (CMOS18 14.104 for `webpage`; CMOS18 14.159 for `standard`) --> |
| 5263 | <text variable="status"/> |
| 5264 | </else-if> |
| 5265 | <else-if type="broadcast" variable="issued DOI"/> |
| 5266 | <else-if type="broadcast" variable="issued URL"/> |
| 5267 | <else-if type="broadcast" variable="issued"> |
| 5268 | <!-- `status` of a radio or TV broadcast is 'aired' if unspecified (CMOS18 14.165) --> |
| 5269 | <text value="aired"/> |
| 5270 | </else-if> |
| 5271 | <else-if type="software" variable="issued"> |
| 5272 | <!-- `status` of software is 'released' if unspecified (CMOS18 14.169) --> |
| 5273 | <text value="released"/> |
| 5274 | </else-if> |
| 5275 | </choose> |
| 5276 | </macro> |
| 5277 | <!-- 4.7. Locator (including page references) --> |
| 5278 | <macro name="source-locator-subsequent"> |
| 5279 | <choose> |
| 5280 | <if match="any" type="article-journal article-magazine article-newspaper periodical post-weblog review review-book"> |
| 5281 | <text macro="source-locator-subsequent-serial"/> |
| 5282 | </if> |
| 5283 | <else-if match="any" variable="collection-editor compiler editor editorial-director"> |
| 5284 | <!-- monographic types --> |
| 5285 | <text macro="source-locator-subsequent-monographic"/> |
| 5286 | </else-if> |
| 5287 | <else-if match="any" type="interview paper-conference"> |
| 5288 | <!-- serial types --> |
| 5289 | <text macro="source-locator-subsequent-serial"/> |
| 5290 | </else-if> |
| 5291 | <else> |
| 5292 | <text macro="source-locator-subsequent-monographic"/> |
| 5293 | </else> |
| 5294 | </choose> |
| 5295 | </macro> |
| 5296 | <macro name="source-locator-subsequent-monographic"> |
| 5297 | <group delimiter=", "> |
| 5298 | <choose> |
| 5299 | <if variable="container-title"> |
| 5300 | <!-- Do not provide `volume` or `part-number` for defined section --> |
| 5301 | <text macro="label-locator"/> |
| 5302 | </if> |
| 5303 | <else-if variable="part-number"> |
| 5304 | <!-- label page numbers to balance a part number (CMOS18 14.50) --> |
| 5305 | <text macro="label-volume"/> |
| 5306 | <text macro="label-part-number"/> |
| 5307 | <text macro="label-locator-all"/> |
| 5308 | </else-if> |
| 5309 | <else-if is-numeric="volume" locator="page"> |
| 5310 | <!-- separate a volume and page number with a colon (CMOS18 14.18) --> |
| 5311 | <group delimiter=":"> |
| 5312 | <text variable="volume"/> |
| 5313 | <text variable="locator"/> |
| 5314 | </group> |
| 5315 | </else-if> |
| 5316 | <else> |
| 5317 | <text macro="label-volume"/> |
| 5318 | <text macro="label-locator"/> |
| 5319 | </else> |
| 5320 | </choose> |
| 5321 | </group> |
| 5322 | </macro> |
| 5323 | <macro name="source-locator-subsequent-serial"> |
| 5324 | <group delimiter=", "> |
| 5325 | <choose> |
| 5326 | <if variable="part-number"> |
| 5327 | <!-- label page numbers when using multiple locators (CMOS18 14.50) --> |
| 5328 | <text macro="label-part-number"/> |
| 5329 | <text macro="label-locator-all"/> |
| 5330 | </if> |
| 5331 | <else> |
| 5332 | <text macro="label-locator"/> |
| 5333 | </else> |
| 5334 | </choose> |
| 5335 | </group> |
| 5336 | </macro> |
| 5337 | <!-- 4.8. Medium --> |
| 5338 | <macro name="source-medium-bib"> |
| 5339 | <group delimiter=", "> |
| 5340 | <text text-case="capitalize-first" variable="medium"/> |
| 5341 | <text variable="scale"/> |
| 5342 | <text variable="dimensions"/> |
| 5343 | </group> |
| 5344 | </macro> |
| 5345 | <macro name="source-medium-note"> |
| 5346 | <group delimiter=", "> |
| 5347 | <text variable="medium"/> |
| 5348 | <text variable="scale"/> |
| 5349 | <text variable="dimensions"/> |
| 5350 | </group> |
| 5351 | </macro> |
| 5352 | <!-- 4.9. Archival location --> |
| 5353 | <macro name="source-archive-bib"> |
| 5354 | <group delimiter=" "> |
| 5355 | <choose> |
| 5356 | <if type="graphic"> |
| 5357 | <text macro="source-archive-reference-institution-first"/> |
| 5358 | </if> |
| 5359 | <else> |
| 5360 | <text macro="source-archive-reference-location-first-bib"/> |
| 5361 | </else> |
| 5362 | </choose> |
| 5363 | <text macro="source-archive-database-number" prefix="(" suffix=")"/> |
| 5364 | </group> |
| 5365 | </macro> |
| 5366 | <macro name="source-archive-note"> |
| 5367 | <group delimiter=" "> |
| 5368 | <choose> |
| 5369 | <if type="graphic"> |
| 5370 | <text macro="source-archive-reference-institution-first"/> |
| 5371 | </if> |
| 5372 | <else> |
| 5373 | <text macro="source-archive-reference-location-first-note"/> |
| 5374 | </else> |
| 5375 | </choose> |
| 5376 | <text macro="source-archive-database-number" prefix="(" suffix=")"/> |
| 5377 | </group> |
| 5378 | </macro> |
| 5379 | <!-- Archival elements --> |
| 5380 | <macro name="source-archive-database-number"> |
| 5381 | <!-- database identifier, if not included elsewhere (CMOS18 14.113) --> |
| 5382 | <choose> |
| 5383 | <if match="any" variable="archive_collection archive_location archive-place"/> |
| 5384 | <!-- `number` never shown elsewhere with a thesis --> |
| 5385 | <else-if type="thesis"> |
| 5386 | <text variable="number"/> |
| 5387 | </else-if> |
| 5388 | <!-- `number` shown with `genre` --> |
| 5389 | <else-if match="any" type="dataset entry song" variable="genre"/> |
| 5390 | <else-if variable="archive"> |
| 5391 | <text variable="number"/> |
| 5392 | </else-if> |
| 5393 | </choose> |
| 5394 | </macro> |
| 5395 | <macro name="source-archive-locator"> |
| 5396 | <choose> |
| 5397 | <!-- physical locators with archival references appear after the shelfmark (CMOS18 14.127) --> |
| 5398 | <if locator="column" variable="archive archive_location"> |
| 5399 | <!-- archival locators must always be labelled to avoid confusion with `archive_location` (CMOS18 14.123) --> |
| 5400 | <text macro="label-locator-all"/> |
| 5401 | </if> |
| 5402 | <else-if locator="folio" variable="archive archive_location"> |
| 5403 | <text macro="label-locator-all"/> |
| 5404 | </else-if> |
| 5405 | <else-if locator="page" variable="archive archive_location"> |
| 5406 | <text macro="label-locator-all"/> |
| 5407 | </else-if> |
| 5408 | <else-if variable="archive archive_location page"> |
| 5409 | <choose> |
| 5410 | <if is-numeric="page"> |
| 5411 | <!-- TODO: remove this conditional when `page` parsing is fixed for different locator types --> |
| 5412 | <text macro="label-page"/> |
| 5413 | </if> |
| 5414 | <else> |
| 5415 | <text variable="page"/> |
| 5416 | </else> |
| 5417 | </choose> |
| 5418 | </else-if> |
| 5419 | </choose> |
| 5420 | </macro> |
| 5421 | <macro name="source-archive-reference-institution-first"> |
| 5422 | <!-- Archive (gallery) name first for art (CMOS18 14.133) --> |
| 5423 | <group delimiter=", "> |
| 5424 | <text variable="archive"/> |
| 5425 | <text variable="archive-place"/> |
| 5426 | <text variable="archive_collection"/> |
| 5427 | <text variable="archive_location"/> |
| 5428 | <text macro="source-archive-locator"/> |
| 5429 | </group> |
| 5430 | </macro> |
| 5431 | <macro name="source-archive-reference-location-first-bib"> |
| 5432 | <!-- Order of elements begins with the most specific (CMOS18 14.128) --> |
| 5433 | <group delimiter=". "> |
| 5434 | <group delimiter=", "> |
| 5435 | <text text-case="capitalize-first" variable="archive_location"/> |
| 5436 | <text macro="source-archive-locator"/> |
| 5437 | </group> |
| 5438 | <text variable="archive_collection"/> |
| 5439 | <group delimiter=", "> |
| 5440 | <text variable="archive"/> |
| 5441 | <text variable="archive-place"/> |
| 5442 | </group> |
| 5443 | </group> |
| 5444 | </macro> |
| 5445 | <macro name="source-archive-reference-location-first-note"> |
| 5446 | <!-- Order of elements begins with the most specific (CMOS18 14.127) --> |
| 5447 | <group delimiter=", "> |
| 5448 | <text variable="archive_location"/> |
| 5449 | <text macro="source-archive-locator"/> |
| 5450 | <text variable="archive_collection"/> |
| 5451 | <text variable="archive"/> |
| 5452 | <text variable="archive-place"/> |
| 5453 | </group> |
| 5454 | </macro> |
| 5455 | <!-- 4.10. URL or persistent identifier --> |
| 5456 | <macro name="source-date-accessed-DOI-URL-bib"> |
| 5457 | <group delimiter=". "> |
| 5458 | <choose> |
| 5459 | <if variable="DOI"/> |
| 5460 | <else-if match="any" variable="available-date event-date issued status"/> |
| 5461 | <else-if variable="accessed URL"> |
| 5462 | <group delimiter=" "> |
| 5463 | <text term="accessed" text-case="capitalize-first"/> |
| 5464 | <date form="text" variable="accessed"/> |
| 5465 | </group> |
| 5466 | </else-if> |
| 5467 | </choose> |
| 5468 | <text macro="source-DOI-URL"/> |
| 5469 | </group> |
| 5470 | </macro> |
| 5471 | <macro name="source-date-accessed-DOI-URL-note"> |
| 5472 | <group delimiter=", "> |
| 5473 | <choose> |
| 5474 | <if variable="DOI"/> |
| 5475 | <else-if match="any" variable="available-date event-date issued status"/> |
| 5476 | <else-if variable="accessed URL"> |
| 5477 | <group delimiter=" "> |
| 5478 | <text term="accessed"/> |
| 5479 | <date form="text" variable="accessed"/> |
| 5480 | </group> |
| 5481 | </else-if> |
| 5482 | </choose> |
| 5483 | <text macro="source-DOI-URL"/> |
| 5484 | </group> |
| 5485 | </macro> |
| 5486 | <macro name="source-DOI-URL"> |
| 5487 | <choose> |
| 5488 | <if variable="DOI"> |
| 5489 | <text prefix="https://doi.org/" variable="DOI"/> |
| 5490 | </if> |
| 5491 | <else-if variable="URL"> |
| 5492 | <text variable="URL"/> |
| 5493 | </else-if> |
| 5494 | </choose> |
| 5495 | </macro> |
| 5496 | <!-- 5. Notes --> |
| 5497 | <!-- TODO: add variables for distributor and exhibitions if available in CSL --> |
| 5498 | <!-- 6. Legal references: Bluebook style (shared with APA) --> |
| 5499 | <!-- Where APA or Chicago diverge from Bluebook, the official manual is followed --> |
| 5500 | <macro name="legal-reference"> |
| 5501 | <!-- Type usage: |
| 5502 | |
| 5503 | `bill` |
| 5504 | : bills, resolutions, federal reports |
| 5505 | |
| 5506 | `legal_case` |
| 5507 | : all legal and court cases |
| 5508 | |
| 5509 | `hearing` |
| 5510 | : hearings and testimony |
| 5511 | |
| 5512 | `legislation` |
| 5513 | : statutes, constitutional items, and charters |
| 5514 | |
| 5515 | `regulation` |
| 5516 | : codified regulations, uncodified regulations, executive orders |
| 5517 | |
| 5518 | `treaty` |
| 5519 | : treaties |
| 5520 | --> |
| 5521 | <group delimiter=", "> |
| 5522 | <choose> |
| 5523 | <if type="treaty"> |
| 5524 | <text macro="legal-title"/> |
| 5525 | <names variable="author"> |
| 5526 | <!-- Treaty parties should be included at least for bilateral treaties (Bluebook 21.4.2) --> |
| 5527 | <name delimiter="-" et-al-min="100" et-al-use-first="99" form="short" initialize="false"/> |
| 5528 | </names> |
| 5529 | <text macro="legal-date"/> |
| 5530 | <!-- treaty source/report in addition to URL (Bluebook 21.4.5) --> |
| 5531 | <text macro="legal-source"/> |
| 5532 | </if> |
| 5533 | <else> |
| 5534 | <group delimiter=" "> |
| 5535 | <group delimiter=", "> |
| 5536 | <text macro="legal-title"/> |
| 5537 | <text macro="legal-source"/> |
| 5538 | </group> |
| 5539 | <text macro="legal-date"/> |
| 5540 | <text macro="legal-identifier"/> |
| 5541 | </group> |
| 5542 | </else> |
| 5543 | </choose> |
| 5544 | <group delimiter=" "> |
| 5545 | <!-- locator for use in notes --> |
| 5546 | <choose> |
| 5547 | <if locator="page" variable="page"> |
| 5548 | <text term="at"/> |
| 5549 | </if> |
| 5550 | </choose> |
| 5551 | <text macro="label-locator"/> |
| 5552 | </group> |
| 5553 | </group> |
| 5554 | </macro> |
| 5555 | <!-- 6.1. Legal date --> |
| 5556 | <macro name="legal-date"> |
| 5557 | <choose> |
| 5558 | <if type="treaty"> |
| 5559 | <text macro="date-issued-full"/> |
| 5560 | </if> |
| 5561 | <else-if type="legal_case"> |
| 5562 | <text macro="legal-date-case"/> |
| 5563 | </else-if> |
| 5564 | <else-if match="any" type="bill hearing legislation regulation"> |
| 5565 | <group delimiter=" " prefix="(" suffix=")"> |
| 5566 | <group delimiter=" "> |
| 5567 | <text macro="date-original-year"/> |
| 5568 | <text form="symbol" term="and"/> |
| 5569 | </group> |
| 5570 | <choose> |
| 5571 | <if variable="issued"> |
| 5572 | <text macro="date-issued-year"/> |
| 5573 | </if> |
| 5574 | <else> |
| 5575 | <!-- Show proposal date for uncodified regulations. Assume date is entered literally ala "proposed May 23, 2016". --> |
| 5576 | <!-- TODO: Add `proposed` date here if that becomes available --> |
| 5577 | <date form="text" variable="submitted"/> |
| 5578 | </else> |
| 5579 | </choose> |
| 5580 | </group> |
| 5581 | </else-if> |
| 5582 | </choose> |
| 5583 | </macro> |
| 5584 | <macro name="legal-date-case"> |
| 5585 | <group delimiter=" " prefix="(" suffix=")"> |
| 5586 | <text variable="authority"/> |
| 5587 | <choose> |
| 5588 | <if variable="container-title"> |
| 5589 | <!-- Print only year for cases published in reporters--> |
| 5590 | <text macro="date-issued-year"/> |
| 5591 | </if> |
| 5592 | <else> |
| 5593 | <text macro="date-issued-full"/> |
| 5594 | </else> |
| 5595 | </choose> |
| 5596 | </group> |
| 5597 | </macro> |
| 5598 | <!-- 6.2.1. Legal title --> |
| 5599 | <macro name="legal-title"> |
| 5600 | <choose> |
| 5601 | <if match="any" type="bill legal_case legislation regulation treaty"> |
| 5602 | <text text-case="title" variable="title"/> |
| 5603 | </if> |
| 5604 | <else-if type="hearing"> |
| 5605 | <!-- use standard format (Bluebook 13.3) --> |
| 5606 | <group delimiter=": " font-style="italic"> |
| 5607 | <text text-case="capitalize-first" variable="title"/> |
| 5608 | <group delimiter=" "> |
| 5609 | <text term="hearing" text-case="capitalize-first"/> |
| 5610 | <group delimiter=" "> |
| 5611 | <text term="on"/> |
| 5612 | <text variable="number"/> |
| 5613 | </group> |
| 5614 | <group delimiter=" "> |
| 5615 | <text value="before the"/> |
| 5616 | <text variable="section"/> |
| 5617 | </group> |
| 5618 | </group> |
| 5619 | </group> |
| 5620 | </else-if> |
| 5621 | </choose> |
| 5622 | </macro> |
| 5623 | <!-- 6.2.2. Legal identifier --> |
| 5624 | <macro name="legal-identifier"> |
| 5625 | <group delimiter=" " prefix="(" suffix=")"> |
| 5626 | <choose> |
| 5627 | <if type="hearing"> |
| 5628 | <!-- Use the 'verb' form of the hearing term to hold 'testimony of' --> |
| 5629 | <text form="verb" term="hearing"/> |
| 5630 | <names variable="author"> |
| 5631 | <name and="symbol" initialize="false"/> |
| 5632 | </names> |
| 5633 | </if> |
| 5634 | <else-if match="any" type="bill legislation regulation"> |
| 5635 | <!-- For uncodified regulations, assume future code section is in `status`. --> |
| 5636 | <text variable="status"/> |
| 5637 | </else-if> |
| 5638 | </choose> |
| 5639 | </group> |
| 5640 | </macro> |
| 5641 | <macro name="legal-identifier-bill-report"> |
| 5642 | <group delimiter=" "> |
| 5643 | <text variable="genre"/> |
| 5644 | <choose> |
| 5645 | <if match="any" variable="authority chapter-number container-title"> |
| 5646 | <text variable="number"/> |
| 5647 | </if> |
| 5648 | <else> |
| 5649 | <!-- If there is no legislative body, session number, or code/record title, assume the item is a congressional report and include 'No.' label. --> |
| 5650 | <text macro="label-number-capitalized"/> |
| 5651 | </else> |
| 5652 | </choose> |
| 5653 | </group> |
| 5654 | </macro> |
| 5655 | <!-- 6.3. Legal source --> |
| 5656 | <macro name="legal-source"> |
| 5657 | <!-- Expect legal item `container-title` to be stored in short form --> |
| 5658 | <choose> |
| 5659 | <if type="bill"> |
| 5660 | <text macro="legal-source-bill"/> |
| 5661 | </if> |
| 5662 | <else-if type="hearing"> |
| 5663 | <text macro="legal-source-hearing"/> |
| 5664 | </else-if> |
| 5665 | <else-if type="legal_case"> |
| 5666 | <text macro="legal-source-case"/> |
| 5667 | </else-if> |
| 5668 | <else-if type="legislation"> |
| 5669 | <text macro="legal-source-legislation"/> |
| 5670 | </else-if> |
| 5671 | <else-if type="regulation"> |
| 5672 | <text macro="legal-source-regulation"/> |
| 5673 | </else-if> |
| 5674 | <else-if type="treaty"> |
| 5675 | <text macro="legal-source-treaty"/> |
| 5676 | </else-if> |
| 5677 | </choose> |
| 5678 | </macro> |
| 5679 | <!-- Legal source types --> |
| 5680 | <macro name="legal-source-bill"> |
| 5681 | <group delimiter=", "> |
| 5682 | <text macro="legal-identifier-bill-report"/> |
| 5683 | <group delimiter=" "> |
| 5684 | <text variable="authority"/> |
| 5685 | <!-- `chapter-number` is a session number --> |
| 5686 | <text variable="chapter-number"/> |
| 5687 | </group> |
| 5688 | <group delimiter=" "> |
| 5689 | <text variable="volume"/> |
| 5690 | <text variable="container-title"/> |
| 5691 | <text variable="page-first"/> |
| 5692 | </group> |
| 5693 | </group> |
| 5694 | </macro> |
| 5695 | <macro name="legal-source-case"> |
| 5696 | <group delimiter=" "> |
| 5697 | <choose> |
| 5698 | <if variable="container-title"> |
| 5699 | <text variable="volume"/> |
| 5700 | <text variable="container-title"/> |
| 5701 | <text macro="label-section-symbol"/> |
| 5702 | <choose> |
| 5703 | <if match="any" variable="page page-first"> |
| 5704 | <text variable="page-first"/> |
| 5705 | </if> |
| 5706 | <else> |
| 5707 | <text value="___"/> |
| 5708 | </else> |
| 5709 | </choose> |
| 5710 | </if> |
| 5711 | <else> |
| 5712 | <text macro="label-number-capitalized"/> |
| 5713 | </else> |
| 5714 | </choose> |
| 5715 | </group> |
| 5716 | </macro> |
| 5717 | <macro name="legal-source-hearing"> |
| 5718 | <group delimiter=" "> |
| 5719 | <text variable="authority"/> |
| 5720 | <!-- `chapter-number` is a session number --> |
| 5721 | <text variable="chapter-number"/> |
| 5722 | </group> |
| 5723 | </macro> |
| 5724 | <macro name="legal-source-legislation"> |
| 5725 | <choose> |
| 5726 | <if variable="number"> |
| 5727 | <!-- `number` is a public law number --> |
| 5728 | <group delimiter=", "> |
| 5729 | <group delimiter=" "> |
| 5730 | <choose> |
| 5731 | <if variable="genre"> |
| 5732 | <text text-case="capitalize-first" variable="genre"/> |
| 5733 | </if> |
| 5734 | <else> |
| 5735 | <text form="short" term="legislation" text-case="capitalize-first"/> |
| 5736 | </else> |
| 5737 | </choose> |
| 5738 | <text macro="label-number-capitalized"/> |
| 5739 | </group> |
| 5740 | <group delimiter=" "> |
| 5741 | <text variable="volume"/> |
| 5742 | <text variable="container-title"/> |
| 5743 | <text variable="page-first"/> |
| 5744 | </group> |
| 5745 | </group> |
| 5746 | </if> |
| 5747 | <else> |
| 5748 | <group delimiter=" "> |
| 5749 | <text variable="volume"/> |
| 5750 | <text variable="container-title"/> |
| 5751 | <choose> |
| 5752 | <if variable="section"> |
| 5753 | <text macro="label-section-symbol"/> |
| 5754 | </if> |
| 5755 | <else> |
| 5756 | <text variable="page-first"/> |
| 5757 | </else> |
| 5758 | </choose> |
| 5759 | </group> |
| 5760 | </else> |
| 5761 | </choose> |
| 5762 | </macro> |
| 5763 | <macro name="legal-source-regulation"> |
| 5764 | <group delimiter=", "> |
| 5765 | <group delimiter=" "> |
| 5766 | <text variable="genre"/> |
| 5767 | <text macro="label-number-capitalized"/> |
| 5768 | </group> |
| 5769 | <group delimiter=" "> |
| 5770 | <text variable="volume"/> |
| 5771 | <text variable="container-title"/> |
| 5772 | <choose> |
| 5773 | <if variable="section"> |
| 5774 | <text macro="label-section-symbol"/> |
| 5775 | </if> |
| 5776 | <else> |
| 5777 | <text variable="page-first"/> |
| 5778 | </else> |
| 5779 | </choose> |
| 5780 | </group> |
| 5781 | </group> |
| 5782 | </macro> |
| 5783 | <macro name="legal-source-treaty"> |
| 5784 | <group delimiter=" "> |
| 5785 | <number variable="volume"/> |
| 5786 | <text variable="container-title"/> |
| 5787 | <choose> |
| 5788 | <if match="any" variable="page page-first"> |
| 5789 | <text variable="page-first"/> |
| 5790 | </if> |
| 5791 | <else> |
| 5792 | <text macro="label-number-capitalized"/> |
| 5793 | </else> |
| 5794 | </choose> |
| 5795 | </group> |
| 5796 | </macro> |
| 5797 | <!-- Citation --> |
| 5798 | <macro name="citation-notes-full"> |
| 5799 | <group delimiter=", "> |
| 5800 | <choose> |
| 5801 | <if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 5802 | <!-- Legal items have different orders and delimiters --> |
| 5803 | <text macro="legal-reference"/> |
| 5804 | <text macro="source-date-accessed-DOI-URL-note"/> |
| 5805 | </if> |
| 5806 | <else-if type="personal_communication" variable="genre"> |
| 5807 | <text macro="author-note"/> |
| 5808 | <text macro="title-and-source-note"/> |
| 5809 | </else-if> |
| 5810 | <else-if type="personal_communication" variable="author recipient"> |
| 5811 | <group delimiter=" "> |
| 5812 | <text macro="author-note"/> |
| 5813 | <text macro="title-and-source-note"/> |
| 5814 | </group> |
| 5815 | </else-if> |
| 5816 | <else> |
| 5817 | <text macro="author-note"/> |
| 5818 | <text macro="title-and-source-note"/> |
| 5819 | </else> |
| 5820 | </choose> |
| 5821 | </group> |
| 5822 | </macro> |
| 5823 | <macro name="citation-notes-shortened-author-title"> |
| 5824 | <!-- Shortened note styles mirror the filtering approach of author-date --> |
| 5825 | <group delimiter=", "> |
| 5826 | <choose> |
| 5827 | <if match="any" variable="part-number volume"> |
| 5828 | <!-- comma always needed with volume/part --> |
| 5829 | <text macro="citation-notes-shortened-author-title-item"/> |
| 5830 | <text macro="source-locator-subsequent"/> |
| 5831 | </if> |
| 5832 | <else-if match="none" type="classic"> |
| 5833 | <text macro="citation-notes-shortened-author-title-item"/> |
| 5834 | <text macro="source-locator-subsequent"/> |
| 5835 | </else-if> |
| 5836 | <!-- with `classic`, a non-numeric canonical reference or identifying number is separated by a space rather than a comma (CMOS18 14.145) --> |
| 5837 | <else-if is-numeric="locator"> |
| 5838 | <text macro="citation-notes-shortened-author-title-item"/> |
| 5839 | <text macro="source-locator-subsequent"/> |
| 5840 | </else-if> |
| 5841 | <else-if locator="chapter line verse" match="any"> |
| 5842 | <group delimiter=" "> |
| 5843 | <text macro="citation-notes-shortened-author-title-item"/> |
| 5844 | <text macro="source-locator-subsequent"/> |
| 5845 | </group> |
| 5846 | </else-if> |
| 5847 | <else> |
| 5848 | <text macro="citation-notes-shortened-author-title-item"/> |
| 5849 | <text macro="source-locator-subsequent"/> |
| 5850 | </else> |
| 5851 | </choose> |
| 5852 | </group> |
| 5853 | </macro> |
| 5854 | <macro name="citation-notes-shortened-author-title-item"> |
| 5855 | <group delimiter=" "> |
| 5856 | <group delimiter=", "> |
| 5857 | <text macro="author-short"/> |
| 5858 | <choose> |
| 5859 | <if match="any" type="bill hearing legal_case legislation regulation treaty"/> |
| 5860 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 5861 | <group delimiter=" "> |
| 5862 | <choose> |
| 5863 | <if locator="sub-verbo"/> |
| 5864 | <!-- Only print reference entries use `sub-verbo` (CMOS18 14.131) --> |
| 5865 | <else-if match="any" variable="DOI URL"/> |
| 5866 | <else-if variable="container-title title"> |
| 5867 | <text form="short" term="sub-verbo"/> |
| 5868 | </else-if> |
| 5869 | </choose> |
| 5870 | <text macro="title-and-descriptions-short"/> |
| 5871 | </group> |
| 5872 | </else-if> |
| 5873 | <else> |
| 5874 | <text macro="title-and-descriptions-short"/> |
| 5875 | </else> |
| 5876 | </choose> |
| 5877 | <text macro="citation-notes-shortened-author-title-disambiguate"/> |
| 5878 | <choose> |
| 5879 | <!-- inaccessible `interview` or `personal_communication` uses in-text format (CMOS18 14.111): give the date at the first citation in shortened notes --> |
| 5880 | <if match="any" variable="archive archive-place container-title DOI number publisher references URL"/> |
| 5881 | <else-if position="first" type="interview"> |
| 5882 | <text macro="date-short"/> |
| 5883 | <text macro="source-medium-note"/> |
| 5884 | </else-if> |
| 5885 | <else-if position="first" type="personal_communication"> |
| 5886 | <text macro="source-medium-note"/> |
| 5887 | </else-if> |
| 5888 | </choose> |
| 5889 | <text macro="source-monographic-publication-short-unbracketed"/> |
| 5890 | </group> |
| 5891 | <text macro="source-monographic-publication-short-bracketed"/> |
| 5892 | </group> |
| 5893 | </macro> |
| 5894 | <macro name="citation-notes-shortened-author-title-disambiguate"> |
| 5895 | <!-- CMOS18 gives examples of added dates (CMOS18 14.13) and editors/translators, publisher, date (CMOS18 14.146) --> |
| 5896 | <group delimiter=", "> |
| 5897 | <choose> |
| 5898 | <if disambiguate="true"> |
| 5899 | <choose> |
| 5900 | <if disambiguate="true"> |
| 5901 | <text macro="label-version"/> |
| 5902 | <text macro="label-edition"/> |
| 5903 | </if> |
| 5904 | </choose> |
| 5905 | <names variable="editor-translator"> |
| 5906 | <label form="verb-short" suffix=" "/> |
| 5907 | <name and="text" form="short" initialize="true"/> |
| 5908 | <substitute> |
| 5909 | <names variable="editor"/> |
| 5910 | <names variable="translator"/> |
| 5911 | </substitute> |
| 5912 | </names> |
| 5913 | </if> |
| 5914 | </choose> |
| 5915 | </group> |
| 5916 | </macro> |
| 5917 | <citation disambiguate-add-givenname="true" disambiguate-add-names="true" et-al-min="4" et-al-use-first="1"> |
| 5918 | <layout delimiter="; " suffix="."> |
| 5919 | <choose> |
| 5920 | <if position="subsequent"> |
| 5921 | <text macro="citation-notes-shortened-author-title"/> |
| 5922 | </if> |
| 5923 | <else> |
| 5924 | <text macro="citation-notes-full"/> |
| 5925 | </else> |
| 5926 | </choose> |
| 5927 | </layout> |
| 5928 | </citation> |
| 5929 | <!-- Bibliography --> |
| 5930 | <macro name="bibliography-notes"> |
| 5931 | <group delimiter=". "> |
| 5932 | <choose> |
| 5933 | <if match="any" type="bill hearing legal_case legislation regulation treaty"> |
| 5934 | <!-- Legal items have different orders and delimiters --> |
| 5935 | <text macro="legal-reference"/> |
| 5936 | <text macro="source-date-accessed-DOI-URL-bib"/> |
| 5937 | <text variable="references"/> |
| 5938 | </if> |
| 5939 | <else> |
| 5940 | <text macro="author-bib"/> |
| 5941 | <text macro="title-and-source-bib"/> |
| 5942 | <text variable="references"/> |
| 5943 | </else> |
| 5944 | </choose> |
| 5945 | </group> |
| 5946 | </macro> |
| 5947 | <bibliography et-al-min="11" et-al-use-first="7" hanging-indent="true" subsequent-author-substitute="———"> |
| 5948 | <sort> |
| 5949 | <key macro="author-sort"/> |
| 5950 | <key macro="title-and-descriptions-bib"/> |
| 5951 | <key macro="source-bib"/> |
| 5952 | <key variable="volume"/> |
| 5953 | <key variable="part-number"/> |
| 5954 | <key variable="event-date"/> |
| 5955 | <key macro="source-date-issued-or-status"/> |
| 5956 | <key macro="source-archive-bib"/> |
| 5957 | </sort> |
| 5958 | <layout suffix="."> |
| 5959 | <choose> |
| 5960 | <if type="classic"> |
| 5961 | <choose> |
| 5962 | <if match="any" variable="archive editor translator publisher"> |
| 5963 | <text macro="bibliography-notes"/> |
| 5964 | </if> |
| 5965 | </choose> |
| 5966 | </if> |
| 5967 | <else-if match="any" type="entry entry-dictionary entry-encyclopedia"> |
| 5968 | <choose> |
| 5969 | <if variable="author"> |
| 5970 | <!-- Signed reference entries appear in the bibliography (CMOS18 14.132) --> |
| 5971 | <text macro="bibliography-notes"/> |
| 5972 | </if> |
| 5973 | </choose> |
| 5974 | </else-if> |
| 5975 | <else-if match="any" variable="archive archive-place container-title DOI number publisher references URL"> |
| 5976 | <text macro="bibliography-notes"/> |
| 5977 | </else-if> |
| 5978 | <!-- Personal communications only appear in the bibliography if the reader can retrieve them (CMOS18 14.13, 14.111) --> |
| 5979 | <else-if match="any" type="interview personal_communication"/> |
| 5980 | <!-- In note styles, the bibliography also omits inaccessible manuscripts (CMOS18 14.114), conference papers (new in CMOS18 14.115; included in CMOS17 14.217), and private documents (CMOS18 14.118) --> |
| 5981 | <else-if match="any" type="document manuscript"/> |
| 5982 | <else> |
| 5983 | <text macro="bibliography-notes"/> |
| 5984 | </else> |
| 5985 | </choose> |
| 5986 | </layout> |
| 5987 | </bibliography> |
| 5988 | </style> |