citeproc-ruby 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. data/lib/citeproc/version.rb +1 -1
  2. data/lib/csl/nodes.rb +23 -3
  3. data/lib/plugins/formats/default.rb +1 -1
  4. data/resource/locale/locales-af-ZA.xml +289 -288
  5. data/resource/locale/locales-ar-AR.xml +291 -289
  6. data/resource/locale/locales-bg-BG.xml +289 -288
  7. data/resource/locale/locales-ca-AD.xml +289 -288
  8. data/resource/locale/locales-cs-CZ.xml +288 -287
  9. data/resource/locale/locales-da-DK.xml +289 -288
  10. data/resource/locale/locales-de-AT.xml +288 -288
  11. data/resource/locale/locales-de-CH.xml +288 -288
  12. data/resource/locale/locales-de-DE.xml +314 -314
  13. data/resource/locale/locales-el-GR.xml +241 -239
  14. data/resource/locale/locales-en-GB.xml +304 -0
  15. data/resource/locale/locales-en-US.xml +297 -297
  16. data/resource/locale/locales-es-ES.xml +289 -288
  17. data/resource/locale/locales-et-EE.xml +287 -287
  18. data/resource/locale/locales-eu.xml +305 -0
  19. data/resource/locale/locales-fa-IR.xml +304 -0
  20. data/resource/locale/locales-fi-FI.xml +304 -0
  21. data/resource/locale/locales-fr-CA.xml +306 -0
  22. data/resource/locale/locales-fr-FR.xml +290 -288
  23. data/resource/locale/locales-he-IL.xml +288 -288
  24. data/resource/locale/locales-hu-HU.xml +289 -288
  25. data/resource/locale/locales-is-IS.xml +288 -288
  26. data/resource/locale/locales-it-IT.xml +289 -288
  27. data/resource/locale/locales-ja-JP.xml +289 -288
  28. data/resource/locale/locales-km-KH.xml +304 -0
  29. data/resource/locale/locales-ko-KR.xml +289 -288
  30. data/resource/locale/locales-mn-MN.xml +290 -288
  31. data/resource/locale/locales-nb-NO.xml +288 -288
  32. data/resource/locale/locales-nl-NL.xml +288 -288
  33. data/resource/locale/locales-nn-NO.xml +288 -288
  34. data/resource/locale/locales-pl-PL.xml +289 -288
  35. data/resource/locale/locales-pt-BR.xml +288 -288
  36. data/resource/locale/locales-pt-PT.xml +289 -288
  37. data/resource/locale/locales-ro-RO.xml +289 -288
  38. data/resource/locale/locales-ru-RU.xml +290 -288
  39. data/resource/locale/locales-sk-SK.xml +288 -288
  40. data/resource/locale/locales-sl-SI.xml +289 -288
  41. data/resource/locale/locales-sr-RS.xml +289 -288
  42. data/resource/locale/locales-sv-SE.xml +289 -288
  43. data/resource/locale/locales-th-TH.xml +288 -288
  44. data/resource/locale/locales-tr-TR.xml +289 -288
  45. data/resource/locale/locales-uk-UA.xml +290 -288
  46. data/resource/locale/locales-vi-VN.xml +289 -288
  47. data/resource/locale/locales-zh-CN.xml +288 -288
  48. data/resource/locale/locales-zh-TW.xml +289 -288
  49. data/resource/style/apa.csl +316 -127
  50. data/resource/style/{bibtex-x2.csl → bibtex.csl} +7 -5
  51. data/resource/style/chicago-annotated-bibliography.csl +513 -0
  52. data/resource/style/chicago-author-date-basque.csl +707 -0
  53. data/resource/style/chicago-author-date-de.csl +394 -0
  54. data/resource/style/chicago-author-date.csl +223 -167
  55. data/resource/style/chicago-dated-note-biblio-no-ibid.csl +472 -0
  56. data/resource/style/chicago-fullnote-bibliography-delimiter-fixes.csl +972 -0
  57. data/resource/style/chicago-fullnote-bibliography-no-ibid-delimiter-fixes.csl +963 -0
  58. data/resource/style/chicago-fullnote-bibliography-no-ibid.csl +785 -0
  59. data/resource/style/chicago-fullnote-bibliography.csl +429 -321
  60. data/resource/style/chicago-library-list.csl +511 -0
  61. data/resource/style/chicago-note-biblio-no-ibid.csl +514 -0
  62. data/resource/style/chicago-note-bibliography.csl +276 -192
  63. data/resource/style/chicago-quick-copy.csl +685 -0
  64. data/resource/style/ieee.csl +296 -126
  65. data/resource/style/mla-notes.csl +796 -0
  66. data/resource/style/{mla-x.csl → mla-underline.csl} +14 -17
  67. data/resource/style/mla-url.csl +214 -0
  68. data/resource/style/mla.csl +289 -84
  69. data/resource/style/vancouver-brackets.csl +256 -0
  70. data/resource/style/vancouver-superscript-bracket-only-year.csl +165 -0
  71. data/resource/style/vancouver-superscript.csl +256 -0
  72. data/resource/style/vancouver.csl +256 -0
  73. data/spec/citeproc/date_spec.rb +7 -3
  74. data/spec/citeproc/variable_spec.rb +1 -1
  75. data/spec/csl/style_spec.rb +2 -2
  76. metadata +48 -48
  77. data/resource/style/acta-materialia-x.csl +0 -128
  78. data/resource/style/advanced-engineering-materials-x.csl +0 -121
  79. data/resource/style/ama.csl +0 -185
  80. data/resource/style/ama2-x.csl +0 -179
  81. data/resource/style/apa-x.csl +0 -324
  82. data/resource/style/apsa-x.csl +0 -163
  83. data/resource/style/apsa.csl +0 -176
  84. data/resource/style/asa-x.csl +0 -203
  85. data/resource/style/asa.csl +0 -216
  86. data/resource/style/asm-journals-x.csl +0 -131
  87. data/resource/style/bluebook-demo-x.csl +0 -392
  88. data/resource/style/bluebook-demo.csl +0 -942
  89. data/resource/style/greek-chicago-x.csl +0 -1182
  90. data/resource/style/harvard1-institution-italic.csl +0 -190
  91. data/resource/style/harvard1.csl +0 -181
  92. data/resource/style/mhra-x.csl +0 -312
  93. data/resource/style/mhra.csl +0 -390
  94. data/resource/style/mhra_note_without_bibliography-x.csl +0 -330
  95. data/resource/style/mhra_note_without_bibliography.csl +0 -338
  96. data/resource/style/nature-x.csl +0 -81
  97. data/resource/style/nature.csl +0 -88
  98. data/resource/style/nlm.csl +0 -117
