csl 1.4.5 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +10 -30
  3. data/Rakefile +1 -1
  4. data/csl.gemspec +10 -13
  5. data/lib/csl/locale/term.rb +1 -1
  6. data/lib/csl/version.rb +1 -1
  7. metadata +11 -88
  8. data/.rspec +0 -3
  9. data/.simplecov +0 -4
  10. data/Guardfile +0 -15
  11. data/features/locales/loading.feature +0 -57
  12. data/features/locales/ordinalize.feature +0 -713
  13. data/features/parser/choose.feature +0 -16
  14. data/features/parser/info.feature +0 -27
  15. data/features/parser/localized_dates.feature +0 -35
  16. data/features/parser/terms.feature +0 -28
  17. data/features/step_definitions/locale_steps.rb +0 -36
  18. data/features/step_definitions/parser_steps.rb +0 -40
  19. data/features/step_definitions/style_steps.rb +0 -16
  20. data/features/style/loading.feature +0 -53
  21. data/features/support/env.rb +0 -24
  22. data/spec/csl/info_spec.rb +0 -278
  23. data/spec/csl/locale/date_spec.rb +0 -63
  24. data/spec/csl/locale/style_options_spec.rb +0 -19
  25. data/spec/csl/locale/term_spec.rb +0 -255
  26. data/spec/csl/locale_spec.rb +0 -245
  27. data/spec/csl/node_spec.rb +0 -273
  28. data/spec/csl/parser_spec.rb +0 -112
  29. data/spec/csl/schema_spec.rb +0 -112
  30. data/spec/csl/style/bibliography_spec.rb +0 -7
  31. data/spec/csl/style/choose_spec.rb +0 -66
  32. data/spec/csl/style/citation_spec.rb +0 -7
  33. data/spec/csl/style/date_spec.rb +0 -21
  34. data/spec/csl/style/group_spec.rb +0 -7
  35. data/spec/csl/style/label_spec.rb +0 -44
  36. data/spec/csl/style/layout_spec.rb +0 -7
  37. data/spec/csl/style/macro_spec.rb +0 -7
  38. data/spec/csl/style/names_spec.rb +0 -36
  39. data/spec/csl/style/number_spec.rb +0 -85
  40. data/spec/csl/style/sort_spec.rb +0 -11
  41. data/spec/csl/style/text_spec.rb +0 -7
  42. data/spec/csl/style_spec.rb +0 -137
  43. data/spec/csl/treelike_spec.rb +0 -151
  44. data/spec/fixtures/locales/locales-de-DE.xml +0 -298
  45. data/spec/fixtures/locales/locales-en-GB.xml +0 -304
  46. data/spec/fixtures/locales/locales-en-US.xml +0 -304
  47. data/spec/fixtures/styles/apa.csl +0 -443
  48. data/spec/spec_helper.rb +0 -57
