citeproc-rb 0.0.1

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 (52) hide show
  1. data/README +93 -0
  2. data/Rakefile +73 -0
  3. data/TODO +25 -0
  4. data/VERSION +1 -0
  5. data/data/locales/locales_en.xml +89 -0
  6. data/data/locales/locales_nl.xml +96 -0
  7. data/data/styles/ama.csl +184 -0
  8. data/data/styles/apa.csl +230 -0
  9. data/data/styles/apsa.csl +175 -0
  10. data/data/styles/asa.csl +215 -0
  11. data/data/styles/chicago-author-date.csl +361 -0
  12. data/data/styles/chicago-fullnote-bibliography.csl +665 -0
  13. data/data/styles/chicago-note-bibliography.csl +437 -0
  14. data/data/styles/chicago-note.csl +383 -0
  15. data/data/styles/harvard.csl +185 -0
  16. data/data/styles/ieee.csl +111 -0
  17. data/data/styles/mhra.csl +317 -0
  18. data/data/styles/mla.csl +173 -0
  19. data/data/styles/nature.csl +87 -0
  20. data/data/styles/nlm.csl +118 -0
  21. data/examples/citeproc_driver.rb +174 -0
  22. data/lib/citeproc.rb +28 -0
  23. data/lib/citeproc/csl.rb +647 -0
  24. data/lib/citeproc/csl_parser.rb +479 -0
  25. data/lib/citeproc/csl_processor.rb +485 -0
  26. data/lib/citeproc/csl_reference.rb +228 -0
  27. data/lib/citeproc/filters/bibo/bibo.rb +635 -0
  28. data/lib/citeproc/filters/bibo/bibo_input_filter.rb +242 -0
  29. data/lib/citeproc/filters/bibo/bibo_utils.rb +75 -0
  30. data/lib/citeproc/filters/csl_citation/csl_citation.rb +137 -0
  31. data/lib/citeproc/filters/csl_citation/csl_citation_input_filter.rb +274 -0
  32. data/lib/citeproc/formatters/base_formatter.rb +115 -0
  33. data/lib/citeproc/formatters/xhtml_formatter.rb +144 -0
  34. data/lib/citeproc/input_filter.rb +97 -0
  35. data/test/fixtures/bibo_test_data.n3 +191 -0
  36. data/test/fixtures/bibo_test_data.yaml +96 -0
  37. data/test/fixtures/bibo_test_how_to_cook.n3 +63 -0
  38. data/test/fixtures/bibo_test_zotero.rdf +129 -0
  39. data/test/fixtures/csl_test_data.json +62 -0
  40. data/test/fixtures/csl_test_data.yaml +8 -0
  41. data/test/fixtures/locales/test_locale_en.xml +89 -0
  42. data/test/fixtures/styles/test_csl_parse.csl +230 -0
  43. data/test/fixtures/styles/test_groups.csl +32 -0
  44. data/test/fixtures/styles/test_names.csl +46 -0
  45. data/test/fixtures/styles/test_sort.csl +125 -0
  46. data/test/fixtures/styles/test_text_terms.csl +40 -0
  47. data/test/test_all.rb +14 -0
  48. data/test/test_bibo.rb +20 -0
  49. data/test/test_csl.rb +136 -0
  50. data/test/test_csl_parser.rb +222 -0
  51. data/test/test_sample_bibo.rb +82 -0
  52. metadata +101 -0