@@ -1,20 +1,17 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
2
+ <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
3
  <info>
4
- <title>Modern Language Association</title>
5
- <id>http://www.zotero.org/styles/mla</id>
6
- <link href="http://www.zotero.org/styles/mla" rel="self"/>
4
+ <title>Modern Language Association (underline)</title>
5
+ <id>http://www.zotero.org/styles/mla-underline</id>
6
+ <link href="http://www.zotero.org/styles/mla-underline" rel="self"/>
7
7
  <author>
8
8
  <name>Simon Kornblith</name>
9
9
  <email>simon@simonster.com</email>
10
10
  </author>
11
- <contributor>
12
- <name> modified by Christian Werthschulte</name>
13
- <email>Christian.Werthschulte@rub.de</email>
14
- </contributor>
15
11
  <category field="generic-base"/>
16
- <category citation-format="author-date"/>
17
- <updated>2008-08-14T19:52:55+00:00</updated>
12
+ <category citation-format="author"/>
13
+ <updated>2012-01-01T00:00:00+00:00</updated>
14
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
18
15
  </info>
19
16
  <macro name="editor-translator">
20
17
  <names variable="editor translator" delimiter=". ">
@@ -55,8 +52,8 @@
55
52
  </macro>
56
53
  <macro name="title">
57
54
  <choose>
58
- <if type="bill book graphic legal_case motion_picture report song" match="any">
59
- <text variable="title" font-style="italic"/>
55
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
56
+ <text variable="title" text-decoration="underline"/>
60
57
  </if>
61
58
  <else>
62
59
  <text variable="title" quotes="true"/>
@@ -65,8 +62,8 @@
65
62
  </macro>
66
63
  <macro name="title-short">
67
64
  <choose>
68
- <if type="bill book graphic legal_case motion_picture report song" match="any">
69
- <text variable="title" form="short" font-style="italic"/>
65
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
66
+ <text variable="title" form="short" text-decoration="underline"/>
70
67
  </if>
71
68
  <else>
72
69
  <text variable="title" form="short" quotes="true"/>
@@ -128,14 +125,14 @@
128
125
  <text macro="author" suffix="."/>
129
126
  <text macro="title" prefix=" " suffix="."/>
130
127
  <choose>
131
- <if type="bill book graphic legal_case motion_picture report song" match="any">
128
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
132
129
  <text macro="edition" prefix=" " suffix="."/>
133
130
  <text macro="editor-translator" prefix=" " suffix="."/>
