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