@@ -0,0 +1,185 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >
3
+ <info>
4
+ <title>Harvard Reference format 1 (Author-Date)</title>
5
+ <id>http://www.zotero.org/styles/harvard1</id>
6
+ <link href="http://www.zotero.org/styles/harvard1"/>
7
+ <author>
8
+ <name>Julian Onions</name>
9
+ <email>julian.onions@gmail.com</email>
10
+ </author>
11
+ <category term="author-date"/>
12
+ <category term="generic-base"/>
13
+ <updated>2008-05-09T19:22:04+00:00</updated>
14
+ <summary>The Harvard author-date style</summary>
15
+ <link href="http://libweb.anglia.ac.uk/referencing/harvard.htm" rel="documentation"/>
16
+ </info>
17
+ <macro name="editor">
18
+ <names variable="editor" delimiter=", ">
19
+ <name and="symbol" initialize-with=". " delimiter=", "/>
20
+ <label form="short" prefix=", " text-case="lowercase" suffix="."/>
21
+ </names>
22
+ </macro>
23
+ <macro name="anon">
24
+ <text term="anonymous" form="short" text-case="capitalize-first"/>
25
+ </macro>
26
+ <macro name="author">
27
+ <names variable="author">
28
+ <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="."
29
+ delimiter-precedes-last="never" delimiter=", "/>
30
+ <label form="short" prefix=" " suffix="." text-case="lowercase"/>
31
+ <substitute>
32
+ <names variable="editor"/>
33
+ <text macro="anon"/>
34
+ </substitute>
35
+ </names>
36
+ </macro>
37
+ <macro name="author-short">
38
+ <names variable="author">
39
+ <name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
40
+ <substitute>
41
+ <names variable="editor"/>
42
+ <names variable="translator"/>
43
+ <text macro="anon"/>
44
+ </substitute>
45
+ </names>
46
+ </macro>
47
+ <macro name="access">
48
+ <group>
49
+ <text value="Available at:" suffix=" "/>
50
+ <text variable="URL"/>
51
+ <group prefix=" [" suffix="]">
52
+ <text term="accessed" text-case="capitalize-first" suffix=" "/>
53
+ <date variable="accessed">
54
+ <date-part name="month" suffix=" "/>
55
+ <date-part name="day" suffix=", "/>
56
+ <date-part name="year"/>
57
+ </date>
58
+ </group>
59
+ </group>
60
+ </macro>
61
+ <macro name="title">
62
+ <choose>
63
+ <if type="book">
64
+ <text variable="title" font-style="italic"/>
65
+ </if>
66
+ <else>
67
+ <text variable="title"/>
68
+ </else>
69
+ </choose>
70
+ </macro>
71
+ <macro name="publisher">
72
+ <group delimiter=": ">
73
+ <text variable="publisher-place"/>
74
+ <text variable="publisher"/>
75
+ </group>
76
+ </macro>
77
+ <macro name="year-date">
78
+ <choose>
79
+ <if variable="issued">
80
+ <date variable="issued">
81
+ <date-part name="year"/>
82
+ </date>
83
+ </if>
84
+ <else>
85
+ <text term="no date"/>
86
+ </else>
87
+ </choose>
88
+ </macro>
89
+ <macro name="edition">
90
+ <choose>
91
+ <if is-numeric="edition">
92
+ <group delimiter=" ">
93
+ <number variable="edition" form="ordinal"/>
94
+ <text term="edition" form="short" suffix="."/>
95
+ </group>
96
+ </if>
97
+ <else>
98
+ <text variable="edition" suffix="."/>
99
+ </else>
100
+ </choose>
101
+ </macro>
102
+ <macro name="pages">
103
+ <group>
104
+ <label variable="page" form="short" include-period="true" suffix=" "/>
105
+ <text variable="page"/>
106
+ </group>
107
+ </macro>
108
+ <citation>
109
+ <option name="et-al-min" value="4"/>
110
+ <option name="et-al-use-first" value="1"/>
111
+ <option name="et-al-subsequent-min" value="4"/>
112
+ <option name="et-al-subsequent-use-first" value="1"/>
113
+ <option name="disambiguate-add-year-suffix" value="true"/>
114
+ <option name="disambiguate-add-names" value="true"/>
115
+ <option name="disambiguate-add-givenname" value="true"/>
116
+ <layout prefix="(" suffix=")" delimiter="; ">
117
+ <group delimiter=", ">
118
+ <group delimiter=" ">
119
+ <text macro="author-short"/>
120
+ <text macro="year-date"/>
121
+ </group>
122
+ <group>
123
+ <label variable="locator" suffix="." form="short"/>
124
+ <text variable="locator"/>
125
+ </group>
126
+ </group>
127
+ </layout>
128
+ </citation>
129
+ <bibliography>
130
+ <option name="hanging-indent" value="true"/>
131
+ <option name="et-al-min" value="4"/>
132
+ <option name="et-al-use-first" value="1"/>
133
+ <sort>
134
+ <key macro="author"/>
135
+ <key variable="title"/>
136
+ </sort>
137
+ <layout>
138
+ <text macro="author" suffix=","/>
139
+ <date variable="issued" prefix=" " suffix=".">
140
+ <date-part name="year"/>
141
+ </date>
142
+ <choose>
143
+ <if type="book">
144
+ <group prefix=" " delimiter=" " suffix=",">
145
+ <text macro="title" />
146
+ <text macro="edition"/>
147
+ <text macro="editor"/>
148
+ </group>
149
+ <text prefix=" " suffix="." macro="publisher"/>
150
+ </if>
151
+ <else-if type="chapter">
152
+ <text macro="title" prefix=" " suffix="."/>
153
+ <group class="container" prefix=" " delimiter=" ">
154
+ <text term="in" text-case="capitalize-first"/>
155
+ <text macro="editor"/>
156
+ <text variable="container-title" font-style="italic" suffix="."/>
157
+ <text variable="collection-title" suffix="."/>
158
+ <group suffix="." delimiter=", ">
159
+ <text macro="publisher" prefix=" "/>
160
+ <text macro="pages" />
161
+ </group>
162
+ </group>
163
+ </else-if>
164
+ <else>
165
+ <group suffix=".">
166
+ <text macro="title" prefix=" " />
167
+ <text macro="editor" prefix=" "/>
168
+ </group>
169
+ <group class="container" prefix=" " suffix=".">
170
+ <text variable="container-title" font-style="italic"/>
171
+ <group prefix=", ">
172
+ <text variable="volume" />
173
+ <text variable="issue" prefix="(" suffix=")"/>
174
+ </group>
175
+ <group prefix=", ">
176
+ <label variable="locator" suffix="." form="short"/>
177
+ <text variable="page"/>
178
+ </group>
179
+ </group>
180
+ </else>
181
+ </choose>
182
+ <text prefix=" " macro="access" suffix="."/>
183
+ </layout>
184
+ </bibliography>
185
+ </style>
@@ -0,0 +1,111 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
3
+ <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
4
+ <info>
5
+ <title>IEEE</title>
6
+ <id>http://www.zotero.org/styles/ieee</id>
7
+ <link href="http://www.zotero.org/styles/ieee"/>
8
+ <author>
9
+ <name>Michael Berkowitz</name>
10
+ <email>mberkowi@gmu.edu</email>
11
+ </author>
12
+ <contributor>
13
+ <name>Julian Onions</name>
14
+ <email>julian.onions@gmail.com</email>
15
+ </contributor>
16
+ <category term="engineering"/>
17
+ <category term="generic-base"/>
18
+ <category term="numeric"/>
19
+ <updated>2008-02-07T02:05:41+00:00</updated>
20
+ </info>
21
+ <macro name="author">
22
+ <names variable="author">
23
+ <name initialize-with="." delimiter=", " and="text" name-as-sort-order="all"/>
24
+ <label form="short" prefix=", " text-case="lowercase" suffix="."/>
25
+ <substitute>
26
+ <names variable="editor"/>
27
+ <names variable="translator"/>
28
+ </substitute>
29
+ </names>
30
+ </macro>
31
+ <macro name="editor">
32
+ <names variable="editor">
33
+ <name initialize-with="." delimiter=", " and="text" name-as-sort-order="all"/>
34
+ <label form="short" prefix=", " text-case="lowercase" suffix="."/>
35
+ </names>
36
+ </macro>
37
+ <macro name="title">
38
+ <choose>
39
+ <if type="book">
40
+ <text variable="title" font-style="italic"/>
41
+ </if>
42
+ <else>
43
+ <text variable="title" quotes="true"/>
44
+ </else>
45
+ </choose>
46
+ </macro>
47
+ <macro name="publisher">
48
+ <text variable="publisher-place" suffix=": " prefix=" "/>
49
+ <text variable="publisher" suffix=", "/>
50
+ <date variable="issued">
51
+ <date-part name="year"/>
52
+ </date>
53
+ </macro>
54
+ <macro name="access">
55
+ <text variable="URL"/>
56
+ </macro>
57
+ <macro name="page">
58
+ <group>
59
+ <label variable="page" form="short" suffix=". "/>
60
+ <text variable="page" />
61
+ </group>
62
+ </macro>
63
+ <citation>
64
+ <option name="collapse" value="citation-number"/>
65
+ <sort>
66
+ <key variable="citation-number"/>
67
+ </sort>
68
+ <layout prefix="[" suffix="]" delimiter=",">
69
+ <text variable="citation-number"/>
70
+ </layout>
71
+ </citation>
72
+ <bibliography>
73
+ <option name="et-al-min" value="4"/>
74
+ <option name="et-al-use-first" value="1"/>
75
+ <option name="second-field-align" value="true"/>
76
+ <layout suffix=".">
77
+ <text variable="citation-number" prefix="[" suffix="]"/>
78
+ <text macro="author" prefix=" " suffix=", "/>
79
+ <choose>
80
+ <if type="book">
81
+ <group delimiter=", ">
82
+ <text macro="title"/>
83
+ <text macro="publisher"/>
84
+ </group>
85
+ </if>
86
+ <else-if type="chapter">
87
+ <group delimiter=", ">
88
+ <text macro="title"/>
89
+ <text variable="container-title" font-style="italic"/>
90
+ <text macro="editor"/>
91
+ <text macro="publisher" />
92
+ <text macro="page"/>
93
+ </group>
94
+ </else-if>
95
+ <else>
96
+ <group delimiter=", ">
97
+ <text macro="title"/>
98
+ <text variable="container-title" font-style="italic"/>
99
+ <text variable="volume" prefix=" vol. " />
100
+ <date variable="issued" >
101
+ <date-part name="month" form="short" suffix=". "/>
102
+ <date-part name="year"/>
103
+ </date>
104
+ <text macro="page"/>
105
+ </group>
106
+ </else>
107
+ </choose>
108
+ <text macro="access" prefix="; "/>
109
+ </layout>
110
+ </bibliography>
111
+ </style>
@@ -0,0 +1,317 @@
1
+ <style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en">
2
+ <info>
3
+ <title>Modern Humanities Research Association (Note with Bibliography)</title>
4
+ <id>http://www.zotero.org/styles/mhra</id>
5
+ <link href="http://www.zotero.org/styles/mhra"/>
6
+ <link href="http://www.mhra.org.uk/Publications/Books/StyleGuide/download.shtml" rel="documentation"/>
7
+ <author>
8
+ <name>Julian Onions</name>
9
+ <email>julian.onions@gmail.com</email>
10
+ </author>
11
+ <category term="history"/>
12
+ <category term="numeric"/>
13
+ <category term="generic-base"/>
14
+ <updated>2008-02-02T00:00:00+00:00</updated>
15
+ </info>
16
+ <macro name="editor-translator">
17
+ <names variable="editor translator" prefix="" suffix="" delimiter=", ">
18
+ <label form="verb-short" prefix=" " text-case="lowercase" suffix=" "/>
19
+ <name and="text" delimiter=", "/>
20
+ </names>
21
+ </macro>
22
+ <macro name="editor-translator-short">
23
+ <names variable="editor translator" prefix="" suffix="" delimiter=", ">
24
+ <label form="short" prefix=" " text-case="lowercase" suffix=". "/>
25
+ <name and="text" delimiter=", "/>
26
+ </names>
27
+ </macro>
28
+ <macro name="author">
29
+ <names variable="author">
30
+ <name name-as-sort-order="first" and="text" sort-separator=", "
31
+ delimiter=", " delimiter-precedes-last="always"/>
32
+ <label form="short" prefix=", " suffix="."/>
33
+ <substitute>
34
+ <names variable="editor"/>
35
+ <names variable="translator"/>
36
+ <text macro="title"/>
37
+ </substitute>
38
+ </names>
39
+ </macro>
40
+ <macro name="author-full">
41
+ <names variable="author">
42
+ <name name-as-sort-order="all" and="text" sort-separator=", "
43
+ delimiter=", " delimiter-precedes-last="always"/>
44
+ <label form="short" prefix=", " suffix="."/>
45
+ <substitute>
46
+ <names variable="editor"/>
47
+ <names variable="translator"/>
48
+ <text macro="title"/>
49
+ </substitute>
50
+ </names>
51
+ </macro>
52
+ <macro name="author-short">
53
+ <names variable="author">
54
+ <name form="long" and="text" delimiter=", " />
55
+ <label form="short" prefix=", " suffix="."/>
56
+ </names>
57
+ </macro>
58
+ <macro name="access">
59
+ <group>
60
+ <text variable="URL"/>
61
+ <group prefix=" (" suffix=")" delimiter=" ">
62
+ <text term="accessed" text-case="lowercase" suffix=" "/>
63
+ <date variable="accessed" suffix=", ">
64
+ <date-part name="month" suffix=" "/>
65
+ <date-part name="day" suffix=", "/>
66
+ <date-part name="year"/>
67
+ </date>
68
+ </group>
69
+ </group>
70
+ </macro>
71
+ <macro name="title">
72
+ <choose>
73
+ <if type="thesis">
74
+ <text variable="title" form="long" quotes="true"/>
75
+ </if>
76
+ <else-if type="book">
77
+ <text variable="title" form="long" font-style="italic"/>
78
+ </else-if>
79
+ <else>
80
+ <text variable="title" form="long" quotes="true"/>
81
+ </else>
82
+ </choose>
83
+ </macro>
84
+ <macro name="publisher">
85
+ <group delimiter=": ">
86
+ <text variable="publisher-place"/>
87
+ <text variable="publisher"/>
88
+ </group>
89
+ </macro>
90
+ <macro name="pages">
91
+ <choose>
92
+ <if type="article-journal" match="none">
93
+ <label variable="page" form="short" suffix=". "/>
94
+ </if>
95
+ </choose>
96
+ <text variable="page"/>
97
+ </macro>
98
+ <macro name="locator">
99
+ <label variable="locator" form="short" suffix=". "/>
100
+ <text variable="locator"/>
101
+ </macro>
102
+ <macro name="vols">
103
+ <choose>
104
+ <if variable="number-of-volumes">
105
+ <text variable="number-of-volumes"/>
106
+ <text term="volume" prefix=" " form="short" plural="true"/>
107
+ </if>
108
+ </choose>
109
+ </macro>
110
+ <citation>
111
+ <layout suffix="." delimiter="; ">
112
+ <group suffix="">
113
+ <text macro="author-short" suffix=", "/>
114
+ <text macro="title" prefix=""/>
115
+ <choose>
116
+ <if type="thesis">
117
+ <group prefix=" (" delimiter=", " suffix=")">
118
+ <text variable="genre"/>
119
+ <text variable="publisher"/>
120
+ <date variable="issued">
121
+ <date-part name="year"/>
122
+ </date>
123
+ </group>
124
+ </if>
125
+ <else-if type="chapter">
126
+ <group class="container" prefix=", ">
127
+ <text term="in" text-case="lowercase"/>
128
+ <text variable="container-title" font-style="italic" prefix=" " suffix=","/>
129
+ <text variable="collection-title" prefix=" " suffix=","/>
130
+ <text macro="editor-translator-short"/>
131
+ </group>
132
+ <group prefix=" (" suffix=")" delimiter=", ">
133
+ <text macro="publisher" />
134
+ <date variable="issued">
135
+ <date-part name="year"/>
136
+ </date>
137
+ </group>
138
+ </else-if>
139
+ <else-if type="book">
140
+ <group delimiter=", " prefix=" ">
141
+ <text macro="editor-translator-short"/>
142
+ <text variable="collection-title"/>
143
+ <text variable="edition" suffix=" edn"/>
144
+ <text macro="vols"/>
145
+ </group>
146
+ <group prefix=" (" suffix=")" delimiter=", ">
147
+ <text macro="publisher"/>
148
+ <date variable="issued" prefix=" " suffix="">
149
+ <date-part name="year"/>
150
+ </date>
151
+ </group>
152
+ <text variable="volume" prefix=", "/>
153
+ </else-if>
154
+ <else-if type="article-newspaper article-magazine" match="any">
155
+ <group delimiter=", " prefix=", ">
156
+ <text variable="container-title" font-style="italic"/>
157
+ <text variable="issue" suffix="."/>
158
+ <date variable="issued">
159
+ <date-part name="day" form="numeric" suffix=" "/>
160
+ <date-part name="month" form="long" suffix=" "/>
161
+ <date-part name="year"/>
162
+ </date>
163
+ </group>
164
+ </else-if>
165
+ <else-if type="article-journal">
166
+ <group class="container" prefix=", " delimiter=", ">
167
+ <text variable="container-title" font-style="italic"/>
168
+ <text macro="publisher"/>
169
+ <text variable="volume" prefix=" "/>
170
+ </group>
171
+ <date variable="issued" prefix=" (" suffix=")">
172
+ <date-part name="year"/>
173
+ </date>
174
+ </else-if>
175
+ <else>
176
+ <group delimiter=", " prefix=". ">
177
+ <text variable="container-title" font-style="italic"/>
178
+ <text variable="issue" prefix=", " suffix="."/>
179
+ <date variable="issued">
180
+ <date-part name="month" form="long"/>
181
+ <date-part name="day" form="numeric" prefix=" " suffix=", "/>
182
+ <date-part name="year"/>
183
+ </date>
184
+ </group>
185
+ </else>
186
+ </choose>
187
+ <group prefix=", " delimiter=" ">
188
+ <text macro="pages"/>
189
+ <text macro="locator" prefix="(" suffix=")"/>
190
+ </group>
191
+ </group>
192
+ </layout>
193
+ </citation>
194
+ <bibliography>
195
+ <option name="hanging-indent" value="true"/>
196
+ <option name="et-al-min" value="6"/>
197
+ <option name="et-al-use-first" value="6"/>
198
+ <option name="subsequent-author-substitute" value="---"/>
199
+ <sort>
200
+ <key macro="author"/>
201
+ <key variable="title"/>
202
+ </sort>
203
+ <layout suffix=".">
204
+ <text macro="author" suffix=","/>
205
+ <choose>
206
+ <if type="thesis">
207
+ <group suffix=".">
208
+ <text macro="title" prefix=" "/>
209
+ </group>
210
+ <group delimiter=", " prefix=" ">
211
+ <text variable="genre"/>
212
+ <text variable="publisher"/>
213
+ <date variable="issued">
214
+ <date-part name="year"/>
215
+ </date>
216
+ </group>
217
+ </if>
218
+ <else-if type="chapter">
219
+ <text macro="title" prefix=" "/>
220
+ <group class="container" prefix=", ">
221
+ <text term="in" text-case="lowercase"/>
222
+ <text variable="container-title" font-style="italic" prefix=" " suffix=","/>
223
+ <text variable="collection-title" prefix=" " suffix=","/>
224
+ <text macro="editor-translator-short"/>
225
+ </group>
226
+ <group prefix=" (" suffix=")" delimiter=", ">
227
+ <text macro="publisher" />
228
+ <date variable="issued">
229
+ <date-part name="year"/>
230
+ </date>
231
+ </group>
232
+ </else-if>
233
+ <else-if type="article-journal">
234
+ <group suffix=".">
235
+ <text macro="title" prefix=" "/>
236
+ <text macro="editor-translator" prefix=" "/>
237
+ </group>
238
+ <group class="container" prefix=" " suffix="">
239
+ <text variable="container-title" font-style="italic" prefix=" "/>
240
+ <text variable="volume" prefix=" "/>
241
+ <text variable="issue" prefix=", no. "/>
242
+ <date variable="issued" prefix=" (" suffix=")">
243
+ <date-part name="month" suffix=" "/>
244
+ <date-part name="day" suffix=", "/>
245
+ <date-part name="year"/>
246
+ </date>
247
+ <text variable="page" prefix=": "/>
248
+ </group>
249
+ </else-if>
250
+ <else-if type="article-newspaper article-magazine" match="any">
251
+ <group suffix=".">
252
+ <text macro="title" prefix=" "/>
253
+ <text macro="editor-translator" prefix=" "/>
254
+ </group>
255
+ <group delimiter=", " prefix=" ">
256
+ <text variable="container-title" font-style="italic"/>
257
+ <text variable="issue" suffix="."/>
258
+ <date variable="issued">
259
+ <date-part name="month" form="long"/>
260
+ <date-part name="day" form="numeric" prefix=" " suffix=", "/>
261
+ <date-part name="year"/>
262
+ </date>
263
+ </group>
264
+ </else-if>
265
+ <else-if type="paper-conference">
266
+ <group suffix=".">
267
+ <text macro="title" prefix=" "/>
268
+ <text macro="editor-translator" prefix=" "/>
269
+ </group>
270
+ <group suffix="">
271
+ <text value="paper presented at" text-case="capitalize-first"/>
272
+ <text variable="event" prefix=" "/>
273
+ <text variable="event-place" prefix=", "/>
274
+ <date variable="event">
275
+ <date-part name="month" form="long"/>
276
+ <date-part name="day" form="numeric" prefix=" " suffix=", "/>
277
+ <date-part name="year"/>
278
+ </date>
279
+ </group>
280
+ </else-if>
281
+ <else-if type="book">
282
+ <group suffix=".">
283
+ <text macro="title" prefix=" " suffix="."/>
284
+ </group>
285
+ <group delimiter=", " prefix=" ">
286
+ <text macro="editor-translator-short"/>
287
+ <text variable="collection-title"/>
288
+ <text variable="edition" suffix=" edn"/>
289
+ <text macro="vols"/>
290
+ </group>
291
+ <group prefix=" (" suffix=")" delimiter=", ">
292
+ <text macro="publisher"/>
293
+ <date variable="issued" prefix=" " suffix="">
294
+ <date-part name="year"/>
295
+ </date>
296
+ </group>
297
+ <text variable="volume" prefix=", "/>
298
+ </else-if>
299
+ <else>
300
+ <group suffix=".">
301
+ <text macro="title" prefix=" "/>
302
+ <text macro="editor-translator" prefix=" "/>
303
+ </group>
304
+ <group class="container" prefix=" " suffix="">
305
+ <text variable="container-title" font-style="italic"/>
306
+ <group prefix=", ">
307
+ <text variable="volume" font-style="italic"/>
308
+ <text variable="issue" prefix="(" suffix=")"/>
309
+ </group>
310
+ <text variable="page" prefix=", "/>
311
+ </group>
312
+ </else>
313
+ </choose>
314
+ <text prefix=" " macro="access"/>
315
+ </layout>
316
+ </bibliography>
317
+ </style>