134
131
  <text macro="publisher-year" prefix=" " suffix="."/>
135
132
  </if>
136
133
  <else-if type="chapter paper-conference" match="any">
137
134
  <group>
138
- <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
135
+ <text variable="container-title" text-decoration="underline" prefix=" " suffix="."/>
139
136
  <text macro="edition" prefix=" " suffix="."/>
140
137
  <text macro="editor-translator" prefix=" " suffix="."/>
141
138
  <text macro="publisher-year" prefix=" " suffix="."/>
@@ -146,7 +143,7 @@
146
143
  <group prefix=" " suffix="." delimiter=": ">
147
144
  <group delimiter=" ">
148
145
  <text macro="editor-translator" suffix="."/>
149
- <text variable="container-title" font-style="italic"/>
146
+ <text variable="container-title" text-decoration="underline"/>
150
147
  <choose>
151
148
  <if type="article-journal">
152
149
  <group delimiter=" ">
@@ -0,0 +1,214 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
+ <info>
4
+ <title>Modern Language Association with URL</title>
5
+ <id>http://www.zotero.org/styles/mla-url</id>
6
+ <link href="http://www.zotero.org/styles/mla-url" rel="self"/>
7
+ <author>
8
+ <name>Simon Kornblith</name>
9
+ <email>simon@simonster.com</email>
10
+ </author>
11
+ <contributor>
12
+ <name>Christian Werthschulte</name>
13
+ <email>Christian.Werthschulte@rub.de</email>
14
+ </contributor>
15
+ <contributor>
16
+ <name>Sebastian Karcher</name>
17
+ <email>karcher@u.northwestern.edu</email>
18
+ </contributor>
19
+ <summary>The 2009 MLA Style for purposes where the URL is still required</summary>
20
+ <category field="generic-base"/>
21
+ <category citation-format="author"/>
22
+ <updated>2009-11-10T07:33:51+00:00</updated>
23
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
24
+ </info>
25
+ <macro name="editor-translator">
26
+ <names variable="editor translator" delimiter=". ">
27
+ <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
28
+ <name and="symbol" delimiter=", "/>
29
+ </names>
30
+ </macro>
31
+ <macro name="author">
32
+ <names variable="author">
33
+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
34
+ <label form="short" prefix=", " suffix="." strip-periods="true"/>
35
+ <substitute>
36
+ <names variable="editor"/>
37
+ <names variable="translator"/>
38
+ <text macro="title"/>
39
+ </substitute>
40
+ </names>
41
+ </macro>
42
+ <macro name="author-short">
43
+ <names variable="author">
44
+ <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
45
+ <substitute>
46
+ <names variable="editor"/>
47
+ <names variable="translator"/>
48
+ <text macro="title-short"/>
49
+ </substitute>
50
+ </names>
51
+ </macro>
52
+ <macro name="access">
53
+ <group delimiter=" ">
54
+ <date variable="accessed">
55
+ <date-part name="day" suffix=" "/>
56
+ <date-part name="month" form="short" suffix=" "/>
57
+ <date-part name="year"/>
58
+ </date>
59
+ </group>
60
+ <text variable="URL" prefix=". &lt;" suffix="&gt;"/>
61
+ </macro>
62
+ <macro name="medium">
63
+ <choose>
64
+ <if variable="URL DOI" match="any">
65
+ <text variable="archive" prefix=" " suffix=". "/>
66
+ <text value="Web" prefix=" "/>
67
+ </if>
68
+ <else>
69
+ <text value="Print" prefix=" "/>
70
+ </else>
71
+ </choose>
72
+ </macro>
73
+ <macro name="title">
74
+ <choose>
75
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
76
+ <text variable="title" font-style="italic" text-case="title"/>
77
+ </if>
78
+ <else>
79
+ <text variable="title" quotes="true" text-case="title"/>
80
+ </else>
81
+ </choose>
82
+ </macro>
83
+ <macro name="title-short">
84
+ <choose>
85
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
86
+ <text variable="title" form="short" font-style="italic" text-case="title"/>
87
+ </if>
88
+ <else>
89
+ <text variable="title" form="short" quotes="true" text-case="title"/>
90
+ </else>
91
+ </choose>
92
+ </macro>
93
+ <macro name="pages">
94
+ <choose>
95
+ <if variable="page">
96
+ <text variable="page"/>
97
+ </if>
98
+ <else>
99
+ <text value="n. pag"/>
100
+ </else>
101
+ </choose>
102
+ </macro>
103
+ <macro name="edition">
104
+ <choose>
105
+ <if is-numeric="edition">
106
+ <group delimiter=" ">
107
+ <number variable="edition" form="ordinal"/>
108
+ <text term="edition" form="short" suffix="." strip-periods="true"/>
109
+ </group>
110
+ </if>
111
+ <else>
112
+ <text variable="edition"/>
113
+ </else>
114
+ </choose>
115
+ </macro>
116
+ <macro name="publisher-year">
117
+ <group delimiter=", ">
118
+ <group delimiter=": ">
119
+ <text variable="publisher-place"/>
120
+ <text variable="publisher"/>
121
+ </group>
122
+ <date variable="issued">
123
+ <date-part name="year"/>
124
+ </date>
125
+ </group>
126
+ </macro>
127
+ <citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
128
+ <layout prefix="(" suffix=")" delimiter="; ">
129
+ <group delimiter=" ">
130
+ <choose>
131
+ <if variable="author editor translator" match="any">
132
+ <group delimiter=", ">
133
+ <text macro="author-short"/>
134
+ <choose>
135
+ <if disambiguate="true">
136
+ <text macro="title-short"/>
137
+ </if>
138
+ </choose>
139
+ </group>
140
+ </if>
141
+ <else>
142
+ <text macro="title-short"/>
143
+ </else>
144
+ </choose>
145
+ <text variable="locator"/>
146
+ </group>
147
+ </layout>
148
+ </citation>
149
+ <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" line-spacing="2" subsequent-author-substitute="---">
150
+ <sort>
151
+ <key macro="author"/>
152
+ <key variable="title"/>
153
+ </sort>
154
+ <layout suffix=".">
155
+ <text macro="author" suffix="."/>
156
+ <text macro="title" prefix=" " suffix="."/>
157
+ <choose>
158
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
159
+ <text macro="edition" prefix=" " suffix="."/>
160
+ <text macro="editor-translator" prefix=" " suffix="."/>
161
+ <text macro="publisher-year" prefix=" " suffix="."/>
162
+ </if>
163
+ <else-if type="chapter paper-conference" match="any">
164
+ <group>
165
+ <text variable="container-title" font-style="italic" text-case="title" prefix=" " suffix="."/>
166
+ <text macro="edition" prefix=" " suffix="."/>
167
+ <text macro="editor-translator" prefix=" " suffix="."/>
168
+ <text macro="publisher-year" prefix=" " suffix="."/>
169
+ </group>
170
+ <text variable="page" prefix=" " suffix="."/>
171
+ </else-if>
172
+ <else>
173
+ <group prefix=" " suffix="." delimiter=": ">
174
+ <group delimiter=" ">
175
+ <text macro="editor-translator" suffix="."/>
176
+ <text variable="container-title" font-style="italic" text-case="title"/>
177
+ <choose>
178
+ <if type="article-journal">
179
+ <group delimiter=" ">
180
+ <group delimiter=".">
181
+ <text variable="volume"/>
182
+ <text variable="issue"/>
183
+ </group>
184
+ <date variable="issued" prefix="(" suffix=")">
185
+ <date-part name="year"/>
186
+ </date>
187
+ </group>
188
+ <text macro="pages" prefix=": "/>
189
+ </if>
190
+ <else>
191
+ <date variable="issued">
192
+ <date-part name="day" suffix=" "/>
193
+ <date-part name="month" form="short" suffix=" "/>
194
+ <date-part name="year"/>
195
+ </date>
196
+ <choose>
197
+ <if variable="URL DOI" match="any">
198
+ <text variable="page"/>
199
+ </if>
200
+ <else>
201
+ <text macro="pages"/>
202
+ </else>
203
+ </choose>
204
+ </else>
205
+ </choose>
206
+ </group>
207
+ </group>
208
+ </else>
209
+ </choose>
210
+ <text macro="medium"/>
211
+ <text prefix=". " suffix="." macro="access"/>
212
+ </layout>
213
+ </bibliography>
214
+ </style>
@@ -1,77 +1,188 @@
1
- <style
2
- xmlns="http://purl.org/net/xbiblio/csl"
3
- class="in-text"
4
- xml:lang="en">
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
5
3
  <info>