@@ -1,304 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="en-US">
3
- <info>
4
- <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
5
- <updated>2012-07-04T23:31:02+00:00</updated>
6
- </info>
7
- <style-options punctuation-in-quote="true"/>
8
- <date form="text">
9
- <date-part name="month" suffix=" "/>
10
- <date-part name="day" suffix=", "/>
11
- <date-part name="year"/>
12
- </date>
13
- <date form="numeric">
14
- <date-part name="month" form="numeric-leading-zeros" suffix="/"/>
15
- <date-part name="day" form="numeric-leading-zeros" suffix="/"/>
16
- <date-part name="year"/>
17
- </date>
18
- <terms>
19
- <term name="accessed">accessed</term>
20
- <term name="and">and</term>
21
- <term name="and others">and others</term>
22
- <term name="anonymous">anonymous</term>
23
- <term name="anonymous" form="short">anon.</term>
24
- <term name="at">at</term>
25
- <term name="available at">available at</term>
26
- <term name="by">by</term>
27
- <term name="circa">circa</term>
28
- <term name="circa" form="short">c.</term>
29
- <term name="cited">cited</term>
30
- <term name="edition">
31
- <single>edition</single>
32
- <multiple>editions</multiple>
33
- </term>
34
- <term name="edition" form="short">ed.</term>
35
- <term name="et-al">et al.</term>
36
- <term name="forthcoming">forthcoming</term>
37
- <term name="from">from</term>
38
- <term name="ibid">ibid.</term>
39
- <term name="in">in</term>
40
- <term name="in press">in press</term>
41
- <term name="internet">internet</term>
42
- <term name="interview">interview</term>
43
- <term name="letter">letter</term>
44
- <term name="no date">no date</term>
45
- <term name="no date" form="short">n.d.</term>
46
- <term name="online">online</term>
47
- <term name="presented at">presented at the</term>
48
- <term name="reference">
49
- <single>reference</single>
50
- <multiple>references</multiple>
51
- </term>
52
- <term name="reference" form="short">
53
- <single>ref.</single>
54
- <multiple>refs.</multiple>
55
- </term>
56
- <term name="retrieved">retrieved</term>
57
- <term name="scale">scale</term>
58
- <term name="version">version</term>
59
-
60
- <!-- ANNO DOMINI; BEFORE CHRIST -->
61
- <term name="ad">AD</term>
62
- <term name="bc">BC</term>
63
-
64
- <!-- PUNCTUATION -->
65
- <term name="open-quote">“</term>
66
- <term name="close-quote">”</term>
67
- <term name="open-inner-quote">‘</term>
68
- <term name="close-inner-quote">’</term>
69
- <term name="page-range-delimiter">–</term>
70
-
71
- <!-- ORDINALS -->
72
- <term name="ordinal">th</term>
73
- <term name="ordinal-01">st</term>
74
- <term name="ordinal-02">nd</term>
75
- <term name="ordinal-03">rd</term>
76
- <term name="ordinal-11">th</term>
77
- <term name="ordinal-12">th</term>
78
- <term name="ordinal-13">th</term>
79
-
80
- <!-- LONG ORDINALS -->
81
- <term name="long-ordinal-01">first</term>
82
- <term name="long-ordinal-02">second</term>
83
- <term name="long-ordinal-03">third</term>
84
- <term name="long-ordinal-04">fourth</term>
85
- <term name="long-ordinal-05">fifth</term>
86
- <term name="long-ordinal-06">sixth</term>
87
- <term name="long-ordinal-07">seventh</term>
88
- <term name="long-ordinal-08">eighth</term>
89
- <term name="long-ordinal-09">ninth</term>
90
- <term name="long-ordinal-10">tenth</term>
91
-
92
- <!-- LONG LOCATOR FORMS -->
93
- <term name="book">
94
- <single>book</single>
95
- <multiple>books</multiple>
96
- </term>
97
- <term name="chapter">
98
- <single>chapter</single>
99
- <multiple>chapters</multiple>
100
- </term>
101
- <term name="column">
102
- <single>column</single>
103
- <multiple>columns</multiple>
104
- </term>
105
- <term name="figure">
106
- <single>figure</single>
107
- <multiple>figures</multiple>
108
- </term>
109
- <term name="folio">
110
- <single>folio</single>
111
- <multiple>folios</multiple>
112
- </term>
113
- <term name="issue">
114
- <single>number</single>
115
- <multiple>numbers</multiple>
116
- </term>
117
- <term name="line">
118
- <single>line</single>
119
- <multiple>lines</multiple>
120
- </term>
121
- <term name="note">
122
- <single>note</single>
123
- <multiple>notes</multiple>
124
- </term>
125
- <term name="opus">
126
- <single>opus</single>
127
- <multiple>opera</multiple>
128
- </term>
129
- <term name="page">
130
- <single>page</single>
131
- <multiple>pages</multiple>
132
- </term>
133
- <term name="paragraph">
134
- <single>paragraph</single>
135
- <multiple>paragraph</multiple>
136
- </term>
137
- <term name="part">
138
- <single>part</single>
139
- <multiple>parts</multiple>
140
- </term>
141
- <term name="section">
142
- <single>section</single>
143
- <multiple>sections</multiple>
144
- </term>
145
- <term name="sub verbo">
146
- <single>sub verbo</single>
147
- <multiple>sub verbis</multiple>
148
- </term>
149
- <term name="verse">
150
- <single>verse</single>
151
- <multiple>verses</multiple>
152
- </term>
153
- <term name="volume">
154
- <single>volume</single>
155
- <multiple>volumes</multiple>
156
- </term>
157
-
158
- <!-- SHORT LOCATOR FORMS -->
159
- <term name="book" form="short">bk.</term>
160
- <term name="chapter" form="short">chap.</term>
161
- <term name="column" form="short">col.</term>
162
- <term name="figure" form="short">fig.</term>
163
- <term name="folio" form="short">f.</term>
164
- <term name="issue" form="short">no.</term>
165
- <term name="line" form="short">l.</term>
166
- <term name="note" form="short">n.</term>
167
- <term name="opus" form="short">op.</term>
168
- <term name="page" form="short">
169
- <single>p.</single>
170
- <multiple>pp.</multiple>
171
- </term>
172
- <term name="paragraph" form="short">para.</term>
173
- <term name="part" form="short">pt.</term>
174
- <term name="section" form="short">sec.</term>
175
- <term name="sub verbo" form="short">
176
- <single>s.v.</single>
177
- <multiple>s.vv.</multiple>
178
- </term>
179
- <term name="verse" form="short">
180
- <single>v.</single>
181
- <multiple>vv.</multiple>
182
- </term>
183
- <term name="volume" form="short">
184
- <single>vol.</single>
185
- <multiple>vols.</multiple>
186
- </term>
187
-
188
- <!-- SYMBOL LOCATOR FORMS -->
189
- <term name="paragraph" form="symbol">
190
- <single>¶</single>
191
- <multiple>¶¶</multiple>
192
- </term>
193
- <term name="section" form="symbol">
194
- <single>§</single>
195
- <multiple>§§</multiple>
196
- </term>
197
-
198
- <!-- LONG ROLE FORMS -->
199
- <term name="director">
200
- <single>director</single>
201
- <multiple>directors</multiple>
202
- </term>
203
- <term name="editor">
204
- <single>editor</single>
205
- <multiple>editors</multiple>
206
- </term>
207
- <term name="editorial-director">
208
- <single>editor</single>
209
- <multiple>editors</multiple>
210
- </term>
211
- <term name="illustrator">
212
- <single>illustrator</single>
213
- <multiple>illustrators</multiple>
214
- </term>
215
- <term name="translator">
216
- <single>translator</single>
217
- <multiple>translators</multiple>
218
- </term>
219
- <term name="editortranslator">
220
- <single>editor &amp; translator</single>
221
- <multiple>editors &amp; translators</multiple>
222
- </term>
223
-
224
- <!-- SHORT ROLE FORMS -->
225
- <term name="director" form="short">
226
- <single>dir.</single>
227
- <multiple>dirs.</multiple>
228
- </term>
229
- <term name="editor" form="short">
230
- <single>ed.</single>
231
- <multiple>eds.</multiple>
232
- </term>
233
- <term name="editorial-director" form="short">
234
- <single>ed.</single>
235
- <multiple>eds.</multiple>
236
- </term>
237
- <term name="illustrator" form="short">
238
- <single>ill.</single>
239
- <multiple>ills.</multiple>
240
- </term>
241
- <term name="translator" form="short">
242
- <single>tran.</single>
243
- <multiple>trans.</multiple>
244
- </term>
245
- <term name="editortranslator" form="short">
246
- <single>ed. &amp; tran.</single>
247
- <multiple>eds. &amp; trans.</multiple>
248
- </term>
249
-
250
- <!-- VERB ROLE FORMS -->
251
- <term name="director" form="verb">directed by</term>
252
- <term name="editor" form="verb">edited by</term>
253
- <term name="editorial-director" form="verb">edited by</term>
254
- <term name="illustrator" form="verb">illustrated by</term>
255
- <term name="interviewer" form="verb">interview by</term>
256
- <term name="recipient" form="verb">to</term>
257
- <term name="reviewed-author" form="verb">by</term>
258
- <term name="translator" form="verb">translated by</term>
259
- <term name="editortranslator" form="verb">edited &amp; translated by</term>
260
-
261
- <!-- SHORT VERB ROLE FORMS -->
262
- <term name="container-author" form="verb-short">by</term>
263
- <term name="director" form="verb-short">dir. by</term>
264
- <term name="editor" form="verb-short">ed. by</term>
265
- <term name="editorial-director" form="verb-short">ed. by</term>
266
- <term name="illustrator" form="verb-short">illus. by</term>
267
- <term name="translator" form="verb-short">trans. by</term>
268
- <term name="editortranslator" form="verb-short">ed. &amp; trans. by</term>
269
-
270
- <!-- LONG MONTH FORMS -->
271
- <term name="month-01">January</term>
272
- <term name="month-02">February</term>
273
- <term name="month-03">March</term>
274
- <term name="month-04">April</term>
275
- <term name="month-05">May</term>
276
- <term name="month-06">June</term>
277
- <term name="month-07">July</term>
278
- <term name="month-08">August</term>
279
- <term name="month-09">September</term>
280
- <term name="month-10">October</term>
281
- <term name="month-11">November</term>
282
- <term name="month-12">December</term>
283
-
284
- <!-- SHORT MONTH FORMS -->
285
- <term name="month-01" form="short">Jan.</term>
286
- <term name="month-02" form="short">Feb.</term>
287
- <term name="month-03" form="short">Mar.</term>
288
- <term name="month-04" form="short">Apr.</term>
289
- <term name="month-05" form="short">May</term>
290
- <term name="month-06" form="short">Jun.</term>
291
- <term name="month-07" form="short">Jul.</term>
292
- <term name="month-08" form="short">Aug.</term>
293
- <term name="month-09" form="short">Sep.</term>
294
- <term name="month-10" form="short">Oct.</term>
295
- <term name="month-11" form="short">Nov.</term>
296
- <term name="month-12" form="short">Dec.</term>
297
-
298
- <!-- SEASONS -->
299
- <term name="season-01">Spring</term>
300
- <term name="season-02">Summer</term>
301
- <term name="season-03">Autumn</term>
302
- <term name="season-04">Winter</term>
303
- </terms>
304
- </locale>
@@ -1,443 +0,0 @@
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="never">
3
- <!-- This style was edited with the Visual CSL Editor (http://steveridout.com/csl/visualEditor/) -->
4
- <info>
5
- <title>American Psychological Association 6th Edition</title>
6
- <id>http://www.zotero.org/styles/apa</id>
7
- <link href="http://www.zotero.org/styles/apa" rel="self"/>
8
- <link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/>
9
- <author>
10
- <name>Simon Kornblith</name>
11
- <email>simon@simonster.com</email>
12
- </author>
13
- <contributor>
14
- <name>Bruce D'Arcus</name>
15
- </contributor>
16
- <contributor>
17
- <name>Curtis M. Humphrey</name>
18
- </contributor>
19
- <contributor>
20
- <name>Richard Karnesky</name>
21
- <email>karnesky+zotero@gmail.com</email>
22
- <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
23
- </contributor>
24
- <contributor>
25
- <name>Sebastian Karcher</name>
26
- </contributor>
27
- <category citation-format="author-date"/>
28
- <category field="psychology"/>
29
- <category field="generic-base"/>
30
- <updated>2012-09-27T22:06:38+00:00</updated>
31
- <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
32
- </info>
33
- <locale xml:lang="en">
34
- <terms>
35
- <term name="editortranslator" form="short">
36
- <single>ed. &amp; trans.</single>
37
- <multiple>eds. &amp; trans.</multiple>
38
- </term>
39
- <term name="translator" form="short">
40
- <single>trans.</single>
41
- <multiple>trans.</multiple>
42
- </term>
43
- </terms>
44
- </locale>
45
- <macro name="container-contributors">
46
- <choose>
47
- <if type="chapter paper-conference" match="any">
48
- <names variable="editor translator" delimiter=", " suffix=", ">
49
- <name and="symbol" initialize-with=". " delimiter=", "/>
50
- <label form="short" prefix=" (" text-case="title" suffix=")"/>
51
- </names>
52
- </if>
53
- </choose>
54
- </macro>
55
- <macro name="secondary-contributors">
56
- <choose>
57
- <if type="chapter paper-conference" match="none">
58
- <names variable="translator editor" delimiter=", " prefix=" (" suffix=")">
59
- <name and="symbol" initialize-with=". " delimiter=", "/>
60
- <label form="short" prefix=", " text-case="title" suffix=""/>
61
- </names>
62
- </if>
63
- </choose>
64
- </macro>
65
- <macro name="author">
66
- <names variable="author">
67
- <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
68
- <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
69
- <substitute>
70
- <names variable="editor"/>
71
- <names variable="translator"/>
72
- <choose>
73
- <if type="report">
74
- <text variable="publisher"/>
75
- <text macro="title"/>
76
- </if>
77
- <else>
78
- <text macro="title"/>
79
- </else>
80
- </choose>
81
- </substitute>
82
- </names>
83
- </macro>
84
- <macro name="author-short">
85
- <names variable="author">
86
- <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
87
- <substitute>
88
- <names variable="editor"/>
89
- <names variable="translator"/>
90
- <choose>
91
- <if type="report">
92
- <text variable="publisher"/>
93
- <text variable="title" form="short" font-style="italic"/>
94
- </if>
95
- <else-if type="bill book graphic legal_case legislation motion_picture song" match="any">
96
- <text variable="title" form="short" font-style="italic"/>
97
- </else-if>
98
- <else>
99
- <text variable="title" form="short" quotes="true"/>
100
- </else>
101
- </choose>
102
- </substitute>
103
- </names>
104
- </macro>
105
- <macro name="access">
106
- <choose>
107
- <if type="thesis">
108
- <choose>
109
- <if variable="archive" match="any">
110
- <group>
111
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
112
- <text term="from" suffix=" "/>
113
- <text variable="archive" suffix="."/>
114
- <text variable="archive_location" prefix=" (" suffix=")"/>
115
- </group>
116
- </if>
117
- <else>
118
- <group>
119
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
120
- <text term="from" suffix=" "/>
121
- <text variable="URL"/>
122
- </group>
123
- </else>
124
- </choose>
125
- </if>
126
- <else>
127
- <choose>
128
- <if variable="DOI">
129
- <text variable="DOI" prefix="doi:"/>
130
- </if>
131
- <else>
132
- <choose>
133
- <if type="webpage">
134
- <group delimiter=" ">
135
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
136
- <group>
137
- <date variable="accessed" form="text" suffix=", "/>
138
- </group>
139
- <text term="from"/>
140
- <text variable="URL"/>
141
- </group>
142
- </if>
143
- <else>
144
- <group>
145
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
146
- <text term="from" suffix=" "/>
147
- <text variable="URL"/>
148
- </group>
149
- </else>
150
- </choose>
151
- </else>
152
- </choose>
153
- </else>
154
- </choose>
155
- </macro>
156
- <macro name="title">
157
- <choose>
158
- <if type="report thesis" match="any">
159
- <text variable="title" font-style="italic"/>
160
- <group prefix=" (" suffix=")" delimiter=" ">
161
- <text variable="genre"/>
162
- <text variable="number" prefix="No. "/>
163
- </group>
164
- </if>
165
- <else-if type="book graphic motion_picture report song manuscript speech" match="any">
166
- <text variable="title" font-style="italic"/>
167
- </else-if>
168
- <else>
169
- <text variable="title"/>
170
- </else>
171
- </choose>
172
- </macro>
173
- <macro name="publisher">
174
- <choose>
175
- <if type="report" match="any">
176
- <group delimiter=": ">
177
- <text variable="publisher-place"/>
178
- <text variable="publisher"/>
179
- </group>
180
- </if>
181
- <else-if type="thesis" match="any">
182
- <group delimiter=", ">
183
- <text variable="publisher"/>
184
- <text variable="publisher-place"/>
185
- </group>
186
- </else-if>
187
- <else>
188
- <group delimiter=", ">
189
- <choose>
190
- <if variable="event" match="none">
191
- <text variable="genre"/>
192
- </if>
193
- </choose>
194
- <choose>
195
- <if type="article-journal article-magazine" match="none">
196
- <group delimiter=": ">
197
- <text variable="publisher-place"/>
198
- <text variable="publisher"/>
199
- </group>
200
- </if>
201
- </choose>
202
- </group>
203
- </else>
204
- </choose>
205
- </macro>
206
- <macro name="event">
207
- <choose>
208
- <if variable="event">
209
- <choose>
210
- <if variable="genre" match="none">
211
- <text term="presented at" text-case="capitalize-first" suffix=" "/>
212
- <text variable="event"/>
213
- </if>
214
- <else>
215
- <group delimiter=" ">
216
- <text variable="genre" text-case="capitalize-first"/>
217
- <text term="presented at"/>
218
- <text variable="event"/>
219
- </group>
220
- </else>
221
- </choose>
222
- </if>
223
- </choose>
224
- </macro>
225
- <macro name="issued">
226
- <choose>
227
- <if type="bill legal_case legislation" match="none">
228
- <choose>
229
- <if variable="issued">
230
- <group prefix=" (" suffix=")">
231
- <date variable="issued">
232
- <date-part name="year"/>
233
- </date>
234
- <text variable="year-suffix"/>
235
- <choose>
236
- <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
237
- <date variable="issued">
238
- <date-part prefix=", " name="month"/>
239
- <date-part prefix=" " name="day"/>
240
- </date>
241
- </if>
242
- </choose>
243
- </group>
244
- </if>
245
- <else>
246
- <group prefix=" (" suffix=")">
247
- <text term="no date" form="short"/>
248
- <text variable="year-suffix" prefix="-"/>
249
- </group>
250
- </else>
251
- </choose>
252
- </if>
253
- </choose>
254
- </macro>
255
- <macro name="issued-sort">
256
- <choose>
257
- <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
258
- <date variable="issued">
259
- <date-part name="year"/>
260
- <date-part name="month"/>
261
- <date-part name="day"/>
262
- </date>
263
- </if>
264
- <else>
265
- <date variable="issued">
266
- <date-part name="year"/>
267
- </date>
268
- </else>
269
- </choose>
270
- </macro>
271
- <macro name="issued-year">
272
- <choose>
273
- <if variable="issued">
274
- <date variable="issued">
275
- <date-part name="year"/>
276
- </date>
277
- <text variable="year-suffix"/>
278
- </if>
279
- <else>
280
- <text term="no date" form="short"/>
281
- <text variable="year-suffix" prefix="-"/>
282
- </else>
283
- </choose>
284
- </macro>
285
- <macro name="edition">
286
- <choose>
287
- <if is-numeric="edition">
288
- <group delimiter=" ">
289
- <number variable="edition" form="ordinal"/>
290
- <text term="edition" form="short"/>
291
- </group>
292
- </if>
293
- <else>
294
- <text variable="edition" suffix="."/>
295
- </else>
296
- </choose>
297
- </macro>
298
- <macro name="locators">
299
- <choose>
300
- <if type="article-journal article-magazine" match="any">
301
- <group prefix=", " delimiter=", ">
302
- <group>
303
- <text variable="volume" font-style="italic"/>
304
- <text variable="issue" prefix="(" suffix=")"/>
305
- </group>
306
- <text variable="page"/>
307
- </group>
308
- </if>
309
- <else-if type="article-newspaper">
310
- <group delimiter=" " prefix=", ">
311
- <label variable="page" form="short"/>
312
- <text variable="page"/>
313
- </group>
314
- </else-if>
315
- <else-if type="book graphic motion_picture report song chapter paper-conference" match="any">
316
- <group prefix=" (" suffix=")" delimiter=", ">
317
- <text macro="edition"/>
318
- <group>
319
- <text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=" "/>
320
- <number variable="number-of-volumes" form="numeric" prefix="1-"/>
321
- </group>
322
- <group>
323
- <text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
324
- <number variable="volume" form="numeric"/>
325
- </group>
326
- <group>
327
- <label variable="page" form="short" suffix=" "/>
328
- <text variable="page"/>
329
- </group>
330
- </group>
331
- </else-if>
332
- <else-if type="legal_case">
333
- <group prefix=" (" suffix=")" delimiter=" ">
334
- <text variable="authority"/>
335
- <date variable="issued" form="text"/>
336
- </group>
337
- </else-if>
338
- <else-if type="bill legislation">
339
- <date variable="issued" prefix=" (" suffix=")">
340
- <date-part name="year"/>
341
- </date>
342
- </else-if>
343
- </choose>
344
- </macro>
345
- <macro name="citation-locator">
346
- <group>
347
- <choose>
348
- <if locator="chapter">
349
- <label variable="locator" form="long" text-case="capitalize-first"/>
350
- </if>
351
- <else>
352
- <label variable="locator" form="short"/>
353
- </else>
354
- </choose>
355
- <text variable="locator" prefix=" "/>
356
- </group>
357
- </macro>
358
- <macro name="container">
359
- <group>
360
- <choose>
361
- <if type="chapter paper-conference entry-encyclopedia" match="any">
362
- <text term="in" text-case="capitalize-first" suffix=" "/>
363
- </if>
364
- </choose>
365
- <text macro="container-contributors"/>
366
- <text macro="secondary-contributors"/>
367
- <text macro="container-title"/>
368
- </group>
369
- </macro>
370
- <macro name="container-title">
371
- <choose>
372
- <if type="bill legal_case legislation" match="none">
373
- <text variable="container-title" font-style="italic"/>
374
- </if>
375
- <else>
376
- <group delimiter=" " prefix=", ">
377
- <choose>
378
- <if variable="container-title">
379
- <text variable="volume"/>
380
- <text variable="container-title"/>
381
- <group delimiter=" ">
382
- <!--change to label variable="section" as that becomes available -->
383
- <text term="section" form="symbol"/>
384
- <text variable="section"/>
385
- </group>
386
- <text variable="page"/>
387
- </if>
388
- <else>
389
- <choose>
390
- <if type="legal_case">
391
- <text variable="number" prefix="No. "/>
392
- </if>
393
- <else>
394
- <text variable="number" prefix="Pub. L. No. "/>
395
- <group delimiter=" ">
396
- <!--change to label variable="section" as that becomes available -->
397
- <text term="section" form="symbol"/>
398
- <text variable="section"/>
399
- </group>
400
- </else>
401
- </choose>
402
- </else>
403
- </choose>
404
- </group>
405
- </else>
406
- </choose>
407
- </macro>
408
- <citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name">
409
- <sort>
410
- <key macro="author"/>
411
- <key macro="issued-sort"/>
412
- </sort>
413
- <layout prefix="(" suffix=")" delimiter="; ">
414
- <group delimiter=", ">
415
- <text macro="author-short"/>
416
- <text macro="issued-year"/>
417
- <text macro="citation-locator"/>
418
- </group>
419
- </layout>
420
- </citation>
421
- <bibliography hanging-indent="true" et-al-min="8" et-al-use-first="6" et-al-use-last="true" entry-spacing="0" line-spacing="2">
422
- <sort>
423
- <key macro="author"/>
424
- <key macro="issued-sort" sort="ascending"/>
425
- </sort>
426
- <layout>
427
- <group suffix=".">
428
- <group delimiter=". ">
429
- <text macro="author"/>
430
- <text macro="issued"/>
431
- <text macro="title" prefix=" "/>
432
- <text macro="container"/>
433
- </group>
434
- <text macro="locators"/>
435
- <group delimiter=", " prefix=". ">
436
- <text macro="event"/>
437
- <text macro="publisher"/>
438
- </group>
439
- </group>
440
- <text macro="access" prefix=" "/>
441
- </layout>
442
- </bibliography>
443
- </style>