citeproc-ruby 1.1.8 → 1.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +10 -32
  3. data/lib/citeproc/ruby/renderer.rb +2 -1
  4. data/lib/citeproc/ruby/version.rb +1 -1
  5. metadata +14 -84
  6. data/.rspec +0 -3
  7. data/.rubocop.yml +0 -1156
  8. data/.simplecov +0 -4
  9. data/Guardfile +0 -14
  10. data/features/bibliography.feature +0 -25
  11. data/features/locale_overrides.feature +0 -31
  12. data/features/name_options.feature +0 -37
  13. data/features/names.feature +0 -198
  14. data/features/renderer.feature +0 -94
  15. data/features/sort.feature +0 -50
  16. data/features/step_definitions/engine.rb +0 -21
  17. data/features/step_definitions/renderer.rb +0 -85
  18. data/features/style_immanent_locale_terms.feature +0 -30
  19. data/features/support/env.rb +0 -35
  20. data/features/support/hooks.rb +0 -10
  21. data/spec/citeproc/ruby/engine_spec.rb +0 -120
  22. data/spec/citeproc/ruby/formats/default_spec.rb +0 -168
  23. data/spec/citeproc/ruby/formats/html_spec.rb +0 -167
  24. data/spec/citeproc/ruby/renderer/choose_spec.rb +0 -293
  25. data/spec/citeproc/ruby/renderer/date_spec.rb +0 -173
  26. data/spec/citeproc/ruby/renderer/group_spec.rb +0 -114
  27. data/spec/citeproc/ruby/renderer/history_spec.rb +0 -47
  28. data/spec/citeproc/ruby/renderer/label_spec.rb +0 -225
  29. data/spec/citeproc/ruby/renderer/layout_spec.rb +0 -41
  30. data/spec/citeproc/ruby/renderer/macro_spec.rb +0 -31
  31. data/spec/citeproc/ruby/renderer/names_spec.rb +0 -396
  32. data/spec/citeproc/ruby/renderer/number_spec.rb +0 -120
  33. data/spec/citeproc/ruby/renderer/text_spec.rb +0 -125
  34. data/spec/citeproc/ruby/renderer_spec.rb +0 -65
  35. data/spec/fixtures/items.rb +0 -113
  36. data/spec/fixtures/locales/locales-de-DE.xml +0 -298
  37. data/spec/fixtures/locales/locales-en-US.xml +0 -304
  38. data/spec/fixtures/locales/locales-fr-FR.xml +0 -317
  39. data/spec/fixtures/styles/apa-with-different-translations.csl +0 -451
  40. data/spec/fixtures/styles/apa.csl +0 -443
  41. data/spec/fixtures/styles/modern-language-association-8th-edition.csl +0 -293
  42. data/spec/spec_helper.rb +0 -73