6
4
  <title>Modern Language Association</title>
7
5
  <id>http://www.zotero.org/styles/mla</id>
8
- <link href="http://www.zotero.org/styles/mla" />
6
+ <link href="http://www.zotero.org/styles/mla" rel="self"/>
9
7
  <author>
10
- <name>Simon Kornblith</name>
11
- <email>simon@simonster.com</email>
8
+ <name>Ilouise S. Bradford</name>
9
+ <email>isbradford@gmail.com</email>
12
10
  </author>
13
11
  <contributor>
14
- <name> modified by Christian Werthschulte</name>
12
+ <name>Sarah Ficke</name>
13
+ <email>sficke@email.unc.edu</email>
14
+ </contributor>
15
+ <contributor>
16
+ <name>Sebastian Karcher</name>
17
+ <email>karcher@u.northwestern.edu</email>
18
+ </contributor>
19
+ <contributor>
20
+ <name>Christian Werthschulte</name>
15
21
  <email>Christian.Werthschulte@rub.de</email>
16
22
  </contributor>
17
- <category term="generic-base" />
18
- <category term="author-date" />
19
- <updated />
23
+ <contributor>
24
+ <name>Simon Kornblith</name>
25
+ <email>simon@simonster.com</email>
26
+ </contributor>
27
+ <contributor>
28
+ <name>James Johnston</name>
29
+ <email>thejamesjohnston@gmail.com</email>
30
+ </contributor>
31
+ <category field="generic-base"/>
32
+ <category citation-format="author"/>
33
+ <link href="http://owl.english.purdue.edu/owl/section/2/11/" rel="documentation"/>
34
+ <updated>2011-05-28T18:16:02+00:00</updated>
35
+ <summary>This style adheres to the MLA 7th edition handbook and contains modifications to these types of sources: e-mail, forum posts, interviews, manuscripts, maps, presentations, TV broadcasts, and web pages.</summary>
36
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
20
37
  </info>
