citeproc-ruby 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,256 @@
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" page-range-format="minimal">
3
+ <info>
4
+ <title>Vancouver with Brackets</title>
5
+ <id>http://www.zotero.org/styles/vancouver-brackets</id>
6
+ <link href="http://www.zotero.org/styles/vancouver-brackets" rel="self"/>
7
+ <author>
8
+ <name>Michael Berkowitz</name>
9
+ <email>mberkowi@gmu.edu</email>
10
+ </author>
11
+ <contributor>
12
+ <name>Sean Takats</name>
13
+ <email>stakats@gmu.edu</email>
14
+ </contributor>
15
+ <contributor>
16
+ <name>Sebastian Karcher</name>
17
+ </contributor>
18
+ <category field="medicine"/>
19
+ <category citation-format="numeric"/>
20
+ <updated>2008-09-16T00:00:00+00:00</updated>
21
+ <summary>
22
+ Vancouver style as outlined by International Committee of Medical Journal Editors Uniform Requirements for Manuscripts Submitted to Biomedical Journals: Sample References
23
+ </summary>
24
+ <link href="http://www.nlm.nih.gov/bsd/uniform_requirements.html" rel="documentation"/>
25
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
26
+ </info>
27
+ <locale xml:lang="en">
28
+ <terms>
29
+ <term name="retrieved">available</term>
30
+ <term name="section" form="short">sect.</term>
31
+ </terms>
32
+ </locale>
33
+ <locale xml:lang="de">
34
+ <terms>
35
+ <term name="retrieved">verfügbar</term>
36
+ <term name="from">unter</term>
37
+ </terms>
38
+ </locale>
39
+ <macro name="author">
40
+ <names variable="author">
41
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
42
+ <label form="long" prefix=", "/>
43
+ <substitute>
44
+ <names variable="editor"/>
45
+ </substitute>
46
+ </names>
47
+ </macro>
48
+ <macro name="editor">
49
+ <group delimiter=": ">
50
+ <choose>
51
+ <if type="chapter paper-conference">
52
+ <text term="in" text-case="capitalize-first"/>
53
+ </if>
54
+ </choose>
55
+ <names variable="editor" suffix=".">
56
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
57
+ <label form="long" prefix=", "/>
58
+ </names>
59
+ </group>
60
+ </macro>
61
+ <macro name="publisher">
62
+ <group delimiter=": " suffix=";">
63
+ <choose>
64
+ <if type="thesis">
65
+ <text variable="publisher-place" prefix="[" suffix="]"/>
66
+ </if>
67
+ <else>
68
+ <text variable="publisher-place"/>
69
+ </else>
70
+ </choose>
71
+ <text variable="publisher"/>
72
+ </group>
73
+ </macro>
74
+ <macro name="access">
75
+ <choose>
76
+ <if variable="URL">
77
+ <group delimiter=": ">
78
+ <group delimiter=" ">
79
+ <text term="retrieved" text-case="capitalize-first"/>
80
+ <text term="from"/>
81
+ </group>
82
+ <text variable="URL"/>
83
+ </group>
84
+ </if>
85
+ </choose>
86
+ </macro>
87
+ <macro name="accessed-date">
88
+ <choose>
89
+ <if variable="URL">
90
+ <group prefix="[" suffix="]" delimiter=" ">
91
+ <text term="cited" text-case="lowercase"/>
92
+ <date variable="accessed" suffix="">
93
+ <date-part name="year"/>
94
+ <date-part name="month" prefix=" " form="short" strip-periods="true"/>
95
+ <date-part name="day" prefix=" "/>
96
+ </date>
97
+ </group>
98
+ </if>
99
+ </choose>
100
+ </macro>
101
+ <macro name="container-title">
102
+ <choose>
103
+ <if type="article-journal article-magazine chapter paper-conference article-newspaper" match="any">
104
+ <group suffix="." delimiter=" ">
105
+ <text variable="container-title" form="short"/>
106
+ <choose>
107
+ <if variable="URL">
108
+ <text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/>
109
+ </if>
110
+ </choose>
111
+ </group>
112
+ <text macro="edition" prefix=" "/>
113
+ </if>
114
+ <!--add event-name and event-place once they become available-->
115
+ <else-if type="bill legislation">
116
+ <group delimiter=", ">
117
+ <group delimiter=". ">
118
+ <text variable="container-title" form="short"/>
119
+ <group delimiter=" ">
120
+ <text term="section" form="short" text-case="capitalize-first"/>
121
+ <text variable="section"/>
122
+ </group>
123
+ </group>
124
+ <text variable="number"/>
125
+ </group>
126
+ </else-if>
127
+ <else>
128
+ <text variable="container-title" suffix="." form="short"/>
129
+ </else>
130
+ </choose>
131
+ </macro>
132
+ <macro name="title">
133
+ <text variable="title"/>
134
+ <choose>
135
+ <if type="article-journal article-magazine chapter paper-conference article-newspaper" match="none">
136
+ <choose>
137
+ <if variable="URL">
138
+ <text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
139
+ </if>
140
+ </choose>
141
+ <text macro="edition" prefix=". "/>
142
+ </if>
143
+ </choose>
144
+ <choose>
145
+ <if type="thesis">
146
+ <text variable="genre" prefix=" [" suffix="]"/>
147
+ </if>
148
+ </choose>
149
+ </macro>
150
+ <macro name="edition">
151
+ <choose>
152
+ <if is-numeric="edition">
153
+ <group delimiter=" ">
154
+ <number variable="edition" form="ordinal"/>
155
+ <text term="edition" form="short"/>
156
+ </group>
157
+ </if>
158
+ <else>
159
+ <text variable="edition" suffix="."/>
160
+ </else>
161
+ </choose>
162
+ </macro>
163
+ <macro name="date">
164
+ <choose>
165
+ <if type="article-journal article-magazine article-newspaper" match="any">
166
+ <group suffix=";" delimiter=" ">
167
+ <date variable="issued" delimiter=" ">
168
+ <date-part name="year"/>
169
+ <date-part name="month" form="short" strip-periods="true"/>
170
+ <date-part name="day"/>
171
+ </date>
172
+ <text macro="accessed-date"/>
173
+ </group>
174
+ </if>
175
+ <else-if type="bill legislation">
176
+ <group delimiter=", ">
177
+ <date variable="issued" delimiter=" ">
178
+ <date-part name="month" form="short" strip-periods="true"/>
179
+ <date-part name="day"/>
180
+ </date>
181
+ <date variable="issued">
182
+ <date-part name="year"/>
183
+ </date>
184
+ </group>
185
+ </else-if>
186
+ <else-if type="report">
187
+ <date variable="issued" delimiter=" ">
188
+ <date-part name="year"/>
189
+ <date-part name="month" form="short" strip-periods="true"/>
190
+ </date>
191
+ </else-if>
192
+ <else>
193
+ <group suffix=".">
194
+ <date variable="issued">
195
+ <date-part name="year"/>
196
+ </date>
197
+ <text macro="accessed-date" prefix=" "/>
198
+ </group>
199
+ </else>
200
+ </choose>
201
+ </macro>
202
+ <macro name="pages">
203
+ <choose>
204
+ <if type="article-journal article-magazine article-newspaper" match="any">
205
+ <text variable="page" prefix=":"/>
206
+ </if>
207
+ <else>
208
+ <text variable="page" prefix=" p. "/>
209
+ </else>
210
+ </choose>
211
+ </macro>
212
+ <macro name="journal-location">
213
+ <choose>
214
+ <if type="article-journal article-magazine" match="any">
215
+ <text variable="volume"/>
216
+ <text variable="issue" prefix="(" suffix=")"/>
217
+ </if>
218
+ </choose>
219
+ </macro>
220
+ <macro name="report-details">
221
+ <choose>
222
+ <if type="report">
223
+ <text variable="number" prefix="Report No.: "/>
224
+ </if>
225
+ </choose>
226
+ </macro>
227
+ <citation collapse="citation-number">
228
+ <sort>
229
+ <key variable="citation-number"/>
230
+ </sort>
231
+ <layout prefix="[" suffix="]" delimiter=",">
232
+ <text variable="citation-number"/>
233
+ </layout>
234
+ </citation>
235
+ <bibliography et-al-min="7" et-al-use-first="6" second-field-align="flush">
236
+ <layout>
237
+ <text variable="citation-number" suffix=". "/>
238
+ <group delimiter=". " suffix=". ">
239
+ <text macro="author"/>
240
+ <text macro="title"/>
241
+ </group>
242
+ <group delimiter=" " suffix=". ">
243
+ <text macro="editor"/>
244
+ <text macro="container-title"/>
245
+ <text macro="publisher"/>
246
+ <group>
247
+ <text macro="date"/>
248
+ <text macro="journal-location"/>
249
+ <text macro="pages"/>
250
+ </group>
251
+ </group>
252
+ <text macro="report-details" suffix=". "/>
253
+ <text macro="access"/>
254
+ </layout>
255
+ </bibliography>
256
+ </style>
@@ -0,0 +1,165 @@
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" page-range-format="minimal">
3
+ <info>
4
+ <title>Vancouver with Superscript, Brackets and only year in date</title>
5
+ <id>http://www.zotero.org/styles/vancouver-superscript-bracket-only-year</id>
6
+ <link href="http://www.zotero.org/styles/vancouver-superscript-bracket-only-year" rel="self"/>
7
+ <author>
8
+ <name>Damodaran S E</name>
9
+ <email>damodaran.se@gmail.com</email>
10
+ </author>
11
+ <contributor>
12
+ <name>Michael Berkowitz</name>
13
+ <email>mberkowi@gmu.edu</email>
14
+ </contributor>
15
+ <contributor>
16
+ <name>Sean Takats</name>
17
+ <email>stakats@gmu.edu</email>
18
+ </contributor>
19
+ <contributor>
20
+ <name>Sebastian Karcher</name>
21
+ </contributor>
22
+ <category field="medicine"/>
23
+ <category citation-format="numeric"/>
24
+ <updated>2011-05-06T00:06:00+05:30</updated>
25
+ <summary>
26
+ Vancouver style as outlined by International Committee of Medical Journal Editors Uniform Requirements for Manuscripts Submitted to Biomedical Journals: Sample References
27
+ </summary>
28
+ <link href="http://www.nlm.nih.gov/bsd/uniform_requirements.html" rel="documentation"/>
29
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
30
+ </info>
31
+ <macro name="author">
32
+ <names variable="author" suffix=". ">
33
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
34
+ <label form="long" prefix=", " text-case="lowercase"/>
35
+ <substitute>
36
+ <names variable="editor"/>
37
+ </substitute>
38
+ </names>
39
+ </macro>
40
+ <macro name="editor">
41
+ <names variable="editor" suffix=". ">
42
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
43
+ <label form="long" prefix=", " text-case="lowercase"/>
44
+ </names>
45
+ </macro>
46
+ <macro name="publisher">
47
+ <text variable="publisher-place" suffix=": "/>
48
+ <text variable="publisher" suffix="; "/>
49
+ <group suffix=". ">
50
+ <date variable="issued">
51
+ <date-part name="year"/>
52
+ </date>
53
+ <text macro="accessed-date" prefix=" "/>
54
+ </group>
55
+ </macro>
56
+ <macro name="access">
57
+ <group>
58
+ <text value="Available from: "/>
59
+ <text variable="URL"/>
60
+ </group>
61
+ </macro>
62
+ <macro name="accessed-date">
63
+ <choose>
64
+ <if variable="URL">
65
+ <group prefix="[" suffix="]" delimiter=" ">
66
+ <text term="cited" text-case="lowercase"/>
67
+ <date variable="accessed" suffix="">
68
+ <date-part name="year"/>
69
+ <date-part name="month" prefix=" " form="short" strip-periods="true"/>
70
+ <date-part name="day" prefix=" "/>
71
+ </date>
72
+ </group>
73
+ </if>
74
+ </choose>
75
+ </macro>
76
+ <macro name="journal-title">
77
+ <choose>
78
+ <if type="article-journal article-magazine" match="any">
79
+ <group suffix=" ">
80
+ <text variable="container-title" form="short"/>
81
+ <choose>
82
+ <if variable="URL">
83
+ <text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
84
+ </if>
85
+ </choose>
86
+ </group>
87
+ </if>
88
+ <else>
89
+ <text variable="container-title" form="short"/>
90
+ </else>
91
+ </choose>
92
+ </macro>
93
+ <macro name="title">
94
+ <group delimiter=" ">
95
+ <text variable="title"/>
96
+ <choose>
97
+ <if type="article-journal article-magazine" match="none">
98
+ <choose>
99
+ <if variable="URL">
100
+ <text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/>
101
+ </if>
102
+ </choose>
103
+ </if>
104
+ </choose>
105
+ </group>
106
+ </macro>
107
+ <macro name="edition">
108
+ <choose>
109
+ <if is-numeric="edition">
110
+ <group delimiter=" ">
111
+ <number variable="edition" form="ordinal"/>
112
+ <text term="edition" form="short" suffix="." strip-periods="true"/>
113
+ </group>
114
+ </if>
115
+ <else>
116
+ <text variable="edition" suffix="."/>
117
+ </else>
118
+ </choose>
119
+ </macro>
120
+ <citation collapse="citation-number">
121
+ <sort>
122
+ <key variable="citation-number"/>
123
+ </sort>
124
+ <layout delimiter="," prefix="[" suffix="]" vertical-align="sup">
125
+ <text variable="citation-number"/>
126
+ </layout>
127
+ </citation>
128
+ <bibliography et-al-min="7" et-al-use-first="6" second-field-align="flush">
129
+ <layout>
130
+ <text variable="citation-number" suffix=". "/>
131
+ <text macro="author"/>
132
+ <text macro="title" suffix=". "/>
133
+ <choose>
134
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
135
+ <text macro="edition" prefix=" " suffix=" "/>
136
+ <text macro="publisher" prefix=" "/>
137
+ </if>
138
+ <else-if type="chapter paper-conference" match="any">
139
+ <group prefix=" " suffix=". ">
140
+ <text term="in" suffix=": " text-case="capitalize-first"/>
141
+ <text macro="editor"/>
142
+ <text variable="container-title"/>
143
+ </group>
144
+ <text macro="publisher" prefix=" "/>
145
+ <text variable="page" prefix=" p. " suffix="."/>
146
+ </else-if>
147
+ <else>
148
+ <text macro="journal-title"/>
149
+ <group suffix=";">
150
+ <date variable="issued">
151
+ <date-part name="year"/>
152
+ </date>
153
+ <text macro="accessed-date" prefix=" "/>
154
+ </group>
155
+ <group suffix=". ">
156
+ <text variable="volume"/>
157
+ <text variable="issue" prefix="(" suffix=")"/>
158
+ <text variable="page" prefix=":"/>
159
+ </group>
160
+ </else>
161
+ </choose>
162
+ <text macro="access"/>
163
+ </layout>
164
+ </bibliography>
165
+ </style>
@@ -0,0 +1,256 @@
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" page-range-format="minimal">
3
+ <info>
4
+ <title>Vancouver with Superscript</title>
5
+ <id>http://www.zotero.org/styles/vancouver-superscript</id>
6
+ <link href="http://www.zotero.org/styles/vancouver-superscript" rel="self"/>
7
+ <author>
8
+ <name>Michael Berkowitz</name>
9
+ <email>mberkowi@gmu.edu</email>
10
+ </author>
11
+ <contributor>
12
+ <name>Sean Takats</name>
13
+ <email>stakats@gmu.edu</email>
14
+ </contributor>
15
+ <contributor>
16
+ <name>Sebastian Karcher</name>
17
+ </contributor>
18
+ <category field="medicine"/>
19
+ <category citation-format="numeric"/>
20
+ <updated>2008-09-16T00:00:00+00:00</updated>
21
+ <summary>
22
+ Vancouver style as outlined by International Committee of Medical Journal Editors Uniform Requirements for Manuscripts Submitted to Biomedical Journals: Sample References
23
+ </summary>
24
+ <link href="http://www.nlm.nih.gov/bsd/uniform_requirements.html" rel="documentation"/>
25
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
26
+ </info>
27
+ <locale xml:lang="en">
28
+ <terms>
29
+ <term name="retrieved">available</term>
30
+ <term name="section" form="short">sect.</term>
31
+ </terms>
32
+ </locale>
33
+ <locale xml:lang="de">
34
+ <terms>
35
+ <term name="retrieved">verfügbar</term>
36
+ <term name="from">unter</term>
37
+ </terms>
38
+ </locale>
39
+ <macro name="author">
40
+ <names variable="author">
41
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
42
+ <label form="long" prefix=", "/>
43
+ <substitute>
44
+ <names variable="editor"/>
45
+ </substitute>
46
+ </names>
47
+ </macro>
48
+ <macro name="editor">
49
+ <group delimiter=": ">
50
+ <choose>
51
+ <if type="chapter paper-conference">
52
+ <text term="in" text-case="capitalize-first"/>
53
+ </if>
54
+ </choose>
55
+ <names variable="editor" suffix=".">
56
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
57
+ <label form="long" prefix=", "/>
58
+ </names>
59
+ </group>
60
+ </macro>
61
+ <macro name="publisher">
62
+ <group delimiter=": " suffix=";">
63
+ <choose>
64
+ <if type="thesis">
65
+ <text variable="publisher-place" prefix="[" suffix="]"/>
66
+ </if>
67
+ <else>
68
+ <text variable="publisher-place"/>
69
+ </else>
70
+ </choose>
71
+ <text variable="publisher"/>
72
+ </group>
73
+ </macro>
74
+ <macro name="access">
75
+ <choose>
76
+ <if variable="URL">
77
+ <group delimiter=": ">
78
+ <group delimiter=" ">
79
+ <text term="retrieved" text-case="capitalize-first"/>
80
+ <text term="from"/>
81
+ </group>
82
+ <text variable="URL"/>
83
+ </group>
84
+ </if>
85
+ </choose>
86
+ </macro>
87
+ <macro name="accessed-date">
88
+ <choose>
89
+ <if variable="URL">
90
+ <group prefix="[" suffix="]" delimiter=" ">
91
+ <text term="cited" text-case="lowercase"/>
92
+ <date variable="accessed" suffix="">
93
+ <date-part name="year"/>
94
+ <date-part name="month" prefix=" " form="short" strip-periods="true"/>
95
+ <date-part name="day" prefix=" "/>
96
+ </date>
97
+ </group>
98
+ </if>
99
+ </choose>
100
+ </macro>
101
+ <macro name="container-title">
102
+ <choose>
103
+ <if type="article-journal article-magazine chapter paper-conference article-newspaper" match="any">
104
+ <group suffix="." delimiter=" ">
105
+ <text variable="container-title" form="short"/>
106
+ <choose>
107
+ <if variable="URL">
108
+ <text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/>
109
+ </if>
110
+ </choose>
111
+ </group>
112
+ <text macro="edition" prefix=" "/>
113
+ </if>
114
+ <!--add event-name and event-place once they become available-->
115
+ <else-if type="bill legislation">
116
+ <group delimiter=", ">
117
+ <group delimiter=". ">
118
+ <text variable="container-title" form="short"/>
119
+ <group delimiter=" ">
120
+ <text term="section" form="short" text-case="capitalize-first"/>
121
+ <text variable="section"/>
122
+ </group>
123
+ </group>
124
+ <text variable="number"/>
125
+ </group>
126
+ </else-if>
127
+ <else>
128
+ <text variable="container-title" suffix="." form="short"/>
129
+ </else>
130
+ </choose>
131
+ </macro>
132
+ <macro name="title">
133
+ <text variable="title"/>
134
+ <choose>
135
+ <if type="article-journal article-magazine chapter paper-conference article-newspaper" match="none">
136
+ <choose>
137
+ <if variable="URL">
138
+ <text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
139
+ </if>
140
+ </choose>
141
+ <text macro="edition" prefix=". "/>
142
+ </if>
143
+ </choose>
144
+ <choose>
145
+ <if type="thesis">
146
+ <text variable="genre" prefix=" [" suffix="]"/>
147
+ </if>
148
+ </choose>
149
+ </macro>
150
+ <macro name="edition">
151
+ <choose>
152
+ <if is-numeric="edition">
153
+ <group delimiter=" ">
154
+ <number variable="edition" form="ordinal"/>
155
+ <text term="edition" form="short"/>
156
+ </group>
157
+ </if>
158
+ <else>
159
+ <text variable="edition" suffix="."/>
160
+ </else>
161
+ </choose>
162
+ </macro>
163
+ <macro name="date">
164
+ <choose>
165
+ <if type="article-journal article-magazine article-newspaper" match="any">
166
+ <group suffix=";" delimiter=" ">
167
+ <date variable="issued" delimiter=" ">
168
+ <date-part name="year"/>
169
+ <date-part name="month" form="short" strip-periods="true"/>
170
+ <date-part name="day"/>
171
+ </date>
172
+ <text macro="accessed-date"/>
173
+ </group>
174
+ </if>
175
+ <else-if type="bill legislation">
176
+ <group delimiter=", ">
177
+ <date variable="issued" delimiter=" ">
178
+ <date-part name="month" form="short" strip-periods="true"/>
179
+ <date-part name="day"/>
180
+ </date>
181
+ <date variable="issued">
182
+ <date-part name="year"/>
183
+ </date>
184
+ </group>
185
+ </else-if>
186
+ <else-if type="report">
187
+ <date variable="issued" delimiter=" ">
188
+ <date-part name="year"/>
189
+ <date-part name="month" form="short" strip-periods="true"/>
190
+ </date>
191
+ </else-if>
192
+ <else>
193
+ <group suffix=".">
194
+ <date variable="issued">
195
+ <date-part name="year"/>
196
+ </date>
197
+ <text macro="accessed-date" prefix=" "/>
198
+ </group>
199
+ </else>
200
+ </choose>
201
+ </macro>
202
+ <macro name="pages">
203
+ <choose>
204
+ <if type="article-journal article-magazine article-newspaper" match="any">
205
+ <text variable="page" prefix=":"/>
206
+ </if>
207
+ <else>
208
+ <text variable="page" prefix=" p. "/>
209
+ </else>
210
+ </choose>
211
+ </macro>
212
+ <macro name="journal-location">
213
+ <choose>
214
+ <if type="article-journal article-magazine" match="any">
215
+ <text variable="volume"/>
216
+ <text variable="issue" prefix="(" suffix=")"/>
217
+ </if>
218
+ </choose>
219
+ </macro>
220
+ <macro name="report-details">
221
+ <choose>
222
+ <if type="report">
223
+ <text variable="number" prefix="Report No.: "/>
224
+ </if>
225
+ </choose>
226
+ </macro>
227
+ <citation collapse="citation-number">
228
+ <sort>
229
+ <key variable="citation-number"/>
230
+ </sort>
231
+ <layout delimiter="," vertical-align="sup">
232
+ <text variable="citation-number"/>
233
+ </layout>
234
+ </citation>
235
+ <bibliography et-al-min="7" et-al-use-first="6" second-field-align="flush">
236
+ <layout>
237
+ <text variable="citation-number" suffix=". "/>
238
+ <group delimiter=". " suffix=". ">
239
+ <text macro="author"/>
240
+ <text macro="title"/>
241
+ </group>
242
+ <group delimiter=" " suffix=". ">
243
+ <text macro="editor"/>
244
+ <text macro="container-title"/>
245
+ <text macro="publisher"/>
246
+ <group>
247
+ <text macro="date"/>
248
+ <text macro="journal-location"/>
249
+ <text macro="pages"/>
250
+ </group>
251
+ </group>
252
+ <text macro="report-details" suffix=". "/>
253
+ <text macro="access"/>
254
+ </layout>
255
+ </bibliography>
256
+ </style>