Fedster

Zotero style

Jul 15th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.36 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded">
  3. <info>
  4. <title>Luonnonvarakeskus (numeric, superscript)</title>
  5. <title-short>Luke (numeric)</title-short>
  6. <id>http://www.zotero.org/styles/Luke_numeric</id>
  7. <link href="http://www.zotero.org/styles/Luke_numeric" rel="self"/>
  8. <link href="http://www.zotero.org/styles/apa-numeric-superscript" rel="template"/>
  9. <link href="https://github.com/FedericoCalboli/Luke_numeric/tree/main" rel="documentation"/>
  10. <author>
  11. <name>Federico Calboli</name>
  12. <email>[email protected]</email>
  13. </author>
  14. <category citation-format="note"/>
  15. <category field="science"/>
  16. <category field="generic-base"/>
  17. <summary>Luke style, with superscript numeric in-text citations</summary>
  18. <updated>2025-02-06T18:45:37+00:00</updated>
  19. <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  20. </info>
  21. <locale xml:lang="en">
  22. <terms>
  23. <term name="editortranslator" form="short">
  24. <single>ed. &amp; trans.</single>
  25. <multiple>eds. &amp; trans.</multiple>
  26. </term>
  27. <term name="editor-translator" form="short">
  28. <single>ed. &amp; trans.</single>
  29. <multiple>eds. &amp; trans.</multiple>
  30. </term>
  31. <term name="translator" form="short">trans.</term>
  32. <term name="interviewer" form="short">
  33. <single>interviewer</single>
  34. <multiple>interviewers</multiple>
  35. </term>
  36. <term name="collection-editor" form="short">
  37. <single>ed.</single>
  38. <multiple>eds.</multiple>
  39. </term>
  40. <term name="performer" form="verb">recorded by</term>
  41. <term name="circa" form="short">ca.</term>
  42. <term name="bc"> B.C.E.</term>
  43. <term name="ad"> C.E.</term>
  44. <term name="issue" form="short">
  45. <single>issue</single>
  46. <multiple>issues</multiple>
  47. </term>
  48. <term name="software">computer software</term>
  49. <term name="at" form="short">before the</term>
  50. <term name="collection">archival collection</term>
  51. <term name="post">online post</term>
  52. <term name="at" form="short">before the</term>
  53. <term name="hearing" form="verb">testimony of</term>
  54. <term name="review-of" form="short">review of the</term>
  55. <term name="review-of" form="short">review of</term>
  56. </terms>
  57. </locale>
  58. <locale xml:lang="da">
  59. <terms>
  60. <term name="et-al">et al.</term>
  61. </terms>
  62. </locale>
  63. <locale xml:lang="de">
  64. <terms>
  65. <term name="et-al">et al.</term>
  66. </terms>
  67. </locale>
  68. <locale xml:lang="es">
  69. <terms>
  70. <term name="from">de</term>
  71. </terms>
  72. </locale>
  73. <locale xml:lang="fr">
  74. <terms>
  75. <term name="editor" form="short">
  76. <single>éd.</single>
  77. <multiple>éds.</multiple>
  78. </term>
  79. </terms>
  80. </locale>
  81. <locale xml:lang="nb">
  82. <terms>
  83. <term name="et-al">et al.</term>
  84. </terms>
  85. </locale>
  86. <locale xml:lang="nl">
  87. <terms>
  88. <term name="et-al">et al.</term>
  89. </terms>
  90. </locale>
  91. <locale xml:lang="nn">
  92. <terms>
  93. <term name="et-al">et al.</term>
  94. </terms>
  95. </locale>
  96. <locale xml:lang="ro">
  97. <terms>
  98. <term name="et-al">et al.</term>
  99. </terms>
  100. </locale>
  101. <macro name="author-bib">
  102. <group delimiter=" ">
  103. <names variable="composer" delimiter=", &amp; ">
  104. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never"/>
  105. <substitute>
  106. <names variable="author"/>
  107. <!-- Note: `narrator` only cited in secondary-contributors -->
  108. <names variable="illustrator"/>
  109. <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
  110. <choose>
  111. <if type="broadcast">
  112. <names variable="script-writer director">
  113. <!-- Note: Actors/performers and producers [not executive] not cited in APA style. -->
  114. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never"/>
  115. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  116. </names>
  117. </if>
  118. </choose>
  119. <names variable="director">
  120. <!-- For non-broadcast items, APA only cites directors and not writers. -->
  121. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never"/>
  122. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  123. </names>
  124. <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
  125. <names variable="guest host">
  126. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never"/>
  127. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  128. </names>
  129. <names variable="producer">
  130. <!-- Note: Producers not cited if there is a writer/director, but use if they are the principle creator. -->
  131. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never"/>
  132. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  133. </names>
  134. <choose>
  135. <if variable="container-title">
  136. <choose>
  137. <if type="book classic collection entry entry-dictionary entry-encyclopedia" match="any">
  138. <!-- Items with book-like container-title substitute with their title and parenthetical,
  139. but leave bracketed after container-title. This mimics the `container-booklike` formatting. -->
  140. <choose>
  141. <if variable="title">
  142. <group delimiter=" ">
  143. <text macro="title"/>
  144. <text macro="parenthetical"/>
  145. </group>
  146. </if>
  147. <else>
  148. <text macro="title-and-descriptions"/>
  149. </else>
  150. </choose>
  151. </if>
  152. </choose>
  153. </if>
  154. </choose>
  155. <names variable="executive-producer">
  156. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  157. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  158. </names>
  159. <names variable="series-creator">
  160. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  161. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  162. </names>
  163. <names variable="editor-translator">
  164. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  165. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  166. </names>
  167. <!-- Note: Translator is not cited as a primary creator (only as Ed. & Trans.). -->
  168. <names variable="editor">
  169. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  170. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  171. </names>
  172. <names variable="editorial-director">
  173. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  174. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  175. </names>
  176. <names variable="compiler">
  177. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  178. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  179. </names>
  180. <choose>
  181. <if type="event performance speech" match="any">
  182. <names variable="chair">
  183. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  184. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  185. </names>
  186. <names variable="organizer">
  187. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  188. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  189. </names>
  190. </if>
  191. </choose>
  192. <names variable="curator">
  193. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  194. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  195. </names>
  196. <names variable="collection-editor">
  197. <name et-al-min="3" et-al-use-first="1" form="short" name-as-sort-order="all" and="symbol" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
  198. <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  199. </names>
  200. <choose>
  201. <if variable="title">
  202. <!-- If an item has a title, substitute missing author with title and parenthetical, but leave bracketed
  203. after the date (in the 'title' position). -->
  204. <group delimiter=" ">
  205. <text macro="title"/>
  206. <text macro="parenthetical"/>
  207. </group>
  208. </if>
  209. <else>
  210. <!-- If an item has no title, substitute with bracketed followed by parenthetical. -->
  211. <text macro="title-and-descriptions"/>
  212. </else>
  213. </choose>
  214. </substitute>
  215. </names>
  216. <choose>
  217. <!-- Print "with" contributor for books, but not for other types that commonly have them (eg, thesis, software) -->
  218. <if type="book classic collection" match="any">
  219. <names variable="contributor" prefix="(" suffix=")">
  220. <label form="verb" suffix=" "/>
  221. <name name-as-sort-order="all" and="symbol" sort-separator=", " form="short" delimiter=", " delimiter-precedes-last="always"/>
  222. </names>
  223. </if>
  224. </choose>
  225. </group>
  226. </macro>
  227. <macro name="author-intext">
  228. <choose>
  229. <if type="bill hearing legal_case legislation regulation treaty" match="any">
  230. <text macro="title-intext"/>
  231. </if>
  232. <else-if type="interview personal_communication" match="any">
  233. <choose>
  234. <!-- These variables indicate that the letter is retrievable by the reader.
  235. If not, then use the APA in-text-only personal communication format -->
  236. <if variable="archive container-title DOI publisher URL" match="none">
  237. <group delimiter=", ">
  238. <names variable="author">
  239. <name and="symbol" delimiter=", " form="short"/>
  240. <substitute>
  241. <text macro="title-intext"/>
  242. </substitute>
  243. </names>
  244. <text term="personal-communication"/>
  245. </group>
  246. </if>
  247. <else>
  248. <names variable="author" delimiter=", ">
  249. <name form="short" and="symbol" delimiter=", "/>
  250. <substitute>
  251. <text macro="title-intext"/>
  252. </substitute>
  253. </names>
  254. </else>
  255. </choose>
  256. </else-if>
  257. <else>
  258. <names variable="composer" delimiter=" &amp; ">
  259. <name form="short" and="symbol" delimiter=", "/>
  260. <substitute>
  261. <names variable="author"/>
  262. <names variable="illustrator"/>
  263. <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
  264. <choose>
  265. <if type="broadcast">
  266. <names variable="script-writer director"/>
  267. </if>
  268. </choose>
  269. <names variable="director"/>
  270. <!-- TODO: Replace `delimiter` with `collapse` to combine names variables when that becomes available. -->
  271. <names variable="guest host"/>
  272. <names variable="producer"/>
  273. <choose>
  274. <if variable="container-title">
  275. <choose>
  276. <if type="book classic collection entry entry-dictionary entry-encyclopedia" match="any">
  277. <text macro="title-intext"/>
  278. </if>
  279. </choose>
  280. </if>
  281. </choose>
  282. <names variable="executive-producer"/>
  283. <names variable="series-creator"/>
  284. <names variable="editor"/>
  285. <names variable="editorial-director"/>
  286. <names variable="compiler"/>
  287. <choose>
  288. <if type="event performance speech" match="any">
  289. <names variable="chair"/>
  290. <names variable="organizer"/>
  291. </if>
  292. </choose>
  293. <names variable="curator"/>
  294. <text macro="title-intext"/>
  295. </substitute>
  296. </names>
  297. </else>
  298. </choose>
  299. </macro>
  300. <macro name="author-sort">
  301. <choose>
  302. <if type="bill hearing legal_case legislation regulation treaty" match="any">
  303. <text macro="title-legal"/>
  304. </if>
  305. <else>
  306. <text macro="author-bib"/>
  307. </else>
  308. </choose>
  309. </macro>
  310. <macro name="date-bib">
  311. <group delimiter=" " prefix="(" suffix=")">
  312. <choose>
  313. <if is-uncertain-date="issued">
  314. <text term="circa" form="short"/>
  315. </if>
  316. </choose>
  317. <group>
  318. <choose>
  319. <if variable="issued">
  320. <group delimiter=", ">
  321. <group>
  322. <date variable="issued" date-parts="year" form="numeric"/>
  323. <text variable="year-suffix"/>
  324. </group>
  325. <choose>
  326. <if type="article-magazine article-newspaper broadcast collection document event interview motion_picture pamphlet performance personal_communication post post-weblog song speech webpage" match="any">
  327. <!-- Many video and audio examples in manual give full dates. Err on the side of too much information. -->
  328. <date variable="issued">
  329. <date-part name="month"/>
  330. <date-part name="day" prefix=" "/>
  331. </date>
  332. </if>
  333. <else-if type="paper-conference">
  334. <!-- Capture 'speech' stored as 'paper-conference' -->
  335. <choose>
  336. <if variable="collection-editor compiler editor editorial-director issue page volume" match="none">
  337. <date variable="issued">
  338. <date-part name="month"/>
  339. <date-part name="day" prefix=" "/>
  340. </date>
  341. </if>
  342. </choose>
  343. </else-if>
  344. <!-- Only year: article article-journal book chapter classic entry entry-dictionary entry-encyclopedia dataset figure graphic
  345. manuscript map musical_score paper-conference[published] patent periodical report review review-book software standard thesis -->
  346. </choose>
  347. </group>
  348. </if>
  349. <else-if variable="status">
  350. <group>
  351. <!-- We print the status variable directly rather than using in-press, etc. terms. -->
  352. <text variable="status" text-case="lowercase"/>
  353. <text variable="year-suffix" prefix="-"/>
  354. </group>
  355. </else-if>
  356. <else>
  357. <text term="no date" form="short"/>
  358. <text variable="year-suffix" prefix="-"/>
  359. </else>
  360. </choose>
  361. </group>
  362. </group>
  363. </macro>
  364. <macro name="date-sort">
  365. <!-- This is necessary to ensure that citeproc sorts all item types chonologically in the same list. -->
  366. <choose>
  367. <if type="article article-journal book chapter entry entry-dictionary entry-encyclopedia dataset figure graphic manuscript map musical_score patent report review review-book thesis" match="any">
  368. <date variable="issued" date-parts="year" form="numeric"/>
  369. </if>
  370. <else-if type="paper-conference">
  371. <!-- Capture 'speech' stored as 'paper-conference' -->
  372. <choose>
  373. <if variable="collection-editor compiler editor editorial-director issue page volume" match="any">
  374. <date variable="issued" date-parts="year" form="numeric"/>
  375. </if>
  376. <else>
  377. <date variable="issued">
  378. <date-part name="year" form="short"/>
  379. <date-part name="month" form="numeric-leading-zeros"/>
  380. <date-part name="day" form="numeric-leading-zeros"/>
  381. </date>
  382. </else>
  383. </choose>
  384. </else-if>
  385. <else>
  386. <date variable="issued">
  387. <date-part name="year" form="short"/>
  388. <date-part name="month" form="numeric-leading-zeros"/>
  389. <date-part name="day" form="numeric-leading-zeros"/>
  390. </date>
  391. </else>
  392. </choose>
  393. </macro>
  394. <macro name="date-sort-group">
  395. <!-- APA sorts 1. no-date items, 2. items with dates, 3. in-press (status) items -->
  396. <choose>
  397. <if variable="issued">
  398. <text value="1"/>
  399. </if>
  400. <else-if variable="status">
  401. <text value="2"/>
  402. </else-if>
  403. <else>
  404. <text value="0"/>
  405. </else>
  406. </choose>
  407. </macro>
  408. <macro name="date-intext">
  409. <choose>
  410. <if variable="issued">
  411. <group delimiter="/">
  412. <group delimiter=" ">
  413. <choose>
  414. <if is-uncertain-date="original-date">
  415. <text term="circa" form="short"/>
  416. </if>
  417. </choose>
  418. <date variable="original-date">
  419. <date-part name="year"/>
  420. </date>
  421. </group>
  422. <group delimiter=" ">
  423. <choose>
  424. <if is-uncertain-date="issued">
  425. <text term="circa" form="short"/>
  426. </if>
  427. </choose>
  428. <group>
  429. <choose>
  430. <if type="interview personal_communication" match="any">
  431. <choose>
  432. <if variable="archive container-title DOI publisher URL" match="none">
  433. <!-- These variables indicate that the communication is retrievable by the reader.
  434. If not, then use the in-text-only personal communication format -->
  435. <date variable="issued" form="text"/>
  436. </if>
  437. <else>
  438. <date variable="issued">
  439. <date-part name="year"/>
  440. </date>
  441. </else>
  442. </choose>
  443. </if>
  444. <else>
  445. <date variable="issued">
  446. <date-part name="year"/>
  447. </date>
  448. </else>
  449. </choose>
  450. <text variable="year-suffix"/>
  451. </group>
  452. </group>
  453. </group>
  454. </if>
  455. <else-if variable="status">
  456. <!-- We print the status variable directly rather than using in-press, etc. terms. -->
  457. <text variable="status" text-case="lowercase"/>
  458. <text variable="year-suffix" prefix="-"/>
  459. </else-if>
  460. <else>
  461. <text term="no date" form="short"/>
  462. <text variable="year-suffix" prefix="-"/>
  463. </else>
  464. </choose>
  465. </macro>
  466. <!-- APA has two description elements following the title:
  467. title (parenthetical) [bracketed] -->
  468. <macro name="title-and-descriptions">
  469. <choose>
  470. <if variable="title">
  471. <group delimiter=" ">
  472. <text macro="title"/>
  473. <text macro="parenthetical"/>
  474. <text macro="bracketed"/>
  475. </group>
  476. </if>
  477. <else>
  478. <choose>
  479. <if type="bill report" match="any">
  480. <!-- Bills, resolutions, and congressional reports are not normalized and substitute bill number if no title. -->
  481. <!-- Can't distinguish congressional reports from other reports,
  482. but giving the genre and number seems fine for other reports too. -->
  483. <text macro="number"/>
  484. <text macro="bracketed"/>
  485. <text macro="parenthetical"/>
  486. </if>
  487. <else>
  488. <group delimiter=" ">
  489. <text macro="bracketed"/>
  490. <text macro="parenthetical"/>
  491. </group>
  492. </else>
  493. </choose>
  494. </else>
  495. </choose>
  496. </macro>
  497. <macro name="title">
  498. <choose>
  499. <if type="post webpage" match="any">
  500. <!-- Webpages are always normalized -->
  501. <text macro="title-plus-part-title" font-style="normal"/>
  502. </if>
  503. <!-- Other types are normalized based on presence of container-title.
  504. Assume that review and review-book are published in periodicals/blogs,
  505. not just on a web page (ex. 69) -->
  506. <else-if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="any">
  507. <text macro="periodical-title"/>
  508. </else-if>
  509. <else-if type="paper-conference">
  510. <!-- Treat paper-conference as book-like if it has an editor, otherwise as periodical-like -->
  511. <choose>
  512. <if variable="collection-editor compiler editor editorial-director" match="any">
  513. <text macro="booklike-title"/>
  514. </if>
  515. <else>
  516. <text macro="periodical-title"/>
  517. </else>
  518. </choose>
  519. </else-if>
  520. <else>
  521. <text macro="booklike-title"/>
  522. </else>
  523. </choose>
  524. </macro>
  525. <macro name="periodical-title">
  526. <!-- For periodicals, assume that part-number and part-title refer to the article and append to title -->
  527. <choose>
  528. <if variable="container-title" match="any">
  529. <text macro="title-plus-part-title"/>
  530. </if>
  531. <else>
  532. <!-- for periodical items without container titles, don't append volume-title to title -->
  533. <text macro="title-plus-part-title" font-style="normal"/>
  534. </else>
  535. </choose>
  536. </macro>
  537. <macro name="booklike-title">
  538. <!-- For book-like items, assume part-number and part-title refer to the book/volume. -->
  539. <choose>
  540. <if variable="container-title" match="any">
  541. <text variable="title"/>
  542. </if>
  543. <else>
  544. <!-- For book-like items without container titles and with volume-title, append volume-title to title (ex. 30) -->
  545. <text macro="title-plus-volume-title" font-style="normal"/>
  546. </else>
  547. </choose>
  548. </macro>
  549. <macro name="title-plus-part-title">
  550. <choose>
  551. <if variable="reviewed-author reviewed-genre reviewed-title" type="review review-book" match="any">
  552. <!-- If a review has no `reviewed-title`, assume that `title` contains the title of the reviewed work
  553. and omit it here; it is printed in the `reviewed-item` macro. -->
  554. <choose>
  555. <if variable="reviewed-title" match="none"/>
  556. <else>
  557. <group delimiter=": ">
  558. <text variable="title"/>
  559. <text macro="part-title"/>
  560. </group>
  561. </else>
  562. </choose>
  563. </if>
  564. <else>
  565. <group delimiter=": ">
  566. <text variable="title"/>
  567. <text macro="part-title"/>
  568. </group>
  569. </else>
  570. </choose>
  571. </macro>
  572. <macro name="part-title">
  573. <group delimiter=". ">
  574. <group delimiter=" ">
  575. <label variable="part-number" form="short" text-case="capitalize-first"/>
  576. <text variable="part-number"/>
  577. </group>
  578. <text variable="part-title" text-case="capitalize-first"/>
  579. </group>
  580. </macro>
  581. <macro name="title-plus-volume-title">
  582. <group delimiter=": ">
  583. <text variable="title"/>
  584. <text macro="volume-title"/>
  585. </group>
  586. </macro>
  587. <macro name="volume-title">
  588. <group delimiter=": ">
  589. <choose>
  590. <if variable="volume-title">
  591. <group delimiter=" ">
  592. <group delimiter=". ">
  593. <group delimiter=" ">
  594. <label variable="volume" form="short" text-case="capitalize-first"/>
  595. <text variable="volume"/>
  596. </group>
  597. <text variable="volume-title"/>
  598. </group>
  599. </group>
  600. </if>
  601. <else-if is-numeric="volume" match="none">
  602. <group delimiter=" ">
  603. <label variable="volume" form="short" text-case="capitalize-first"/>
  604. <text variable="volume"/>
  605. </group>
  606. </else-if>
  607. </choose>
  608. <!-- For book-like items, assume part-number and part-title refer to the book/volume. -->
  609. <text macro="part-title"/>
  610. </group>
  611. </macro>
  612. <macro name="title-intext">
  613. <choose>
  614. <if type="bill report">
  615. <!-- Bills, resolutions, and congressional reports are not normalized and substitute bill number if no title. -->
  616. <!-- Can't distinguish congressional reports from other reports,
  617. but giving the genre and number seems fine for other reports too. -->
  618. <choose>
  619. <if variable="title">
  620. <text variable="title" form="short" text-case="title"/>
  621. </if>
  622. <else>
  623. <group delimiter=" ">
  624. <text variable="genre"/>
  625. <group delimiter=" ">
  626. <choose>
  627. <if variable="chapter-number container-title" match="none">
  628. <label variable="number" form="short" text-case="capitalize-first"/>
  629. </if>
  630. </choose>
  631. <text variable="number"/>
  632. </group>
  633. </group>
  634. </else>
  635. </choose>
  636. </if>
  637. <else>
  638. <choose>
  639. <if variable="title" match="none">
  640. <text macro="bracketed-intext"/>
  641. </if>
  642. <else-if type="hearing">
  643. <!-- Hearings are normalized -->
  644. <text variable="title" form="short" font-style="normal" text-case="title"/>
  645. </else-if>
  646. <else-if type="legal_case" match="any">
  647. <!-- Cases are normalized -->
  648. <text variable="title" font-style="normal"/>
  649. </else-if>
  650. <else-if type="legislation regulation treaty" match="any">
  651. <!-- Legislation, regulations, and treaties not normalized or quoted -->
  652. <text variable="title" form="short" text-case="title"/>
  653. </else-if>
  654. <else-if type="post webpage" match="any">
  655. <!-- Webpages are always normalized -->
  656. <text variable="title" form="short" font-style="normal" text-case="title"/>
  657. </else-if>
  658. <else-if variable="container-title" match="any">
  659. <!-- Other types are normalized or quoted based on presence of container-title. As in title macro. -->
  660. <text variable="title" form="short" quotes="true" text-case="title"/>
  661. </else-if>
  662. <else>
  663. <text variable="title" form="short" font-style="normal" text-case="title"/>
  664. </else>
  665. </choose>
  666. </else>
  667. </choose>
  668. </macro>
  669. <macro name="parenthetical">
  670. <!-- (Secondary contributors; Database location; Genre no. 123; Report Series 123, Version, Edition, Volume, Page) -->
  671. <group prefix="(" suffix=")">
  672. <choose>
  673. <if type="patent">
  674. <!-- authority: U.S. ; genre: patent ; number: 123,445 -->
  675. <group delimiter=" ">
  676. <text variable="authority" form="short"/>
  677. <choose>
  678. <if variable="genre">
  679. <text variable="genre" text-case="capitalize-first"/>
  680. </if>
  681. <else>
  682. <text term="patent" text-case="capitalize-first"/>
  683. </else>
  684. </choose>
  685. <group delimiter=" ">
  686. <label variable="number" form="short" text-case="capitalize-first"/>
  687. <text variable="number"/>
  688. </group>
  689. </group>
  690. </if>
  691. <else-if type="post webpage" match="any">
  692. <!-- For post webpage, container-title is treated as publisher -->
  693. <group delimiter="; ">
  694. <text macro="secondary-contributors"/>
  695. <text macro="database-location"/>
  696. <text macro="number"/>
  697. <text macro="locators-booklike"/>
  698. </group>
  699. </else-if>
  700. <else-if type="report" match="any">
  701. <choose>
  702. <if variable="title" match="none">
  703. <!-- If there is no title, then genre and number are already printed as the title. -->
  704. <group delimiter="; ">
  705. <text macro="secondary-contributors"/>
  706. <text macro="database-location"/>
  707. <text macro="locators-booklike"/>
  708. </group>
  709. </if>
  710. <!-- If the report is a chapter in a larger report, then most parenthetical information is printed after the container. -->
  711. <else-if variable="container-title">
  712. <text macro="secondary-contributors"/>
  713. </else-if>
  714. <else>
  715. <group delimiter="; ">
  716. <text macro="secondary-contributors"/>
  717. <text macro="database-location"/>
  718. <text macro="number"/>
  719. <text macro="locators-booklike"/>
  720. </group>
  721. </else>
  722. </choose>
  723. </else-if>
  724. <else-if variable="container-title">
  725. <group delimiter="; ">
  726. <text macro="secondary-contributors"/>
  727. <choose>
  728. <if type="broadcast graphic map motion_picture song" match="any">
  729. <!-- For audiovisual media, number information comes after title, not container-title (ex. 94) -->
  730. <text macro="number"/>
  731. </if>
  732. </choose>
  733. </group>
  734. </else-if>
  735. <else>
  736. <group delimiter="; ">
  737. <text macro="secondary-contributors"/>
  738. <text macro="database-location"/>
  739. <text macro="number"/>
  740. <text macro="locators-booklike"/>
  741. </group>
  742. </else>
  743. </choose>
  744. </group>
  745. </macro>
  746. <macro name="parenthetical-container">
  747. <choose>
  748. <if variable="container-title" match="any">
  749. <group prefix="(" suffix=")">
  750. <group delimiter="; ">
  751. <text macro="database-location"/>
  752. <choose>
  753. <if type="broadcast graphic map motion_picture song" match="none">
  754. <!-- For audiovisual media, number information comes after title, not container-title (ex. 94) -->
  755. <text macro="number"/>
  756. </if>
  757. </choose>
  758. <text macro="locators-booklike"/>
  759. </group>
  760. </group>
  761. </if>
  762. </choose>
  763. </macro>
  764. <macro name="bracketed">
  765. <!-- [Descriptive information] -->
  766. <!-- If there is a number, genre is already printed in macro="number" -->
  767. <group prefix="[" suffix="]">
  768. <choose>
  769. <if variable="reviewed-author reviewed-genre reviewed-title" type="review review-book" match="any">
  770. <text macro="reviewed-item"/>
  771. </if>
  772. <else-if type="thesis">
  773. <!-- Thesis type and institution -->
  774. <group delimiter="; ">
  775. <choose>
  776. <if variable="number" match="none">
  777. <group delimiter=", ">
  778. <text variable="genre" text-case="capitalize-first"/>
  779. <choose>
  780. <if variable="archive DOI URL" match="any">
  781. <!-- Include the university in brackets if thesis is published -->
  782. <text variable="publisher"/>
  783. </if>
  784. </choose>
  785. </group>
  786. </if>
  787. </choose>
  788. <text variable="medium" text-case="capitalize-first"/>
  789. </group>
  790. </else-if>
  791. <else-if variable="interviewer" type="interview" match="any">
  792. <!-- Interview information -->
  793. <choose>
  794. <if variable="title">
  795. <text macro="format"/>
  796. </if>
  797. <else-if variable="genre">
  798. <group delimiter="; ">
  799. <group delimiter=" ">
  800. <text variable="genre" text-case="capitalize-first"/>
  801. <group delimiter=" ">
  802. <text term="container-author" form="verb"/>
  803. <names variable="interviewer">
  804. <name and="symbol" initialize-with=" " form="short"/>
  805. </names>
  806. </group>
  807. </group>
  808. </group>
  809. </else-if>
  810. <else-if variable="interviewer">
  811. <group delimiter="; ">
  812. <names variable="interviewer">
  813. <label form="verb" suffix=" " text-case="capitalize-first"/>
  814. <name and="symbol" initialize-with=" " form="short"/>
  815. </names>
  816. <text variable="medium" text-case="capitalize-first"/>
  817. </group>
  818. </else-if>
  819. <else>
  820. <text macro="format"/>
  821. </else>
  822. </choose>
  823. </else-if>
  824. <else-if type="personal_communication">
  825. <!-- Letter information -->
  826. <choose>
  827. <if variable="recipient">
  828. <group delimiter="; ">
  829. <group delimiter=" ">
  830. <choose>
  831. <if variable="number" match="none">
  832. <choose>
  833. <if variable="genre">
  834. <text variable="genre" text-case="capitalize-first"/>
  835. </if>
  836. <else-if variable="medium">
  837. <text variable="medium" text-case="capitalize-first"/>
  838. </else-if>
  839. <else>
  840. <text term="letter" text-case="capitalize-first"/>
  841. </else>
  842. </choose>
  843. </if>
  844. <else>
  845. <choose>
  846. <if variable="medium">
  847. <text variable="medium" text-case="capitalize-first"/>
  848. </if>
  849. <else>
  850. <text term="letter" text-case="capitalize-first"/>
  851. </else>
  852. </choose>
  853. </else>
  854. </choose>
  855. <names variable="recipient" delimiter=", ">
  856. <label form="verb" suffix=" "/>
  857. <name and="symbol" form="short"/>
  858. </names>
  859. </group>
  860. <choose>
  861. <if variable="genre" match="any">
  862. <choose>
  863. <if variable="number" match="none">
  864. <text variable="medium" text-case="capitalize-first"/>
  865. </if>
  866. </choose>
  867. </if>
  868. </choose>
  869. </group>
  870. </if>
  871. <else>
  872. <text macro="format"/>
  873. </else>
  874. </choose>
  875. </else-if>
  876. <else-if variable="composer" type="song" match="all">
  877. <!-- Performer of classical music works -->
  878. <group delimiter="; ">
  879. <choose>
  880. <if variable="number" match="none">
  881. <group delimiter=" ">
  882. <choose>
  883. <if variable="genre">
  884. <text variable="genre" text-case="capitalize-first"/>
  885. <group delimiter=" ">
  886. <text term="performer" form="verb"/>
  887. <names variable="author">
  888. <name and="symbol" initialize-with=" " form="short"/>
  889. <substitute>
  890. <names variable="performer"/>
  891. </substitute>
  892. </names>
  893. </group>
  894. </if>
  895. <else-if variable="medium">
  896. <text variable="medium" text-case="capitalize-first"/>
  897. <group delimiter=" ">
  898. <text term="performer" form="verb"/>
  899. <names variable="author">
  900. <name and="symbol" initialize-with=" " form="short"/>
  901. <substitute>
  902. <names variable="performer"/>
  903. </substitute>
  904. </names>
  905. </group>
  906. </else-if>
  907. <else>
  908. <text term="performer" form="verb" text-case="capitalize-first"/>
  909. <names variable="author">
  910. <name and="symbol" initialize-with=" " form="short"/>
  911. <substitute>
  912. <names variable="performer"/>
  913. </substitute>
  914. </names>
  915. </else>
  916. </choose>
  917. </group>
  918. </if>
  919. <else>
  920. <group delimiter=" ">
  921. <choose>
  922. <if variable="medium">
  923. <text variable="medium" text-case="capitalize-first"/>
  924. <group delimiter=" ">
  925. <text term="performer" form="verb"/>
  926. <names variable="author">
  927. <name and="symbol" initialize-with=" " form="short"/>
  928. <substitute>
  929. <names variable="performer"/>
  930. </substitute>
  931. </names>
  932. </group>
  933. </if>
  934. <else>
  935. <text term="performer" form="verb" text-case="capitalize-first"/>
  936. <names variable="author">
  937. <name and="symbol" initialize-with=" " form="short"/>
  938. <substitute>
  939. <names variable="performer"/>
  940. </substitute>
  941. </names>
  942. </else>
  943. </choose>
  944. </group>
  945. </else>
  946. </choose>
  947. <choose>
  948. <if variable="genre" match="any">
  949. <choose>
  950. <if variable="number" match="none">
  951. <text variable="medium" text-case="capitalize-first"/>
  952. </if>
  953. </choose>
  954. </if>
  955. </choose>
  956. </group>
  957. </else-if>
  958. <else-if variable="container-title" match="none">
  959. <!-- Other description -->
  960. <text macro="format"/>
  961. </else-if>
  962. <else>
  963. <!-- For conference presentations/performances/events, chapters in reports/standards/generic documents, software,
  964. place bracketed after the container title -->
  965. <choose>
  966. <if type="event paper-conference performance speech" match="any">
  967. <choose>
  968. <if variable="collection-editor compiler editor editorial-director issue page volume" match="any">
  969. <text macro="format"/>
  970. </if>
  971. </choose>
  972. </if>
  973. <else-if type="document report software standard" match="none">
  974. <text macro="format"/>
  975. </else-if>
  976. </choose>
  977. </else>
  978. </choose>
  979. </group>
  980. </macro>
  981. <macro name="bracketed-intext">
  982. <group prefix="[" suffix="]">
  983. <choose>
  984. <if variable="reviewed-title" match="any">
  985. <group delimiter=" ">
  986. <text term="review-of" text-case="capitalize-first"/>
  987. <text macro="reviewed-title-intext"/>
  988. </group>
  989. </if>
  990. <else-if variable="interviewer" type="interview" match="any">
  991. <names variable="interviewer">
  992. <label form="verb" suffix=" " text-case="capitalize-first"/>
  993. <name and="symbol" initialize-with=" " form="short"/>
  994. <substitute>
  995. <text macro="format-intext"/>
  996. </substitute>
  997. </names>
  998. </else-if>
  999. <else-if type="personal_communication">
  1000. <!-- Letter information -->
  1001. <choose>
  1002. <if variable="recipient">
  1003. <group delimiter=" ">
  1004. <choose>
  1005. <if variable="number" match="none">
  1006. <text variable="genre" text-case="capitalize-first"/>
  1007. </if>
  1008. <else>
  1009. <text term="letter" text-case="capitalize-first"/>
  1010. </else>
  1011. </choose>
  1012. <names variable="recipient" delimiter=", ">
  1013. <label form="verb" suffix=" "/>
  1014. <name and="symbol" delimiter=", "/>
  1015. </names>
  1016. </group>
  1017. </if>
  1018. <else>
  1019. <text macro="format-intext"/>
  1020. </else>
  1021. </choose>
  1022. </else-if>
  1023. <else>
  1024. <text macro="format-intext"/>
  1025. </else>
  1026. </choose>
  1027. </group>
  1028. </macro>
  1029. <macro name="reviewed-item">
  1030. <!-- Reviewed item -->
  1031. <group delimiter="; ">
  1032. <group delimiter=", ">
  1033. <group delimiter=" ">
  1034. <choose>
  1035. <if variable="reviewed-genre">
  1036. <group delimiter=" ">
  1037. <text term="review-of" form="long" text-case="capitalize-first"/>
  1038. <text variable="reviewed-genre" text-case="lowercase"/>
  1039. </group>
  1040. </if>
  1041. <!-- If no `reviewed-genre`, assume that `genre` or `medium` is entered as 'Review of the book' or similar -->
  1042. <else-if variable="number" match="none">
  1043. <choose>
  1044. <if variable="genre">
  1045. <text variable="genre" text-case="capitalize-first"/>
  1046. </if>
  1047. <else-if variable="medium">
  1048. <text variable="medium" text-case="capitalize-first"/>
  1049. </else-if>
  1050. <else-if type="review-book">
  1051. <group delimiter=" ">
  1052. <text term="review-of" form="long" text-case="capitalize-first"/>
  1053. <text term="book" form="long" text-case="lowercase"/>
  1054. </group>
  1055. </else-if>
  1056. <else>
  1057. <text term="review-of" form="short" text-case="capitalize-first"/>
  1058. </else>
  1059. </choose>
  1060. </else-if>
  1061. <else>
  1062. <choose>
  1063. <if variable="medium">
  1064. <text variable="medium" text-case="capitalize-first"/>
  1065. </if>
  1066. <else-if type="review-book">
  1067. <group delimiter=" ">
  1068. <text term="review-of" form="short" text-case="capitalize-first"/>
  1069. <text term="book" form="long" text-case="lowercase"/>
  1070. </group>
  1071. </else-if>
  1072. <else>
  1073. <text term="review-of" form="short" text-case="capitalize-first"/>
  1074. </else>
  1075. </choose>
  1076. </else>
  1077. </choose>
  1078. <text macro="reviewed-title"/>
  1079. </group>
  1080. <names variable="reviewed-author">
  1081. <label form="verb-short" suffix=" "/>
  1082. <name and="symbol" initialize-with=" " form="short"/>
  1083. </names>
  1084. </group>
  1085. <choose>
  1086. <if variable="genre" match="any">
  1087. <choose>
  1088. <if variable="number" match="none">
  1089. <text variable="medium" text-case="capitalize-first"/>
  1090. </if>
  1091. </choose>
  1092. </if>
  1093. </choose>
  1094. </group>
  1095. </macro>
  1096. <macro name="bracketed-container">
  1097. <group prefix="[" suffix="]">
  1098. <choose>
  1099. <if type="event paper-conference performance speech" match="any">
  1100. <!-- Conference presentations should describe the session [container] in bracketed unless published in a proceedings -->
  1101. <choose>
  1102. <if variable="collection-editor compiler editor editorial-director issue page volume" match="none">
  1103. <text macro="format"/>
  1104. </if>
  1105. </choose>
  1106. </if>
  1107. <else-if type="software" match="all">
  1108. <!-- For entries in mobile app reference works, place bracketed after the container-title -->
  1109. <text macro="format"/>
  1110. </else-if>
  1111. <else-if type="document report standard">
  1112. <!-- For chapters in report, standards, and generic documents, place bracketed after the container title -->
  1113. <text macro="format"/>
  1114. </else-if>
  1115. </choose>
  1116. </group>
  1117. </macro>
  1118. <macro name="secondary-contributors">
  1119. <choose>
  1120. <if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="any">
  1121. <text macro="secondary-contributors-periodical"/>
  1122. </if>
  1123. <else-if type="paper-conference">
  1124. <choose>
  1125. <if variable="collection-editor compiler editor editorial-director" match="any">
  1126. <text macro="secondary-contributors-booklike"/>
  1127. </if>
  1128. <else>
  1129. <text macro="secondary-contributors-periodical"/>
  1130. </else>
  1131. </choose>
  1132. </else-if>
  1133. <else>
  1134. <text macro="secondary-contributors-booklike"/>
  1135. </else>
  1136. </choose>
  1137. </macro>
  1138. <macro name="secondary-contributors-periodical">
  1139. <group delimiter="; ">
  1140. <choose>
  1141. <if variable="title">
  1142. <names variable="interviewer" delimiter="; ">
  1143. <name and="symbol" initialize-with=" " delimiter=", "/>
  1144. <label form="short" prefix=", " text-case="title"/>
  1145. </names>
  1146. </if>
  1147. </choose>
  1148. <names variable="translator narrator" delimiter="; ">
  1149. <name and="symbol" initialize-with=" " form="short"/>
  1150. <label form="short" prefix=", " text-case="title"/>
  1151. </names>
  1152. </group>
  1153. </macro>
  1154. <macro name="secondary-contributors-booklike">
  1155. <group delimiter="; ">
  1156. <choose>
  1157. <if variable="title">
  1158. <names variable="interviewer">
  1159. <name and="symbol" initialize-with=" " form="short"/>
  1160. <label form="short" prefix=", " text-case="title"/>
  1161. </names>
  1162. </if>
  1163. </choose>
  1164. <choose>
  1165. <if type="post webpage" match="none">
  1166. <!-- Webpages treat container-title like publisher -->
  1167. <group delimiter="; ">
  1168. <names variable="illustrator narrator" delimiter="; ">
  1169. <name and="symbol" initialize-with=" " form="short"/>
  1170. <label form="short" prefix=", " text-case="title"/>
  1171. </names>
  1172. <choose>
  1173. <if variable="container-title" match="none">
  1174. <group delimiter="; ">
  1175. <names variable="container-author">
  1176. <label form="verb-short" suffix=" " text-case="title"/>
  1177. <name and="symbol" initialize-with=" " form="short"/>
  1178. </names>
  1179. <names variable="editor translator" delimiter="; ">
  1180. <name and="symbol" initialize-with=" " form="short"/>
  1181. <label form="short" prefix=", " text-case="title"/>
  1182. </names>
  1183. <names variable="compiler chair organizer curator series-creator executive-producer" delimiter="; ">
  1184. <name and="symbol" initialize-with=" " form="short"/>
  1185. <label form="short" prefix=", " text-case="title"/>
  1186. </names>
  1187. </group>
  1188. </if>
  1189. <else>
  1190. <choose>
  1191. <!-- TODO: Check logic once processors start to automatically populate editor-translator. -->
  1192. <if variable="editor-translator" match="none">
  1193. <names variable="translator" delimiter="; ">
  1194. <name and="symbol" initialize-with=" " form="short"/>
  1195. <label form="short" prefix=", " text-case="title"/>
  1196. </names>
  1197. </if>
  1198. </choose>
  1199. </else>
  1200. </choose>
  1201. </group>
  1202. </if>
  1203. <else>
  1204. <group delimiter="; ">
  1205. <names variable="container-author">
  1206. <label form="verb-short" suffix=" " text-case="title"/>
  1207. <name and="symbol" initialize-with=" " form="short"/>
  1208. </names>
  1209. <names variable="editor translator" delimiter="; ">
  1210. <name and="symbol" initialize-with=" " form="short"/>
  1211. <label form="short" prefix=", " text-case="title"/>
  1212. </names>
  1213. <names variable="illustrator narrator" delimiter="; ">
  1214. <name and="symbol" initialize-with=" " form="short"/>
  1215. <label form="short" prefix=", " text-case="title"/>
  1216. </names>
  1217. <names variable="compiler chair organizer curator series-creator executive-producer" delimiter="; ">
  1218. <name and="symbol" initialize-with=" " form="short"/>
  1219. <label form="short" prefix=", " text-case="title"/>
  1220. </names>
  1221. </group>
  1222. </else>
  1223. </choose>
  1224. </group>
  1225. </macro>
  1226. <macro name="database-location">
  1227. <choose>
  1228. <if variable="archive-place" match="none">
  1229. <!-- With `archive-place`: physical archives. Without: online archives. -->
  1230. <text variable="archive_location"/>
  1231. </if>
  1232. </choose>
  1233. </macro>
  1234. <macro name="number">
  1235. <choose>
  1236. <if variable="number">
  1237. <group delimiter=", ">
  1238. <group delimiter=" ">
  1239. <text variable="genre" text-case="title"/>
  1240. <group delimiter=" ">
  1241. <label variable="number" form="short" text-case="capitalize-first"/>
  1242. <text variable="number"/>
  1243. </group>
  1244. </group>
  1245. <choose>
  1246. <if type="thesis">
  1247. <choose>
  1248. <!-- Include the university in brackets if thesis is published -->
  1249. <if variable="archive DOI URL" match="any">
  1250. <text variable="publisher"/>
  1251. </if>
  1252. </choose>
  1253. </if>
  1254. </choose>
  1255. </group>
  1256. </if>
  1257. </choose>
  1258. </macro>
  1259. <macro name="locators-booklike">
  1260. <choose>
  1261. <if type="article-journal article-magazine article-newspaper broadcast event interview patent performance periodical post post-weblog review review-book speech webpage" match="any"/>
  1262. <else-if type="paper-conference">
  1263. <choose>
  1264. <if variable="collection-editor compiler editor editorial-director" match="any">
  1265. <group delimiter=", ">
  1266. <text macro="version"/>
  1267. <text macro="edition"/>
  1268. <text macro="volume-booklike"/>
  1269. </group>
  1270. </if>
  1271. </choose>
  1272. </else-if>
  1273. <else>
  1274. <group delimiter=", ">
  1275. <text macro="version"/>
  1276. <text macro="edition"/>
  1277. <text macro="volume-booklike"/>
  1278. </group>
  1279. </else>
  1280. </choose>
  1281. </macro>
  1282. <macro name="version">
  1283. <group delimiter=" ">
  1284. <label variable="version" text-case="capitalize-first"/>
  1285. <text variable="version"/>
  1286. </group>
  1287. </macro>
  1288. <macro name="edition">
  1289. <choose>
  1290. <if is-numeric="edition">
  1291. <group delimiter=" ">
  1292. <number variable="edition" form="ordinal"/>
  1293. <label variable="edition" form="short"/>
  1294. </group>
  1295. </if>
  1296. <else>
  1297. <text variable="edition"/>
  1298. </else>
  1299. </choose>
  1300. </macro>
  1301. <macro name="volume-booklike">
  1302. <group delimiter=", ">
  1303. <!-- Report series [ex. 52] -->
  1304. <choose>
  1305. <if type="document report standard">
  1306. <group delimiter=" ">
  1307. <text variable="collection-title" text-case="title"/>
  1308. <text variable="collection-number"/>
  1309. </group>
  1310. </if>
  1311. </choose>
  1312. <group delimiter=" ">
  1313. <label variable="supplement-number" text-case="capitalize-first"/>
  1314. <text variable="supplement-number"/>
  1315. </group>
  1316. <choose>
  1317. <if variable="volume" match="any">
  1318. <choose>
  1319. <!-- Non-numeric volumes are already printed as part of the book title -->
  1320. <if variable="volume-title"/>
  1321. <else-if is-numeric="volume" match="none"/>
  1322. <else>
  1323. <group delimiter=" ">
  1324. <label variable="volume" form="short" text-case="capitalize-first"/>
  1325. <number variable="volume" form="numeric"/>
  1326. </group>
  1327. </else>
  1328. </choose>
  1329. </if>
  1330. <else>
  1331. <group>
  1332. <label variable="number-of-volumes" form="short" text-case="capitalize-first" suffix=" "/>
  1333. <text term="page-range-delimiter" prefix="1"/>
  1334. <number variable="number-of-volumes" form="numeric"/>
  1335. </group>
  1336. </else>
  1337. </choose>
  1338. <group delimiter=" ">
  1339. <label variable="issue" text-case="capitalize-first"/>
  1340. <text variable="issue"/>
  1341. </group>
  1342. <group delimiter=" ">
  1343. <label variable="page" form="short" suffix=" "/>
  1344. <text variable="page"/>
  1345. </group>
  1346. </group>
  1347. </macro>
  1348. <macro name="reviewed-title">
  1349. <choose>
  1350. <if variable="reviewed-title">
  1351. <!-- Not possible to distinguish TV series episode from other reviewed
  1352. works without reviewed-container-title [Ex. 69] -->
  1353. <!-- Adapt for reviewed-container-title if that becomes available -->
  1354. <text variable="reviewed-title" font-style="normal"/>
  1355. </if>
  1356. <else>
  1357. <!-- Assume title is title of reviewed work -->
  1358. <text variable="title" font-style="normal"/>
  1359. </else>
  1360. </choose>
  1361. </macro>
  1362. <macro name="reviewed-title-intext">
  1363. <choose>
  1364. <if variable="reviewed-title">
  1365. <!-- Not possible to distinguish TV series episode from other reviewed
  1366. works without reviewed-container-title [Ex. 69] -->
  1367. <!-- Adapt for reviewed-container-title if that becomes available -->
  1368. <text variable="reviewed-title" form="short" font-style="normal" text-case="title"/>
  1369. </if>
  1370. <else>
  1371. <!-- Assume title is title of reviewed work -->
  1372. <text variable="title" form="short" font-style="normal" text-case="title"/>
  1373. </else>
  1374. </choose>
  1375. </macro>
  1376. <macro name="format">
  1377. <choose>
  1378. <if variable="genre medium" match="any">
  1379. <group delimiter="; ">
  1380. <choose>
  1381. <if variable="number" match="none">
  1382. <text variable="genre" text-case="capitalize-first"/>
  1383. </if>
  1384. </choose>
  1385. <text variable="medium" text-case="capitalize-first"/>
  1386. </group>
  1387. </if>
  1388. <else>
  1389. <text macro="generic-type-label"/>
  1390. </else>
  1391. </choose>
  1392. </macro>
  1393. <macro name="format-intext">
  1394. <choose>
  1395. <if variable="genre" match="any">
  1396. <text variable="genre" text-case="capitalize-first"/>
  1397. </if>
  1398. <else-if variable="medium">
  1399. <text variable="medium" text-case="capitalize-first"/>
  1400. </else-if>
  1401. <else>
  1402. <text macro="generic-type-label"/>
  1403. </else>
  1404. </choose>
  1405. </macro>
  1406. <macro name="generic-type-label">
  1407. <!-- Generic labels for specific types -->
  1408. <choose>
  1409. <if type="dataset">
  1410. <text term="dataset" text-case="capitalize-first"/>
  1411. </if>
  1412. <else-if type="software">
  1413. <text term="software" text-case="capitalize-first"/>
  1414. </else-if>
  1415. <else-if type="interview personal_communication" match="any">
  1416. <choose>
  1417. <if variable="archive container-title DOI publisher URL" match="none">
  1418. <text term="personal-communication" text-case="capitalize-first"/>
  1419. </if>
  1420. <else-if type="interview">
  1421. <text term="interview" text-case="capitalize-first"/>
  1422. </else-if>
  1423. </choose>
  1424. </else-if>
  1425. <else-if type="map">
  1426. <text term="map" text-case="capitalize-first"/>
  1427. </else-if>
  1428. <else-if type="collection">
  1429. <text term="collection" text-case="capitalize-first"/>
  1430. </else-if>
  1431. <else-if type="song">
  1432. <text term="song" text-case="capitalize-first"/>
  1433. </else-if>
  1434. <else-if type="motion_picture">
  1435. <text term="motion_picture" text-case="capitalize-first"/>
  1436. </else-if>
  1437. <else-if type="post">
  1438. <text term="post" text-case="capitalize-first"/>
  1439. </else-if>
  1440. <else-if type="review">
  1441. <text term="review" text-case="capitalize-first"/>
  1442. </else-if>
  1443. <else-if type="review-book">
  1444. <text term="review-book" text-case="capitalize-first"/>
  1445. </else-if>
  1446. <else-if type="broadcast">
  1447. <text term="broadcast" text-case="capitalize-first"/>
  1448. </else-if>
  1449. <else-if type="figure">
  1450. <text term="figure" text-case="capitalize-first"/>
  1451. </else-if>
  1452. <else-if type="graphic">
  1453. <text term="graphic" text-case="capitalize-first"/>
  1454. </else-if>
  1455. </choose>
  1456. </macro>
  1457. <!-- APA 'source' element contains four parts:
  1458. container, event, publisher, access -->
  1459. <macro name="container">
  1460. <choose>
  1461. <if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="any">
  1462. <!-- Periodical items -->
  1463. <text macro="container-periodical"/>
  1464. </if>
  1465. <else-if type="paper-conference">
  1466. <!-- Determine if paper-conference is a periodical- or book-like -->
  1467. <choose>
  1468. <if variable="editor editorial-director collection-editor container-author" match="any">
  1469. <text macro="container-booklike"/>
  1470. </if>
  1471. <else>
  1472. <text macro="container-periodical"/>
  1473. </else>
  1474. </choose>
  1475. </else-if>
  1476. <else-if type="post webpage" match="none">
  1477. <!-- post and webpage treat container-title like publisher -->
  1478. <text macro="container-booklike"/>
  1479. </else-if>
  1480. </choose>
  1481. </macro>
  1482. <macro name="container-periodical">
  1483. <group delimiter=". ">
  1484. <group delimiter="">
  1485. <text variable="container-title" form="short" font-style="italic" text-case="title" strip-periods="true" suffix=" "/>
  1486. <choose>
  1487. <if variable="volume">
  1488. <group>
  1489. <text variable="volume" form="long" font-style="normal" font-weight="bold" suffix=":"/>
  1490. </group>
  1491. </if>
  1492. <else>
  1493. <text variable="issue" font-style="normal"/>
  1494. </else>
  1495. </choose>
  1496. <choose>
  1497. <if variable="number">
  1498. <!-- Ex. 6: Journal article with article number or eLocator -->
  1499. <group delimiter=" ">
  1500. <text term="article-locator" text-case="capitalize-first"/>
  1501. <text variable="number"/>
  1502. </group>
  1503. </if>
  1504. <else>
  1505. <text variable="page"/>
  1506. </else>
  1507. </choose>
  1508. </group>
  1509. <choose>
  1510. <if variable="issued">
  1511. <choose>
  1512. <if variable="issue number page volume" match="none">
  1513. <!-- We print the status variable directly rather than using in-press, etc. terms. -->
  1514. <text variable="status" text-case="capitalize-first"/>
  1515. </if>
  1516. </choose>
  1517. </if>
  1518. </choose>
  1519. </group>
  1520. </macro>
  1521. <macro name="container-booklike">
  1522. <choose>
  1523. <if variable="container-title" match="any">
  1524. <group delimiter=" ">
  1525. <choose>
  1526. <if type="song">
  1527. <text term="on" text-case="capitalize-first"/>
  1528. </if>
  1529. <else>
  1530. <text term="in" text-case="capitalize-first"/>
  1531. </else>
  1532. </choose>
  1533. <group delimiter=", ">
  1534. <names variable="executive-producer">
  1535. <name and="symbol" initialize-with=" " delimiter=", "/>
  1536. <label form="short" text-case="title" prefix=" (" suffix=")"/>
  1537. <substitute>
  1538. <names variable="series-creator"/>
  1539. <names variable="editor-translator">
  1540. <name and="symbol" initialize-with=" " delimiter=", "/>
  1541. <label form="short" text-case="title" prefix=" (" suffix=")"/>
  1542. </names>
  1543. <!-- TODO: Translator omitted here on the assumption that editor-translators are uncommon
  1544. for chapter citations. If needed, direct entry or automatic population of
  1545. `editor-translator` can produce combined labels. -->
  1546. <names variable="editor">
  1547. <name and="symbol" initialize-with=" " form="short"/>
  1548. <label form="short" text-case="title" prefix=" (" suffix=")"/>
  1549. </names>
  1550. <names variable="editorial-director">
  1551. <name and="symbol" initialize-with=" " form="short"/>
  1552. <label form="short" text-case="title" prefix=" (" suffix=")"/>
  1553. </names>
  1554. <names variable="compiler"/>
  1555. <choose>
  1556. <if type="event performance speech" match="any">
  1557. <names variable="chair"/>
  1558. <names variable="organizer"/>
  1559. </if>
  1560. </choose>
  1561. <names variable="curator"/>
  1562. <names variable="collection-editor">
  1563. <name and="symbol" initialize-with=" " form="short"/>
  1564. <label form="short" text-case="title" prefix=" (" suffix=")"/>
  1565. </names>
  1566. <names variable="container-author"/>
  1567. </substitute>
  1568. </names>
  1569. <group delimiter=": " font-style="normal">
  1570. <text variable="container-title" form="short" font-style="italic" strip-periods="true" suffix=" "/>
  1571. <text macro="volume-title"/>
  1572. </group>
  1573. </group>
  1574. <text macro="parenthetical-container"/>
  1575. <text macro="bracketed-container"/>
  1576. </group>
  1577. </if>
  1578. </choose>
  1579. </macro>
  1580. <macro name="publisher">
  1581. <group delimiter="; ">
  1582. <choose>
  1583. <if type="thesis">
  1584. <choose>
  1585. <if variable="archive DOI URL" match="none">
  1586. <text variable="publisher"/>
  1587. </if>
  1588. </choose>
  1589. </if>
  1590. <else-if type="post webpage" match="any">
  1591. <!-- For websites, treat container title like publisher -->
  1592. <group delimiter="; ">
  1593. <text variable="container-title" form="short" text-case="title" suffix=" " strip-periods="true" font-style="italic"/>
  1594. <text variable="publisher"/>
  1595. </group>
  1596. </else-if>
  1597. <else-if type="paper-conference">
  1598. <!-- For paper-conference, don't print publisher if in a journal-like proceedings -->
  1599. <choose>
  1600. <if variable="collection-editor compiler editor editorial-director" match="any">
  1601. <text variable="publisher"/>
  1602. </if>
  1603. </choose>
  1604. </else-if>
  1605. <else-if type="article-journal article-magazine article-newspaper periodical post-weblog review review-book" match="none">
  1606. <text variable="publisher"/>
  1607. </else-if>
  1608. </choose>
  1609. <group delimiter=", ">
  1610. <choose>
  1611. <if variable="archive-place">
  1612. <!-- With `archive-place`: physical archives. Without: online archives. -->
  1613. <!-- For physical archives, print the location before the archive name.
  1614. For electronic archives, these are printed in macro="description". -->
  1615. <!-- Must test for archive_collection:
  1616. With collection: archive_collection (archive_location), archive, archive-place
  1617. No collection: archive (archive_location), archive-place
  1618. -->
  1619. <choose>
  1620. <if variable="archive_collection">
  1621. <group delimiter=" ">
  1622. <text variable="archive_collection"/>
  1623. <text variable="archive_location" prefix="(" suffix=")"/>
  1624. </group>
  1625. <text variable="archive"/>
  1626. <text variable="archive-place"/>
  1627. </if>
  1628. <else>
  1629. <group delimiter=" ">
  1630. <text variable="archive"/>
  1631. <text variable="archive_location" prefix="(" suffix=")"/>
  1632. </group>
  1633. <text variable="archive-place"/>
  1634. </else>
  1635. </choose>
  1636. </if>
  1637. <else>
  1638. <text variable="archive"/>
  1639. </else>
  1640. </choose>
  1641. </group>
  1642. </group>
  1643. </macro>
  1644. <!-- <macro name="access">
  1645. <choose>
  1646. <if variable="DOI" match="any">
  1647. <text variable="DOI" prefix="https://doi.org/"/>
  1648. </if>
  1649. <else-if variable="URL">
  1650. <group delimiter=" ">
  1651. <choose>
  1652. <if variable="issued status" match="none">
  1653. <group delimiter=" ">
  1654. <text term="retrieved" text-case="capitalize-first"/>
  1655. <date variable="accessed" form="text" suffix=","/>
  1656. <text term="from"/>
  1657. </group>
  1658. </if>
  1659. </choose>
  1660. <text variable="URL"/>
  1661. </group>
  1662. </else-if>
  1663. </choose>
  1664. </macro> -->
  1665. <macro name="event">
  1666. <choose>
  1667. <if variable="event event-title" match="any">
  1668. <!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to
  1669. both publisher-place and event-place. Remove this 'choose' when that is changed. -->
  1670. <choose>
  1671. <if type="paper-conference">
  1672. <choose>
  1673. <if variable="collection-editor compiler editor editorial-director issue page volume" match="none">
  1674. <!-- Don't print event info for conference papers published in a proceedings -->
  1675. <group delimiter=", ">
  1676. <text macro="event-title"/>
  1677. <text variable="event-place"/>
  1678. </group>
  1679. </if>
  1680. </choose>
  1681. </if>
  1682. <else>
  1683. <!-- For other item types, print event info even if published (e.g., for collection catalogs, performance programs.
  1684. These items aren't given explicit examples in the APA manual, so err on the side of providing too much information. -->
  1685. <group delimiter=", ">
  1686. <text macro="event-title"/>
  1687. <text variable="event-place"/>
  1688. </group>
  1689. </else>
  1690. </choose>
  1691. </if>
  1692. </choose>
  1693. </macro>
  1694. <macro name="event-title">
  1695. <choose>
  1696. <!-- TODO: We expect "event-title" to be used,
  1697. but processors and applications may not be updated yet.
  1698. This macro ensures that either "event" or "event-title" can be accpeted.
  1699. Remove if procesor logic and application adoption can handle this. -->
  1700. <if variable="event-title">
  1701. <text variable="event-title"/>
  1702. </if>
  1703. <else>
  1704. <text variable="event"/>
  1705. </else>
  1706. </choose>
  1707. </macro>
  1708. <!-- After 'source', APA also prints publication history (original publication, reprint info, retraction info) -->
  1709. <macro name="publication-history">
  1710. <choose>
  1711. <if type="patent">
  1712. <text variable="references" prefix="(" suffix=")"/>
  1713. </if>
  1714. <else>
  1715. <group delimiter="; " prefix="(" suffix=")">
  1716. <!-- Print `status` here for things like "retracted" if it's not printed elsewhere already. -->
  1717. <choose>
  1718. <if variable="issued">
  1719. <choose>
  1720. <if variable="issue number page volume" match="any">
  1721. <text variable="status" text-case="capitalize-first"/>
  1722. </if>
  1723. </choose>
  1724. </if>
  1725. </choose>
  1726. <choose>
  1727. <if variable="references">
  1728. <!-- This provides the option for more elaborate description
  1729. of publication history, such as full "reprinted" references
  1730. (examples 11, 43, 44) -->
  1731. <text variable="references"/>
  1732. </if>
  1733. <else>
  1734. <group delimiter=" ">
  1735. <text term="original-work-published" text-case="capitalize-first"/>
  1736. <choose>
  1737. <if is-uncertain-date="original-date">
  1738. <text term="circa" form="short"/>
  1739. </if>
  1740. </choose>
  1741. <date variable="original-date">
  1742. <date-part name="year"/>
  1743. </date>
  1744. </group>
  1745. </else>
  1746. </choose>
  1747. </group>
  1748. </else>
  1749. </choose>
  1750. </macro>
  1751. <!-- Legal citations have their own rules -->
  1752. <macro name="legal-cites">
  1753. <!-- `treaty`: for treaties -->
  1754. <!-- `legal_case`: for all legal and court cases -->
  1755. <!-- `bill`: for bills, resolutions, federal reports -->
  1756. <!-- `hearing`: for hearings and testimony -->
  1757. <!-- `legislation`: for statutes, constitutional items, and charters -->
  1758. <!-- `regulation`: codified regulations, uncodified regulations, executive orders -->
  1759. <group delimiter=" ">
  1760. <choose>
  1761. <if type="treaty">
  1762. <group delimiter=", " suffix=".">
  1763. <!-- APA generally defers to Bluebook for legal citations, but diverges without
  1764. explanation for treaty items. We follow the Bluebook format that was used
  1765. in APA 6th ed. -->
  1766. <!-- APA manual omits treaty parties/authors, but per Bluebook
  1767. they should be included at least for bilateral treaties. -->
  1768. <names variable="author">
  1769. <name initialize-with="" form="short"/>
  1770. </names>
  1771. <text macro="date-legal"/>
  1772. <!-- APA manual omits treaty source/report called for by Bluebook in favor of just URL.
  1773. Both are included here, following the APA style used for all other item types
  1774. to end the reference with a period, then give the URL afterward. -->
  1775. <text macro="container-legal"/>
  1776. </group>
  1777. </if>
  1778. <else>
  1779. <group delimiter=" " suffix=".">
  1780. <group delimiter=", ">
  1781. <text macro="title-legal"/>
  1782. <text macro="container-legal"/>
  1783. </group>
  1784. <text macro="date-legal"/>
  1785. <text macro="parenthetical-legal"/>
  1786. </group>
  1787. </else>
  1788. </choose>
  1789. <text variable="references"/>
  1790. <!-- <text macro="access"/> -->
  1791. </group>
  1792. </macro>
  1793. <macro name="title-legal">
  1794. <choose>
  1795. <if type="bill legal_case legislation regulation treaty" match="any">
  1796. <text variable="title" text-case="title"/>
  1797. </if>
  1798. <else-if type="hearing">
  1799. <!-- APA uses a comma delimiter and omits "hearing before the" for hearings with testimony,
  1800. but follows Bluebook rules (colon delimiter, prefix before the committee name) for
  1801. references to the whole hearing. We simply follow the Bluebook rules for both, but
  1802. use APA style capitalization (not capitalizing "Before" or the title of the hearing). -->
  1803. <group delimiter=": " font-style="normal">
  1804. <text variable="title" text-case="capitalize-first"/>
  1805. <group delimiter=" ">
  1806. <text term="hearing" form="long" text-case="capitalize-first"/>
  1807. <group delimiter=" ">
  1808. <group delimiter=" ">
  1809. <!-- APA manual omits the bill number, but it should be included per Bluebook if relevant -->
  1810. <text term="on"/>
  1811. <text variable="number"/>
  1812. </group>
  1813. <group delimiter=" ">
  1814. <!-- Use the `at` term to hold "before the" -->
  1815. <text term="at" form="short"/>
  1816. <text variable="section"/>
  1817. </group>
  1818. </group>
  1819. </group>
  1820. </group>
  1821. </else-if>
  1822. </choose>
  1823. </macro>
  1824. <macro name="date-legal">
  1825. <choose>
  1826. <if type="treaty">
  1827. <date variable="issued" form="text"/>
  1828. </if>
  1829. <else-if type="legal_case">
  1830. <group prefix="(" suffix=")" delimiter=" ">
  1831. <text variable="authority"/>
  1832. <choose>
  1833. <if variable="container-title" match="any">
  1834. <!-- Print only year for cases published in reporters-->
  1835. <date variable="issued" form="numeric" date-parts="year"/>
  1836. </if>
  1837. <else>
  1838. <!-- APA manual doesn't include examples of cases not yet
  1839. published in a reporter, but this is Bluebook style. -->
  1840. <date variable="issued" form="text"/>
  1841. </else>
  1842. </choose>
  1843. </group>
  1844. </else-if>
  1845. <else-if type="bill hearing legislation regulation" match="any">
  1846. <group prefix="(" suffix=")" delimiter=" ">
  1847. <group delimiter=" ">
  1848. <date variable="original-date">
  1849. <date-part name="year"/>
  1850. </date>
  1851. <text term="and" form="symbol"/>
  1852. </group>
  1853. <choose>
  1854. <if variable="issued">
  1855. <!-- APA manual includes "rev." before the revision year,
  1856. but this isn't part of the Bluebook rules. -->
  1857. <date variable="issued">
  1858. <date-part name="year"/>
  1859. </date>
  1860. </if>
  1861. <else>
  1862. <!-- Show proposal date for uncodified regualtions.
  1863. Assume date is entered literally ala "proposed May 23, 2016".
  1864. TODO: Add 'proposed' term here if that becomes available -->
  1865. <date variable="submitted" form="text"/>
  1866. </else>
  1867. </choose>
  1868. </group>
  1869. </else-if>
  1870. </choose>
  1871. </macro>
  1872. <macro name="container-legal">
  1873. <!-- Expect legal item container-titles to be stored in short form -->
  1874. <choose>
  1875. <if type="treaty">
  1876. <group delimiter=" ">
  1877. <number variable="volume"/>
  1878. <text variable="container-title" form="short" font-style="italic" strip-periods="true" suffix=" "/>
  1879. <choose>
  1880. <if variable="page page-first" match="any">
  1881. <text variable="page-first"/>
  1882. </if>
  1883. <else>
  1884. <group delimiter=" ">
  1885. <label variable="number" form="short" text-case="capitalize-first"/>
  1886. <text variable="number"/>
  1887. </group>
  1888. </else>
  1889. </choose>
  1890. </group>
  1891. </if>
  1892. <else-if type="legal_case">
  1893. <group delimiter=" ">
  1894. <choose>
  1895. <if variable="container-title">
  1896. <group delimiter=" ">
  1897. <text variable="volume"/>
  1898. <text variable="container-title" form="short" font-style="italic" strip-periods="true" suffix=" "/>
  1899. <group delimiter=" ">
  1900. <label variable="section" form="symbol"/>
  1901. <text variable="section"/>
  1902. </group>
  1903. <choose>
  1904. <if variable="page page-first" match="any">
  1905. <text variable="page-first"/>
  1906. </if>
  1907. <else>
  1908. <text value="___"/>
  1909. </else>
  1910. </choose>
  1911. </group>
  1912. </if>
  1913. <else>
  1914. <group delimiter=" ">
  1915. <label variable="number" form="short" text-case="capitalize-first"/>
  1916. <text variable="number"/>
  1917. </group>
  1918. </else>
  1919. </choose>
  1920. </group>
  1921. </else-if>
  1922. <else-if type="bill">
  1923. <group delimiter=", ">
  1924. <group delimiter=" ">
  1925. <text variable="genre"/>
  1926. <group delimiter=" ">
  1927. <choose>
  1928. <!-- If there is no session number or code/record title, assume
  1929. assume the item is a congressional report and include 'No.' term. -->
  1930. <if variable="chapter-number container-title" match="none">
  1931. <!-- The item is a congressional report, rather than a bill or resultion. -->
  1932. <label variable="number" form="short" text-case="capitalize-first"/>
  1933. </if>
  1934. </choose>
  1935. <text variable="number"/>
  1936. </group>
  1937. </group>
  1938. <group delimiter=" ">
  1939. <text variable="authority"/>
  1940. <!-- 'session' is `chapter-number` -->
  1941. <text variable="chapter-number"/>
  1942. </group>
  1943. <group delimiter=" ">
  1944. <text variable="volume"/>
  1945. <text variable="container-title" form="short" font-style="italic" strip-periods="true" suffix=" "/>
  1946. <text variable="page-first"/>
  1947. </group>
  1948. </group>
  1949. </else-if>
  1950. <else-if type="hearing">
  1951. <group delimiter=" ">
  1952. <text variable="authority"/>
  1953. <!-- 'session' is `chapter-number` -->
  1954. <text variable="chapter-number"/>
  1955. </group>
  1956. </else-if>
  1957. <else-if type="legislation">
  1958. <choose>
  1959. <if variable="number">
  1960. <!-- There's a public law number. -->
  1961. <group delimiter=", ">
  1962. <text variable="number" prefix="Pub. L. No. "/>
  1963. <group delimiter=" ">
  1964. <text variable="volume"/>
  1965. <text variable="container-title" form="short" font-style="italic" strip-periods="true" suffix=" "/>
  1966. <text variable="page-first"/>
  1967. </group>
  1968. </group>
  1969. </if>
  1970. <else>
  1971. <group delimiter=" ">
  1972. <text variable="volume"/>
  1973. <text variable="container-title" form="short" font-style="italic" strip-periods="true" suffix=" "/>
  1974. <choose>
  1975. <if variable="section">
  1976. <group delimiter=" ">
  1977. <label variable="section" form="symbol"/>
  1978. <text variable="section"/>
  1979. </group>
  1980. </if>
  1981. <else>
  1982. <text variable="page-first"/>
  1983. </else>
  1984. </choose>
  1985. </group>
  1986. </else>
  1987. </choose>
  1988. </else-if>
  1989. <else-if type="regulation">
  1990. <group delimiter=", ">
  1991. <group delimiter=" ">
  1992. <text variable="genre"/>
  1993. <group delimiter=" ">
  1994. <label variable="number" form="short" text-case="capitalize-first"/>
  1995. <text variable="number"/>
  1996. </group>
  1997. </group>
  1998. <group delimiter=" ">
  1999. <text variable="volume"/>
  2000. <text variable="container-title" form="short" font-style="italic" strip-periods="true" suffix=" "/>
  2001. <choose>
  2002. <if variable="section">
  2003. <group delimiter=" ">
  2004. <label variable="section" form="symbol"/>
  2005. <text variable="section"/>
  2006. </group>
  2007. </if>
  2008. <else>
  2009. <text variable="page-first"/>
  2010. </else>
  2011. </choose>
  2012. </group>
  2013. </group>
  2014. </else-if>
  2015. </choose>
  2016. </macro>
  2017. <macro name="parenthetical-legal">
  2018. <choose>
  2019. <if type="hearing">
  2020. <group prefix="(" suffix=")">
  2021. <!-- Use the 'verb' form of the hearing term to hold 'testimony of' -->
  2022. <text term="hearing" form="verb"/>
  2023. <names variable="author">
  2024. <name and="symbol" form="short"/>
  2025. </names>
  2026. </group>
  2027. </if>
  2028. <else-if type="bill legislation regulation" match="any">
  2029. <!-- For uncodified regulations, assume future code section is in `status`. -->
  2030. <text variable="status" prefix="(" suffix=")"/>
  2031. </else-if>
  2032. </choose>
  2033. </macro>
  2034. <macro name="citation-locator">
  2035. <!-- Abbreviate page and paragraph, leave other locator labels in long form, cf. Rule 8.13 -->
  2036. <group delimiter=" ">
  2037. <choose>
  2038. <if locator="page paragraph" match="any">
  2039. <label variable="locator" form="short"/>
  2040. </if>
  2041. <else>
  2042. <label variable="locator" text-case="capitalize-first"/>
  2043. </else>
  2044. </choose>
  2045. <text variable="locator"/>
  2046. </group>
  2047. </macro>
  2048. <citation collapse="citation-number">
  2049. <sort>
  2050. <key variable="citation-number"/>
  2051. </sort>
  2052. <layout delimiter="," vertical-align="sup">
  2053. <group>
  2054. <text variable="citation-number"/>
  2055. <text macro="citation-locator" prefix="(" suffix=")"/>
  2056. </group>
  2057. </layout>
  2058. </citation>
  2059. <bibliography hanging-indent="false" et-al-min="3" et-al-use-first="1" et-al-use-last="false" entry-spacing="0" line-spacing="2">
  2060. <layout>
  2061. <group delimiter=". ">
  2062. <text variable="citation-number"/>
  2063. <choose>
  2064. <if type="bill hearing legal_case legislation regulation treaty" match="any">
  2065. <!-- Legal items have different orders and delimiters -->
  2066. <text macro="legal-cites"/>
  2067. </if>
  2068. <else>
  2069. <group delimiter=" ">
  2070. <group delimiter=" " suffix="">
  2071. <text macro="author-bib"/>
  2072. <text macro="date-bib"/>
  2073. <text macro="title-and-descriptions"/>
  2074. <text macro="container"/>
  2075. <text macro="event"/>
  2076. <text macro="publisher"/>
  2077. </group>
  2078. <!-- <text macro="access"/> -->
  2079. <text macro="publication-history"/>
  2080. </group>
  2081. </else>
  2082. </choose>
  2083. </group>
  2084. </layout>
  2085. </bibliography>
  2086. </style>
  2087.  
Advertisement
Add Comment
Please, Sign In to add comment