38
+ <locale xml:lang="en">
39
+ <terms>
40
+ <term name="month-01" form="short">Jan.</term>
41
+ <term name="month-02" form="short">Feb.</term>
42
+ <term name="month-03" form="short">Mar.</term>
43
+ <term name="month-04" form="short">Apr.</term>
44
+ <term name="month-05" form="short">May</term>
45
+ <term name="month-06" form="short">June</term>
46
+ <term name="month-07" form="short">July</term>
47
+ <term name="month-08" form="short">Aug.</term>
48
+ <term name="month-09" form="short">Sept.</term>
49
+ <term name="month-10" form="short">Oct.</term>
50
+ <term name="month-11" form="short">Nov.</term>
51
+ <term name="month-12" form="short">Dec.</term>
52
+ <term name="volume" form="short">
53
+ <single>Vol.</single>
54
+ <multiple>vols</multiple>
55
+ </term>
56
+ <term name="edition" form="short">ed</term>
57
+ </terms>
58
+ </locale>
21
59
  <macro name="editor-translator">
22
- <names delimiter=". " variable="editor translator">
23
- <label form="verb-short" suffix=". " text-case="capitalize-first" />
24
- <name and="symbol" delimiter=", " />
60
+ <names variable="editor translator" delimiter=". ">
61
+ <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
62
+ <name and="symbol" delimiter=", "/>
25
63
  </names>
26
64
  </macro>
27
65
  <macro name="author">
28
66
  <names variable="author">
29
- <name and="text" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="first" sort-separator=", " />
30
- <label form="short" prefix=", " suffix="." />
67
+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
68
+ <label form="short" prefix=", " suffix="." strip-periods="true"/>
31
69
  <substitute>
32
- <names variable="editor" />
33
- <names variable="translator" />
34
- <text macro="title" />
70
+ <names variable="editor"/>
71
+ <names variable="translator"/>
72
+ <text macro="title"/>
35
73
  </substitute>
36
74
  </names>
37
75
  </macro>
38
76
  <macro name="author-short">
39
77
  <names variable="author">
40
- <name and="symbol" delimiter=", " form="short" initialize-with=". " />
78
+ <name form="short" and="text" delimiter=", " initialize-with=". "/>
41
79
  <substitute>
42
- <names variable="editor" />
43
- <names variable="translator" />
44
- <text macro="title-short" />
80
+ <names variable="editor"/>
81
+ <names variable="translator"/>
82
+ <text macro="title-short"/>
45
83
  </substitute>
46
84
  </names>
47
85
  </macro>
48
86
  <macro name="access">
49
87
  <group delimiter=" ">
50
88
  <date variable="accessed">
51
- <date-part name="day" suffix=" " />
52
- <date-part form="short" name="month" strip-periods="false" suffix=" " />
53
- <date-part name="year" />
89
+ <date-part name="day" suffix=" "/>
90
+ <date-part name="month" form="short" suffix=" " strip-periods="false"/>
91
+ <date-part name="year"/>
54
92
  </date>
55
- <text prefix="&lt;" suffix="&gt;" variable="URL" />
56
93
  </group>
57
94
  </macro>