@@ -1,451 +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
- <info>
4
- <title>American Psychological Association 6th Edition</title>
5
- <id>http://www.zotero.org/styles/apa-with-different-translations</id>
6
- <link href="http://www.zotero.org/styles/apa-with-different-translations" rel="self"/>
7
- <link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/>
8
- <author>
9
- <name>Simon Kornblith</name>
10
- <email>simon@simonster.com</email>
11
- </author>
12
- <contributor>
13
- <name>Bruce D'Arcus</name>
14
- </contributor>
15
- <contributor>
16
- <name>Curtis M. Humphrey</name>
17
- </contributor>
18
- <contributor>
19
- <name>Richard Karnesky</name>
20
- <email>karnesky+zotero@gmail.com</email>
21
- <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
22
- </contributor>
23
- <contributor>
24
- <name>Sebastian Karcher</name>
25
- </contributor>
26
- <category field="psychology"/>
27
- <category field="generic-base"/>
28
- <category citation-format="author-date"/>
29
- <updated>2010-01-27T20:08:03+00:00</updated>
30
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
31
- </info>
32
- <locale xml:lang="en">
33
- <terms>
34
- <term name="translator" form="short">
35
- <single>Who translated this piece on her/his own</single>
36
- <multiple>Who translated this piece together</multiple>
37
- </term>
38
- </terms>
39
- </locale>
40
- <locale xml:lang="fr">
41
- <terms>
42
- <term name="translator" form="short">
43
- <single>le merveilleux traducteur</single>
44
- <multiple>les traducteurs merveilleux</multiple>
45
- </term>
46
- </terms>
47
- </locale>
48
- <macro name="container-contributors">
49
- <choose>
50
- <if type="chapter paper-conference" match="any">
51
- <text term="in" text-case="capitalize-first" suffix=" "/>
52
- <names variable="editor" delimiter=", " suffix=", ">
53
- <name and="symbol" initialize-with=". " delimiter=", "/>
54
- <label form="short" prefix=" (" text-case="capitalize-first" suffix=")"/>
55
- <substitute>
56
- <names variable="translator"/>
57
- </substitute>
58
- </names>
59
- </if>
60
- </choose>
61
- </macro>
62
- <macro name="secondary-contributors">
63
- <choose>
64
- <if type="chapter paper-conference" match="none">
65
- <names variable="translator" delimiter=", " prefix=" (" suffix=")">
66
- <name and="symbol" initialize-with=". " delimiter=", "/>
67
- <label form="short" prefix=", " text-case="capitalize-first" suffix=""/>
68
- <substitute>
69
- <names variable="editor"/>
70
- </substitute>
71
- </names>
72
- </if>
73
- </choose>
74
- </macro>
75
- <macro name="author">
76
- <names variable="author">
77
- <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
78
- <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first" strip-periods="true"/>
79
- <substitute>
80
- <names variable="editor"/>
81
- <names variable="translator"/>
82
- <choose>
83
- <if type="report">
84
- <text variable="publisher"/>
85
- <text macro="title"/>
86
- </if>
87
- <else>
88
- <text macro="title"/>
89
- </else>
90
- </choose>
91
- </substitute>
92
- </names>
93
- </macro>
94
- <macro name="author-short">
95
- <names variable="author">
96
- <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
97
- <substitute>
98
- <names variable="editor"/>
99
- <names variable="translator"/>
100
- <choose>
101
- <if type="report">
102
- <text variable="publisher"/>
103
- <text variable="title" form="short" font-style="italic"/>
104
- </if>
105
- <else-if type="bill book graphic legal_case legislation motion_picture song" match="any">
106
- <text variable="title" form="short" font-style="italic"/>
107
- </else-if>
108
- <else>
109
- <text variable="title" form="short" quotes="true"/>
110
- </else>
111
- </choose>
112
- </substitute>
113
- </names>
114
- </macro>
115
- <macro name="access">
116
- <choose>
117
- <if type="thesis">
118
- <choose>
119
- <if variable="archive" match="any">
120
- <group>
121
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
122
- <text term="from" suffix=" "/>
123
- <text variable="archive" suffix="."/>
124
- <text variable="archive_location" prefix=" (" suffix=")"/>
125
- </group>
126
- </if>
127
- <else>
128
- <group>
129
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
130
- <text term="from" suffix=" "/>
131
- <text variable="URL"/>
132
- </group>
133
- </else>
134
- </choose>
135
- </if>
136
- <else>
137
- <choose>
138
- <if variable="DOI">
139
- <text variable="DOI" prefix="doi:"/>
140
- </if>
141
- <else>
142
- <choose>
143
- <if type="webpage">
144
- <group delimiter=" ">
145
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
146
- <group>
147
- <date variable="accessed" suffix=", ">
148
- <date-part name="month" suffix=" "/>
149
- <date-part name="day" suffix=", "/>
150
- <date-part name="year"/>
151
- </date>
152
- </group>
153
- <text term="from"/>
154
- <text variable="URL"/>
155
- </group>
156
- </if>
157
- <else>
158
- <group>
159
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
160
- <text term="from" suffix=" "/>
161
- <text variable="URL"/>
162
- </group>
163
- </else>
164
- </choose>
165
- </else>
166
- </choose>
167
- </else>
168
- </choose>
169
- </macro>
170
- <macro name="title">
171
- <choose>
172
- <if type="report thesis" match="any">
173
- <text variable="title" font-style="italic"/>
174
- <group prefix=" (" suffix=")" delimiter=" ">
175
- <text variable="genre"/>
176
- <text variable="number" prefix="No. "/>
177
- </group>
178
- </if>
179
- <else-if type="book graphic motion_picture report song manuscript speech" match="any">
180
- <text variable="title" font-style="italic"/>
181
- </else-if>
182
- <else>
183
- <text variable="title"/>
184
- </else>
185
- </choose>
186
- </macro>
187
- <macro name="publisher">
188
- <choose>
189
- <if type="report" match="any">
190
- <group delimiter=": ">
191
- <text variable="publisher-place"/>
192
- <text variable="publisher"/>
193
- </group>
194
- </if>
195
- <else-if type="thesis" match="any">
196
- <group delimiter=", ">
197
- <text variable="publisher"/>
198
- <text variable="publisher-place"/>
199
- </group>
200
- </else-if>
201
- <else>
202
- <group delimiter=", ">
203
- <choose>
204
- <if variable="event" match="none">
205
- <text variable="genre"/>
206
- </if>
207
- </choose>
208
- <choose>
209
- <if type="article-journal article-magazine" match="none">
210
- <group delimiter=": ">
211
- <text variable="publisher-place"/>
212
- <text variable="publisher"/>
213
- </group>
214
- </if>
215
- </choose>
216
- </group>
217
- </else>
218
- </choose>
219
- </macro>
220
- <macro name="event">
221
- <choose>
222
- <if variable="event">
223
- <choose>
224
- <if variable="genre" match="none">
225
- <text term="presented at" text-case="capitalize-first" suffix=" "/>
226
- <text variable="event"/>
227
- </if>
228
- <else>
229
- <group delimiter=" ">
230
- <text variable="genre" text-case="capitalize-first"/>
231
- <text term="presented at"/>
232
- <text variable="event"/>
233
- </group>
234
- </else>
235
- </choose>
236
- </if>
237
- </choose>
238
- </macro>
239
- <macro name="issued">
240
- <choose>
241
- <if type="bill legal_case legislation" match="none">
242
- <choose>
243
- <if variable="issued">
244
- <group prefix=" (" suffix=").">
245
- <date variable="issued">
246
- <date-part name="year"/>
247
- </date>
248
- <text variable="year-suffix"/>
249
- <choose>
250
- <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
251
- <date variable="issued">
252
- <date-part prefix=", " name="month"/>
253
- <date-part prefix=" " name="day"/>
254
- </date>
255
- </if>
256
- </choose>
257
- </group>
258
- </if>
259
- <else>
260
- <group prefix=" (" suffix=").">
261
- <text term="no date" form="short"/>
262
- <text variable="year-suffix" prefix="-"/>
263
- </group>
264
- </else>
265
- </choose>
266
- </if>
267
- </choose>
268
- </macro>
269
- <macro name="issued-sort">
270
- <choose>
271
- <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
272
- <date variable="issued">
273
- <date-part name="year"/>
274
- <date-part name="month"/>
275
- <date-part name="day"/>
276
- </date>
277
- </if>
278
- <else>
279
- <date variable="issued">
280
- <date-part name="year"/>
281
- </date>
282
- </else>
283
- </choose>
284
- </macro>
285
- <macro name="issued-year">
286
- <choose>
287
- <if variable="issued">
288
- <date variable="issued">
289
- <date-part name="year"/>
290
- </date>
291
- <text variable="year-suffix"/>
292
- </if>
293
- <else>
294
- <text term="no date" form="short"/>
295
- <text variable="year-suffix" prefix="-"/>
296
- </else>
297
- </choose>
298
- </macro>
299
- <macro name="edition">
300
- <choose>
301
- <if is-numeric="edition">
302
- <group delimiter=" ">
303
- <number variable="edition" form="ordinal"/>
304
- <text term="edition" form="short" suffix="." strip-periods="true"/>
305
- </group>
306
- </if>
307
- <else>
308
- <text variable="edition" suffix="."/>
309
- </else>
310
- </choose>
311
- </macro>
312
- <macro name="locators">
313
- <choose>
314
- <if type="article-journal article-magazine" match="any">
315
- <group prefix=", " delimiter=", ">
316
- <group>
317
- <text variable="volume" font-style="italic"/>
318
- <text variable="issue" prefix="(" suffix=")"/>
319
- </group>
320
- <text variable="page"/>
321
- </group>
322
- </if>
323
- <else-if type="article-newspaper">
324
- <group delimiter=" " prefix=", ">
325
- <label variable="page" form="short"/>
326
- <text variable="page"/>
327
- </group>
328
- </else-if>
329
- <else-if type="book graphic motion_picture report song chapter paper-conference" match="any">
330
- <group prefix=" (" suffix=")" delimiter=", ">
331
- <text macro="edition"/>
332
- <group>
333
- <text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=". " strip-periods="true"/>
334
- <number variable="number-of-volumes" form="numeric" prefix="1-"/>
335
- </group>
336
- <group>
337
- <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
338
- <number variable="volume" form="numeric"/>
339
- </group>
340
- <group>
341
- <label variable="page" form="short" suffix=" "/>
342
- <text variable="page"/>
343
- </group>
344
- </group>
345
- </else-if>
346
- <else-if type="legal_case">
347
- <group prefix=" (" suffix=")" delimiter=" ">
348
- <text variable="authority"/>
349
- <date variable="issued" delimiter=" ">
350
- <date-part name="month" form="short"/>
351
- <date-part name="day" suffix=","/>
352
- <date-part name="year"/>
353
- </date>
354
- </group>
355
- </else-if>
356
- <else-if type="bill legislation">
357
- <date variable="issued" prefix=" (" suffix=")">
358
- <date-part name="year"/>
359
- </date>
360
- </else-if>
361
- </choose>
362
- </macro>
363
- <macro name="citation-locator">
364
- <group>
365
- <label variable="locator" form="short"/>
366
- <text variable="locator" prefix=" "/>
367
- </group>
368
- </macro>
369
- <macro name="container">
370
- <choose>
371
- <if type="bill legal_case legislation" match="none">
372
- <text variable="container-title" font-style="italic"/>
373
- </if>
374
- <else>
375
- <group delimiter=" " prefix=", ">
376
- <choose>
377
- <if variable="container-title">
378
- <text variable="volume"/>
379
- <text variable="container-title"/>
380
- <group delimiter=" ">
381
- <!--change to label variable="section" as that becomes available -->
382
- <text term="section" form="symbol"/>
383
- <text variable="section"/>
384
- </group>
385
- <text variable="page"/>
386
- </if>
387
- <else>
388
- <choose>
389
- <if type="legal_case">
390
- <text variable="number" prefix="No. "/>
391
- </if>
392
- <else>
393
- <text variable="number" prefix="Pub. L. No. "/>
394
- <group delimiter=" ">
395
- <!--change to label variable="section" as that becomes available -->
396
- <text term="section" form="symbol"/>
397
- <text variable="section"/>
398
- </group>
399
- </else>
400
- </choose>
401
- </else>
402
- </choose>
403
- </group>
404
- </else>
405
- </choose>
406
- </macro>
407
- <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">
408
- <sort>
409
- <key macro="author"/>
410
- <key macro="issued-sort"/>
411
- </sort>
412
- <layout prefix="(" suffix=")" delimiter="; ">
413
- <group delimiter=", ">
414
- <text macro="author-short"/>
415
- <text macro="issued-year"/>
416
- <text macro="citation-locator"/>
417
- </group>
418
- </layout>
419
- </citation>
420
- <bibliography hanging-indent="true" et-al-min="8" et-al-use-first="7" entry-spacing="0" line-spacing="2">
421
- <sort>
422
- <key macro="author"/>
423
- <key macro="issued-sort" sort="ascending"/>
424
- </sort>
425
- <layout>
426
- <group suffix=".">
427
- <group delimiter=". ">
428
- <text macro="author"/>
429
- <text macro="issued"/>
430
- </group>
431
- <group delimiter=". ">
432
- <text macro="title" prefix=" "/>
433
- <group>
434
- <text macro="container-contributors"/>
435
- <text macro="secondary-contributors"/>
436
- <group delimiter=", ">
437
- <text macro="container"/>
438
- <text variable="collection-title"/>
439
- </group>
440
- </group>
441
- </group>
442
- <text macro="locators"/>
443
- <group delimiter=", " prefix=". ">
444
- <text macro="event"/>
445
- <text macro="publisher"/>
446
- </group>
447
- </group>
448
- <text macro="access" prefix=" "/>
449
- </layout>
450
- </bibliography>
451
- </style>
@@ -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
- <info>
4
- <title>American Psychological Association 6th Edition</title>
5
- <id>http://www.zotero.org/styles/apa</id>
6
- <link href="http://www.zotero.org/styles/apa" rel="self"/>
7
- <link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/>
8
- <author>
9
- <name>Simon Kornblith</name>
10
- <email>simon@simonster.com</email>
11
- </author>
12
- <contributor>
13
- <name>Bruce D'Arcus</name>
14
- </contributor>
15
- <contributor>
16
- <name>Curtis M. Humphrey</name>
17
- </contributor>
18
- <contributor>
19
- <name>Richard Karnesky</name>
20
- <email>karnesky+zotero@gmail.com</email>
21
- <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
22
- </contributor>
23
- <contributor>
24
- <name>Sebastian Karcher</name>
25
- </contributor>
26
- <category field="psychology"/>
27
- <category field="generic-base"/>
28
- <category citation-format="author-date"/>
29
- <updated>2010-01-27T20:08:03+00:00</updated>
30
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
31
- </info>
32
- <locale xml:lang="en">
33
- <terms>
34
- <term name="translator" form="short">
35
- <single>trans.</single>
36
- <multiple>trans.</multiple>
37
- </term>
38
- </terms>
39
- </locale>
40
- <macro name="container-contributors">
41
- <choose>
42
- <if type="chapter paper-conference" match="any">
43
- <text term="in" text-case="capitalize-first" suffix=" "/>
44
- <names variable="editor" delimiter=", " suffix=", ">
45
- <name and="symbol" initialize-with=". " delimiter=", "/>
46
- <label form="short" prefix=" (" text-case="capitalize-first" suffix=")"/>
47
- <substitute>
48
- <names variable="translator"/>
49
- </substitute>
50
- </names>
51
- </if>
52
- </choose>
53
- </macro>
54
- <macro name="secondary-contributors">
55
- <choose>
56
- <if type="chapter paper-conference" match="none">
57
- <names variable="translator" delimiter=", " prefix=" (" suffix=")">
58
- <name and="symbol" initialize-with=". " delimiter=", "/>
59
- <label form="short" prefix=", " text-case="capitalize-first" suffix=""/>
60
- <substitute>
61
- <names variable="editor"/>
62
- </substitute>
63
- </names>
64
- </if>
65
- </choose>
66
- </macro>
67
- <macro name="author">
68
- <names variable="author">
69
- <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
70
- <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first" strip-periods="true"/>
71
- <substitute>
72
- <names variable="editor"/>
73
- <names variable="translator"/>
74
- <choose>
75
- <if type="report">
76
- <text variable="publisher"/>
77
- <text macro="title"/>
78
- </if>
79
- <else>
80
- <text macro="title"/>
81
- </else>
82
- </choose>
83
- </substitute>
84
- </names>
85
- </macro>
86
- <macro name="author-short">
87
- <names variable="author">
88
- <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
89
- <substitute>
90
- <names variable="editor"/>
91
- <names variable="translator"/>
92
- <choose>
93
- <if type="report">
94
- <text variable="publisher"/>
95
- <text variable="title" form="short" font-style="italic"/>
96
- </if>
97
- <else-if type="bill book graphic legal_case legislation motion_picture song" match="any">
98
- <text variable="title" form="short" font-style="italic"/>
99
- </else-if>
100
- <else>
101
- <text variable="title" form="short" quotes="true"/>
102
- </else>
103
- </choose>
104
- </substitute>
105
- </names>
106
- </macro>
107
- <macro name="access">
108
- <choose>
109
- <if type="thesis">
110
- <choose>
111
- <if variable="archive" match="any">
112
- <group>
113
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
114
- <text term="from" suffix=" "/>
115
- <text variable="archive" suffix="."/>
116
- <text variable="archive_location" prefix=" (" suffix=")"/>
117
- </group>
118
- </if>
119
- <else>
120
- <group>
121
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
122
- <text term="from" suffix=" "/>
123
- <text variable="URL"/>
124
- </group>
125
- </else>
126
- </choose>
127
- </if>
128
- <else>
129
- <choose>
130
- <if variable="DOI">
131
- <text variable="DOI" prefix="doi:"/>
132
- </if>
133
- <else>
134
- <choose>
135
- <if type="webpage">
136
- <group delimiter=" ">
137
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
138
- <group>
139
- <date variable="accessed" suffix=", ">
140
- <date-part name="month" suffix=" "/>
141
- <date-part name="day" suffix=", "/>
142
- <date-part name="year"/>
143
- </date>
144
- </group>
145
- <text term="from"/>
146
- <text variable="URL"/>
147
- </group>
148
- </if>
149
- <else>
150
- <group>
151
- <text term="retrieved" text-case="capitalize-first" suffix=" "/>
152
- <text term="from" suffix=" "/>
153
- <text variable="URL"/>
154
- </group>
155
- </else>
156
- </choose>
157
- </else>
158
- </choose>
159
- </else>
160
- </choose>
161
- </macro>
162
- <macro name="title">
163
- <choose>
164
- <if type="report thesis" match="any">
165
- <text variable="title" font-style="italic"/>
166
- <group prefix=" (" suffix=")" delimiter=" ">
167
- <text variable="genre"/>
168
- <text variable="number" prefix="No. "/>
169
- </group>
170
- </if>
171
- <else-if type="book graphic motion_picture report song manuscript speech" match="any">
172
- <text variable="title" font-style="italic"/>
173
- </else-if>
174
- <else>
175
- <text variable="title"/>
176
- </else>
177
- </choose>
178
- </macro>
179
- <macro name="publisher">
180
- <choose>
181
- <if type="report" match="any">
182
- <group delimiter=": ">
183
- <text variable="publisher-place"/>
184
- <text variable="publisher"/>
185
- </group>
186
- </if>
187
- <else-if type="thesis" match="any">
188
- <group delimiter=", ">
189
- <text variable="publisher"/>
190
- <text variable="publisher-place"/>
191
- </group>
192
- </else-if>
193
- <else>
194
- <group delimiter=", ">
195
- <choose>
196
- <if variable="event" match="none">
197
- <text variable="genre"/>
198
- </if>
199
- </choose>
200
- <choose>
201
- <if type="article-journal article-magazine" match="none">
202
- <group delimiter=": ">
203
- <text variable="publisher-place"/>
204
- <text variable="publisher"/>
205
- </group>
206
- </if>
207
- </choose>
208
- </group>
209
- </else>
210
- </choose>
211
- </macro>
212
- <macro name="event">
213
- <choose>
214
- <if variable="event">
215
- <choose>
216
- <if variable="genre" match="none">
217
- <text term="presented at" text-case="capitalize-first" suffix=" "/>
218
- <text variable="event"/>
219
- </if>
220
- <else>
221
- <group delimiter=" ">
222
- <text variable="genre" text-case="capitalize-first"/>
223
- <text term="presented at"/>
224
- <text variable="event"/>
225
- </group>
226
- </else>
227
- </choose>
228
- </if>
229
- </choose>
230
- </macro>
231
- <macro name="issued">
232
- <choose>
233
- <if type="bill legal_case legislation" match="none">
234
- <choose>
235
- <if variable="issued">
236
- <group prefix=" (" suffix=").">
237
- <date variable="issued">
238
- <date-part name="year"/>
239
- </date>
240
- <text variable="year-suffix"/>
241
- <choose>
242
- <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
243
- <date variable="issued">
244
- <date-part prefix=", " name="month"/>
245
- <date-part prefix=" " name="day"/>
246
- </date>
247
- </if>
248
- </choose>
249
- </group>
250
- </if>
251
- <else>
252
- <group prefix=" (" suffix=").">
253
- <text term="no date" form="short"/>
254
- <text variable="year-suffix" prefix="-"/>
255
- </group>
256
- </else>
257
- </choose>
258
- </if>
259
- </choose>
260
- </macro>
261
- <macro name="issued-sort">
262
- <choose>
263
- <if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
264
- <date variable="issued">
265
- <date-part name="year"/>
266
- <date-part name="month"/>
267
- <date-part name="day"/>
268
- </date>
269
- </if>
270
- <else>
271
- <date variable="issued">
272
- <date-part name="year"/>
273
- </date>
274
- </else>
275
- </choose>
276
- </macro>
277
- <macro name="issued-year">
278
- <choose>
279
- <if variable="issued">
280
- <date variable="issued">
281
- <date-part name="year"/>
282
- </date>
283
- <text variable="year-suffix"/>
284
- </if>
285
- <else>
286
- <text term="no date" form="short"/>
287
- <text variable="year-suffix" prefix="-"/>
288
- </else>
289
- </choose>
290
- </macro>
291
- <macro name="edition">
292
- <choose>
293
- <if is-numeric="edition">
294
- <group delimiter=" ">
295
- <number variable="edition" form="ordinal"/>
296
- <text term="edition" form="short" suffix="." strip-periods="true"/>
297
- </group>
298
- </if>
299
- <else>
300
- <text variable="edition" suffix="."/>
301
- </else>
302
- </choose>
303
- </macro>
304
- <macro name="locators">
305
- <choose>
306
- <if type="article-journal article-magazine" match="any">
307
- <group prefix=", " delimiter=", ">
308
- <group>
309
- <text variable="volume" font-style="italic"/>
310
- <text variable="issue" prefix="(" suffix=")"/>
311
- </group>
312
- <text variable="page"/>
313
- </group>
314
- </if>
315
- <else-if type="article-newspaper">
316
- <group delimiter=" " prefix=", ">
317
- <label variable="page" form="short"/>
318
- <text variable="page"/>
319
- </group>
320
- </else-if>
321
- <else-if type="book graphic motion_picture report song chapter paper-conference" match="any">
322
- <group prefix=" (" suffix=")" delimiter=", ">
323
- <text macro="edition"/>
324
- <group>
325
- <text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=". " strip-periods="true"/>
326
- <number variable="number-of-volumes" form="numeric" prefix="1-"/>
327
- </group>
328
- <group>
329
- <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
330
- <number variable="volume" form="numeric"/>
331
- </group>
332
- <group>
333
- <label variable="page" form="short" suffix=" "/>
334
- <text variable="page"/>
335
- </group>
336
- </group>
337
- </else-if>
338
- <else-if type="legal_case">
339
- <group prefix=" (" suffix=")" delimiter=" ">
340
- <text variable="authority"/>
341
- <date variable="issued" delimiter=" ">
342
- <date-part name="month" form="short"/>
343
- <date-part name="day" suffix=","/>
344
- <date-part name="year"/>
345
- </date>
346
- </group>
347
- </else-if>
348
- <else-if type="bill legislation">
349
- <date variable="issued" prefix=" (" suffix=")">
350
- <date-part name="year"/>
351
- </date>
352
- </else-if>
353
- </choose>
354
- </macro>
355
- <macro name="citation-locator">
356
- <group>
357
- <label variable="locator" form="short"/>
358
- <text variable="locator" prefix=" "/>
359
- </group>
360
- </macro>
361
- <macro name="container">
362
- <choose>
363
- <if type="bill legal_case legislation" match="none">
364
- <text variable="container-title" font-style="italic"/>
365
- </if>
366
- <else>
367
- <group delimiter=" " prefix=", ">
368
- <choose>
369
- <if variable="container-title">
370
- <text variable="volume"/>
371
- <text variable="container-title"/>
372
- <group delimiter=" ">
373
- <!--change to label variable="section" as that becomes available -->
374
- <text term="section" form="symbol"/>
375
- <text variable="section"/>
376
- </group>
377
- <text variable="page"/>
378
- </if>
379
- <else>
380
- <choose>
381
- <if type="legal_case">
382
- <text variable="number" prefix="No. "/>
383
- </if>
384
- <else>
385
- <text variable="number" prefix="Pub. L. No. "/>
386
- <group delimiter=" ">
387
- <!--change to label variable="section" as that becomes available -->
388
- <text term="section" form="symbol"/>
389
- <text variable="section"/>
390
- </group>
391
- </else>
392
- </choose>
393
- </else>
394
- </choose>
395
- </group>
396
- </else>
397
- </choose>
398
- </macro>
399
- <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">
400
- <sort>
401
- <key macro="author"/>
402
- <key macro="issued-sort"/>
403
- </sort>
404
- <layout prefix="(" suffix=")" delimiter="; ">
405
- <group delimiter=", ">
406
- <text macro="author-short"/>
407
- <text macro="issued-year"/>
408
- <text macro="citation-locator"/>
409
- </group>
410
- </layout>
411
- </citation>
412
- <bibliography hanging-indent="true" et-al-min="8" et-al-use-first="7" entry-spacing="0" line-spacing="2">
413
- <sort>
414
- <key macro="author"/>
415
- <key macro="issued-sort" sort="ascending"/>
416
- </sort>
417
- <layout>
418
- <group suffix=".">
419
- <group delimiter=". ">
420
- <text macro="author"/>
421
- <text macro="issued"/>
422
- </group>
423
- <group delimiter=". ">
424
- <text macro="title" prefix=" "/>
425
- <group>
426
- <text macro="container-contributors"/>
427
- <text macro="secondary-contributors"/>
428
- <group delimiter=", ">
429
- <text macro="container"/>
430
- <text variable="collection-title"/>
431
- </group>
432
- </group>
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>