-
Notifications
You must be signed in to change notification settings - Fork 0
/
nynhp_online_0-1.csl
273 lines (272 loc) · 9.13 KB
/
nynhp_online_0-1.csl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" default-locale="en-US" version="1.0">
<info>
<title>nynhp_online_0-1</title>
<title-short>nynhp_web</title-short>
<id>https://github.com/NYNatHeritage/ZoteroCitationStyles/blob/master/nynhp_online_0-1.csl</id>
<author>
<name>Rintze Zelle</name>
</author>
<contributor>
<name>Tim Howard, New York Natural Heritage Program.</name>
</contributor>
<category citation-format="author-date"/>
<updated>2020-12-21T15:08:00+05:00</updated>
<rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
<summary>This style is intented to format references for reporting on the New York Natural Heritage Program website, nynhp.org.
Two attributes to this style are the inclusion of a URL and of sorting the references list by date, most recent first.
</summary>
</info>
<macro name="container-contributors">
<choose>
<if type="chapter paper-conference" match="any">
<!--<text term="in" suffix=" " font-style="italic"/>-->
<names variable="editor translator" delimiter=", ">
<name and="text" initialize-with=". " delimiter=", "/>
<label form="long" prefix=", " suffix="."/>
</names>
</if>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter paper-conference" match="none">
<names variable="editor translator" delimiter=", " prefix=" (" suffix=")">
<name and="text" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
</names>
</if>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="first" and="text" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" (" suffix=".)" text-case="capitalize-first" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="bill book graphic motion_picture report song" match="any">
<text variable="title" form="short" font-style="italic"/>
</if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if type="webpage">
<choose>
<if variable="URL">
<group delimiter=". ">
<text value="[Online]"/>
<text variable="URL" prefix="Available: "/>
<group prefix="[" suffix="]">
<date variable="accessed" prefix="Accessed: ">
<date-part name="day" form="numeric-leading-zeros" suffix="-"/>
<date-part name="month" form="short" suffix="-" strip-periods="true"/>
<date-part name="year" form="long"/>
</date>
</group>
</group>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="publisher">
<text variable="genre" suffix=", "/>
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="event">
<choose>
<if type="paper-conference">
<choose>
<!-- Published Conference Paper -->
<if variable="container-title">
<group delimiter=", ">
<text variable="container-title" prefix="in " font-style="italic"/>
<text variable="event-place"/>
</group>
</if>
<!-- Unpublished Conference Paper -->
<else>
<group delimiter=", ">
<text variable="event" prefix="presented at the "/>
<text variable="event-place"/>
</group>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="issued">
<choose>
<if variable="issued">
<group prefix=" " suffix=".">
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if type="bill book graphic motion_picture report song article-journal chapter paper-conference" match="none">
<date variable="issued">
<date-part prefix=", " name="month"/>
<date-part prefix=" " name="day"/>
</date>
</if>
</choose>
</group>
</if>
<else>
<text prefix=" (" term="no date" suffix=")." form="short"/>
</else>
</choose>
</macro>
<macro name="issued-year">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if type="bill book graphic motion_picture report song chapter paper-conference" match="any">
<choose>
<if is-numeric="edition">
<number variable="edition" form="ordinal" prefix=", "/>
<text term="edition" form="long" prefix=" " suffix="."/>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine article-newspaper paper-conference" match="any">
<group suffix=".">
<text variable="container-title" prefix=" " suffix=", "/>
<choose>
<if variable="page">
<text variable="volume" prefix=" "/>
<text variable="issue" prefix="(" suffix=")"/>
<text variable="page" prefix=":" />
</if>
<else>
<text variable="volume" prefix=" "/>
<text variable="issue" prefix="(" suffix=") "/>
</else>
</choose>
</group>
</if>
<else-if type="bill graphic" match="any">
<group prefix=". " delimiter=" ">
<label variable="page" form="long" text-case="capitalize-first"/>
<text variable="page"/>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<text variable="container-title"/>
</group>
</else-if>
<else-if type="book report" match="any">
<group prefix=" " delimiter=" ">
<text variable="page" suffix=" pages."/>
</group>
</else-if>
<else-if type="chapter" match="any">
<group delimiter=" ">
<text variable="page" prefix="Pages " suffix=" in "/>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<text variable="container-title" suffix=". "/>
</group>
</else-if>
</choose>
</macro>
<macro name="citation-locator">
<group>
<label variable="locator" form="short"/>
<text variable="locator" prefix=" "/>
</group>
</macro>
<macro name="URL-text">
<choose>
<if variable="DOI">
<text variable="DOI" prefix=" " suffix="."/>
</if>
<else>
<text variable="URL" prefix=" " suffix="."/>
</else>
</choose>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="false" collapse="year">
<sort>
<key variable="issued"/>
<key macro="author"/>
</sort>
<layout prefix="(" suffix=")" delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" entry-spacing="0">
<sort>
<key variable="issued" sort="descending"/>
<key macro="author"/>
</sort>
<layout>
<text macro="author" suffix="."/>
<text macro="issued" suffix=" "/>
<text variable="title" suffix=". "/>
<text variable="event"/>
<choose>
<if type="book report" match="none">
<text macro="locators"/>
<text macro="edition"/>
<text macro="access" prefix=" "/>
<group delimiter=". " suffix=". ">
<text macro="publisher"/>
</group>
</if>
<else-if type="book report" match="any">
<text macro="edition"/>
<text macro="access" prefix=" "/>
<group delimiter=". " prefix=" ">
<text macro="publisher" suffix=". "/>
</group>
<text macro="locators" suffix=". "/>
</else-if>
</choose>
<group delimiter=" ">
<text macro="URL-text"/>
</group>
</layout>
</bibliography>
</style>