95
+ <macro name="medium">
96
+ <choose>
97
+ <if type="motion_picture">
98
+ <choose>
99
+ <if variable="medium">
100
+ <text variable="medium" prefix=" "/>
101
+ </if>
102
+ <else>
103
+ <text value="Film" prefix=" "/>
104
+ </else>
105
+ </choose>
106
+ </if>
107
+ <else-if type="broadcast">
108
+ <choose>
109
+ <if variable="medium">
110
+ <text variable="medium" prefix=" "/>
111
+ </if>
112
+ <else>
113
+ <text value="Television" prefix=" "/>
114
+ </else>
115
+ </choose>
116
+ </else-if>
117
+ <else-if type="manuscript">
118
+ <text value=""/>
119
+ </else-if>
120
+ <else-if type="personal_communication" match="any">
121
+ <text value="" prefix=" "/>
122
+ </else-if>
123
+ <else-if type="speech" match="any">
124
+ <text value=""/>
125
+ </else-if>
126
+ <else-if type="interview">
127
+ <text variable="medium" prefix=" "/>
128
+ </else-if>
129
+ <else-if type="song">
130
+ <choose>
131
+ <if variable="medium">
132
+ <text variable="medium" prefix=" "/>
133
+ </if>
134
+ <else>
135
+ <text value="Audio Recording" prefix=" "/>
136
+ </else>
137
+ </choose>
138
+ </else-if>
139
+ <else>
140
+ <choose>
141
+ <if variable="URL DOI" match="any">
142
+ <text variable="archive" prefix=" " suffix=". "/>
143
+ <text value="Web" prefix=" "/>
144
+ <text prefix=". " suffix="." macro="access"/>
145
+ </if>
146
+ <else>
147
+ <text value="Print" prefix=" "/>
148
+ </else>
149
+ </choose>
150
+ </else>
151
+ </choose>
152
+ </macro>
58
153
  <macro name="title">
59
154
  <choose>
60
- <if type="book">
61
- <text font-style="italic" variable="title" />
155
+ <if type="bill book graphic legal_case legislation manuscript motion_picture report song" match="any">
156
+ <text variable="title" font-style="italic" text-case="title"/>
62
157
  </if>
158
+ <else-if type="interview personal_communication" match="any">
159
+ <text variable="title" text-case="title" quotes="false"/>
160
+ </else-if>
63
161
  <else>
64
- <text quotes="true" variable="title" />
162
+ <text variable="title" text-case="title" quotes="true"/>
65
163
  </else>
66
164
  </choose>
67
165
  </macro>
68
166
  <macro name="title-short">
69
167
  <choose>
70
- <if type="book">
71
- <text font-style="italic" form="short" variable="title" />
168
+ <if type="bill book graphic legal_case legislation manuscript motion_picture report song" match="any">
169
+ <text variable="title" text-case="title" form="short" font-style="italic"/>
72
170
  </if>
73
171
  <else>
74
- <text form="short" quotes="true" variable="title" />
172
+ <text variable="title" text-case="title" form="short" quotes="true"/>
173
+ </else>
174
+ </choose>
175
+ </macro>
176
+ <macro name="pages">
177
+ <choose>
178
+ <if variable="page">
179
+ <text variable="page"/>
180
+ </if>
181
+ <else-if type="personal_communication interview" match="any">
182
+ <text value=""/>
183
+ </else-if>
184
+ <else>
185
+ <text value="n. pag"/>
75
186
  </else>
76
187
  </choose>
77
188
  </macro>
@@ -79,111 +190,205 @@
79
190
  <choose>
80
191
  <if is-numeric="edition">
81
192
  <group delimiter=" ">
82
- <number form="ordinal" variable="edition" />
83
- <text form="short" suffix="." term="edition" />
193
+ <number variable="edition" form="ordinal"/>
194
+ <text term="edition" form="short" suffix="." strip-periods="true"/>
195
+ </group>
196
+ </if>
197
+ <else>
198
+ <text variable="edition"/>
199
+ </else>
200
+ </choose>
201
+ </macro>
202
+ <macro name="volume">
203
+ <choose>
204
+ <if is-numeric="volume">
205
+ <group delimiter=" ">
206
+ <text term="volume" form="short" strip-periods="false"/>
207
+ <number variable="volume"/>
208
+ </group>
209
+ </if>
210
+ <else>
211
+ <text variable="volume"/>
212
+ </else>
213
+ </choose>
214
+ </macro>
215
+ <macro name="number-of-volumes">
216
+ <choose>
217
+ <if is-numeric="number-of-volumes">
218
+ <group delimiter=" ">
219
+ <number variable="number-of-volumes"/>
220
+ <text term="volume" form="short" plural="true" strip-periods="true"/>
84
221
  </group>
85
222
  </if>
86
223
  <else>
87
- <text variable="edition" />
224
+ <text variable="number-of-volumes"/>
88
225
  </else>
89
226
  </choose>
90
227
  </macro>
228
+ <macro name="collection-title">
229
+ <text variable="collection-title" text-case="title" prefix=" "/>
230
+ </macro>
231
+ <macro name="collection-number">
232
+ <text variable="collection-number" prefix=" " suffix="."/>
233
+ </macro>
91
234
  <macro name="publisher-year">
92
235
  <group delimiter=", ">
93
236
  <group delimiter=": ">
94
- <text variable="publisher-place" />
95
- <text variable="publisher" />
237
+ <text variable="publisher-place"/>
238
+ <text variable="publisher"/>
96
239
  </group>
97
240
  <date variable="issued">
98
- <date-part name="year" />
241
+ <date-part name="year"/>
99
242
  </date>
100
243
  </group>
101
244
  </macro>
102
- <citation
103
- disambiguate-add-givenname="true"
104
- disambiguate-add-names="true"
105
- et-al-min="4"
106
- et-al-use-first="1">
107
- <layout delimiter="; " prefix="(" suffix=")">
245
+ <citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
246
+ <layout prefix="(" suffix=")" delimiter="; ">
108
247
  <group delimiter=" ">
109
248
  <choose>
110
- <if match="any" variable="author editor translator">
249
+ <if variable="author editor translator" match="any">
111
250
  <group delimiter=", ">
112
- <text macro="author-short" />
251
+ <text macro="author-short"/>
113
252
  <choose>
114
253
  <if disambiguate="true">
115
- <text macro="title-short" />
254
+ <text macro="title-short"/>
116
255
  </if>
117
256
  </choose>
118
257
  </group>
119
258
  </if>
120
259
  <else>
121
- <text macro="title-short" />
260
+ <text macro="title-short"/>
122
261
  </else>
123
262
  </choose>
124
- <text variable="locator" />
263
+ <text variable="locator"/>
125
264
  </group>
126
265
  </layout>
127
266
  </citation>
128
- <bibliography
129
- et-al-min="4"
130
- et-al-use-first="1"
131
- hanging-indent="true"
132
- line-spacing="2"
133
- subsequent-author-substitute="---">
267
+ <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" line-spacing="2" entry-spacing="0" subsequent-author-substitute="---">
134
268
  <sort>
135
- <key macro="author" />
136
- <key variable="title" />
269
+ <key macro="author"/>
270
+ <key variable="title"/>
137
271
  </sort>
138
- <layout>
139
- <text macro="author" suffix="." />
140
- <text macro="title" prefix=" " suffix="." />
272
+ <layout suffix=".">
273
+ <text macro="author" suffix="."/>
274
+ <text macro="title" prefix=" " suffix="."/>
141
275
  <choose>
142
- <if type="book">
143
- <text macro="edition" prefix=" " suffix="." />
144
- <text macro="editor-translator" prefix=" " suffix="." />
145
- <text macro="publisher-year" prefix=" " suffix="." />
276
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
277
+ <text macro="edition" prefix=" " suffix="."/>
278
+ <text macro="editor-translator" prefix=" " suffix="."/>
279
+ <text macro="volume" prefix=" " suffix="."/>
280
+ <text macro="number-of-volumes" prefix=" " suffix="."/>
281
+ <text macro="publisher-year" prefix=" " suffix="."/>
146
282
  </if>
147
- <else-if type="chapter">
283
+ <else-if type="chapter paper-conference" match="any">
148
284
  <group>
149
- <text font-style="italic" prefix=" " suffix="." variable="container-title" />
150
- <text macro="edition" prefix=" " suffix="." />
151
- <text macro="editor-translator" prefix=" " suffix="." />
152
- <text macro="publisher-year" prefix=" " suffix="." />
285
+ <text variable="container-title" text-case="title" font-style="italic" prefix=" " suffix="."/>
286
+ <text macro="edition" prefix=" " suffix="."/>
287
+ <text macro="editor-translator" prefix=" " suffix="."/>
288
+ <text macro="volume" prefix=" " suffix="."/>
289
+ <text macro="number-of-volumes" prefix=" " suffix="."/>
290
+ <text macro="publisher-year" prefix=" " suffix="."/>
153
291
  </group>
154
- <text prefix=" " suffix="." variable="page" />
292
+ <text variable="page" prefix=" " suffix="."/>
293
+ </else-if>
294
+ <else-if type="manuscript">
295
+ <date variable="issued" prefix=" " suffix=".">
296
+ <date-part name="year"/>
297
+ </date>
298
+ <text variable="genre" prefix=" " suffix="."/>
299
+ <text variable="archive_location" prefix=" " suffix="."/>
300
+ <text variable="publisher-place" prefix=" "/>
301
+ </else-if>
302
+ <else-if type="personal_communication">
303
+ <date variable="issued" prefix=" " suffix=".">
304
+ <date-part name="day" suffix=" "/>
305
+ <date-part name="month" form="short" suffix=" "/>
306
+ <date-part name="year"/>
307
+ </date>
308
+ <choose>
309
+ <if variable="genre">
310
+ <text prefix=" " suffix="." variable="genre"/>
311
+ </if>
312
+ <else>
313
+ <text prefix=" " suffix="." value="E-mail"/>
314
+ </else>
315
+ </choose>
316
+ </else-if>
317
+ <else-if type="map">
318
+ <text variable="genre" prefix=" " suffix="."/>
319
+ <text variable="publisher-place" prefix=" " suffix=":"/>
320
+ <text variable="publisher" prefix=" "/>
321
+ <date variable="issued" prefix=" " suffix=",">
322
+ <date-part name="year"/>
323
+ </date>
324
+ </else-if>
325
+ <else-if type="speech">
326
+ <text variable="event" prefix=" " suffix="."/>
327
+ <text variable="publisher-place" prefix=" " suffix="."/>
328
+ <date variable="issued" prefix=" " suffix=".">
329
+ <date-part name="year"/>
330
+ </date>
331
+ <text variable="genre" prefix=" " suffix="."/>
332
+ </else-if>
333
+ <else-if type="webpage">
334
+ <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
335
+ <text variable="genre" prefix=" " suffix="."/>
336
+ <date variable="issued" prefix=" " suffix=".">
337
+ <date-part name="day" suffix=" "/>
338
+ <date-part name="month" form="short" suffix=" " strip-periods="false"/>
339
+ <date-part name="year"/>
340
+ </date>
341
+ </else-if>
342
+ <else-if type="broadcast">
343
+ <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
344
+ <text variable="publisher" prefix=" " suffix=","/>
345
+ <date variable="issued" prefix=" " suffix=".">
346
+ <date-part name="day" suffix=" "/>
347
+ <date-part name="month" form="short" suffix=" " strip-periods="false"/>
348
+ <date-part name="year"/>
349
+ </date>
155
350
  </else-if>
156
351
  <else>
157
- <group delimiter=": " prefix=" " suffix=".">
352
+ <group prefix=" " suffix="." delimiter=": ">
158
353
  <group delimiter=" ">
159
- <text macro="editor-translator" suffix="." />
160
- <text font-style="italic" variable="container-title" />
354
+ <text macro="editor-translator" suffix="."/>
355
+ <text variable="container-title" font-style="italic"/>
161
356
  <choose>
162
357
  <if type="article-journal">
163
358
  <group delimiter=" ">
164
359
  <group delimiter=".">
165
- <text variable="volume" />
166
- <text variable="issue" />
360
+ <text variable="volume"/>
361
+ <text variable="issue"/>
167
362
  </group>
168
- <date prefix="(" suffix=")" variable="issued">
169
- <date-part name="year" />
363
+ <date variable="issued" prefix="(" suffix="):">
364
+ <date-part name="year"/>
170
365
  </date>
171
366
  </group>
367
+ <text macro="pages" prefix=" "/>
172
368
  </if>
173
369
  <else>
174
370
  <date variable="issued">
175
- <date-part name="day" suffix=" " />
176
- <date-part form="short" name="month" strip-periods="false" suffix=" " />
177
- <date-part name="year" />
371
+ <date-part name="day" suffix=" "/>
372
+ <date-part name="month" form="short" suffix=" " strip-periods="false"/>
373
+ <date-part name="year"/>
178
374
  </date>
375
+ <choose>
376
+ <if variable="URL DOI" match="any">
377
+ <text variable="page" prefix=": "/>
378
+ </if>
379
+ <else>
380
+ <text macro="pages" prefix=": "/>
381
+ </else>
382
+ </choose>
179
383
  </else>
180
384
  </choose>
181
385
  </group>
182
- <text variable="page" />
183
386
  </group>
184
387
  </else>
185
388
  </choose>
186
- <text macro="access" prefix=" " suffix="." />
389
+ <text macro="medium" suffix="."/>
390
+ <text macro="collection-title"/>
391
+ <text macro="collection-number"/>
187
392
  </layout>
188
393
  </bibliography>
189
- </style>
394
+ </style>