Skip to content
This repository
Newer
Older
100644 283 lines (282 sloc) 10.218 kb
923b7d8e »
2011-01-23 bulk add, update of styles from upgrade script
1 <?xml version="1.0" encoding="utf-8"?>
a94efbc4 »
2011-12-22 Pretty print a few more styles.
2 <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" default-locale="en-US" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="expanded">
3 <info>
4 <title>SPIE Journals</title>
5 <id>http://www.zotero.org/styles/spie-journals</id>
6 <link href="http://www.zotero.org/styles/spie-journals" rel="self"/>
7 <author>
8 <name>Yurkin Maxim</name>
9 <email>yurkin@gmail.com</email>
10 <uri>http://sites.google.com/site/yurkin/</uri>
11 </author>
27041e51 »
2012-09-27 Reorder elements in cs:info section, using csl-reorder-info2.py from …
12 <category citation-format="numeric"/>
a94efbc4 »
2011-12-22 Pretty print a few more styles.
13 <category field="physics"/>
14 <category field="engineering"/>
b0256fd0 »
2012-04-03 Sort modified attribute value lists alphabetically.
15 <summary>Designed for SPIE e-journals, based on information at http://spie.org/x3658.xml, including sample manuscript.
16 Covers all the document type described there. The information for SPIE paper journals is less detailed, and it did not
ab42c93f »
2011-07-25 Added option page-range-format="expanded".
17 explicitly specify the need to include DOI. However, the inclusion of DOI is probably not bad, so this style can be used
18 for all SPIE journals.</summary>
27041e51 »
2012-09-27 Reorder elements in cs:info section, using csl-reorder-info2.py from …
19 <published>2009-10-24T23:00:00+06:00</published>
20 <updated>2011-07-22T15:15:00+06:00</updated>
becab915 »
2012-09-09 Update to use "license" attribute on cs:rights.
21 <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
a94efbc4 »
2011-12-22 Pretty print a few more styles.
22 </info>
23 <!-- Locale terms -->
24 <locale xml:lang="en">
25 <terms>
26 <term name="presented at">presented at</term>
27 </terms>
28 </locale>
29 <!-- Macros -->
30 <macro name="type-number">
31 <!-- document type and number (thesis, patent, report, manuscript) -->
32 <group delimiter=" ">
33 <choose>
34 <if type="patent">
35 <!-- Currently only US patents are supported, due to Zotero limitations -->
36 <text value="U.S. Patent No."/>
37 </if>
38 <else>
39 <!-- this is used for entries like 'Report', 'PhD thesis', 'submitted to ...' (for manuscripts) -->
40 <text variable="genre"/>
41 </else>
42 </choose>
43 <text variable="number"/>
44 </group>
45 </macro>
46 <macro name="edition">
47 <choose>
48 <if is-numeric="edition">
49 <group prefix=", " delimiter=" ">
50 <number variable="edition" form="ordinal"/>
51 <text term="edition" form="short"/>
52 </group>
53 </if>
54 <else>
55 <text variable="edition" prefix=", "/>
56 </else>
57 </choose>
58 </macro>
59 <macro name="editor">
60 <names variable="editor">
61 <name initialize-with=". " delimiter=", " and="text"/>
62 <label form="short" prefix=", " text-case="title"/>
63 </names>
64 </macro>
65 <macro name="author">
66 <names variable="author">
67 <name initialize-with=". " delimiter=", " and="text"/>
68 <label form="short" prefix=", " text-case="title"/>
69 <substitute>
70 <names variable="editor"/>
71 <names variable="translator"/>
72 </substitute>
73 </names>
74 </macro>
75 <macro name="title">
76 <!-- Includes edition number for books -->
77 <choose>
78 <if type="report">
79 <!-- special case, otherwise it will fallback to book -->
80 <text variable="title" quotes="true"/>
81 </if>
b0256fd0 »
2012-04-03 Sort modified attribute value lists alphabetically.
82 <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
a94efbc4 »
2011-12-22 Pretty print a few more styles.
83 <text variable="title" font-style="italic"/>
84 <text macro="edition"/>
85 </else-if>
86 <else>
87 <text variable="title" quotes="true"/>
88 </else>
89 </choose>
90 </macro>
91 <macro name="publisher">
92 <!-- Includes publisher place except for thesis -->
93 <choose>
94 <if type="thesis">
95 <text variable="publisher"/>
96 </if>
97 <else>
98 <group delimiter=", ">
99 <text variable="publisher"/>
100 <text variable="publisher-place"/>
101 </group>
102 </else>
103 </choose>
104 </macro>
105 <macro name="access">
106 <!-- DOI, otherwise URL (for webpages only) -->
107 <choose>
108 <if variable="DOI">
109 <text variable="DOI" prefix=" [doi:" suffix="]"/>
110 </if>
111 <else-if type="webpage">
112 <text variable="URL" prefix="&lt;" suffix="&gt;"/>
113 </else-if>
114 </choose>
115 </macro>
116 <macro name="issued">
117 <!-- full date -->
118 <date variable="issued">
119 <date-part name="day" suffix=" "/>
120 <date-part name="month" form="long" suffix=" "/>
121 <date-part name="year"/>
122 </date>
123 </macro>
124 <macro name="issued-year">
125 <!-- year in brackets -->
126 <date variable="issued" prefix=" (" suffix=")">
127 <date-part name="year"/>
128 </date>
129 </macro>
130 <macro name="accessed">
131 <!-- full date in brackets -->
132 <date variable="accessed" prefix=" (" suffix=")">
133 <date-part name="day" suffix=" "/>
134 <date-part name="month" form="long" suffix=" "/>
135 <date-part name="year"/>
136 </date>
137 </macro>
138 <macro name="page">
139 <!-- for journal articles without any additional text -->
140 <choose>
141 <if type="article-journal">
142 <text variable="page"/>
143 </if>
144 <else>
145 <group delimiter=" ">
146 <label variable="page" form="short"/>
147 <text variable="page"/>
148 </group>
149 </else>
150 </choose>
151 </macro>
152 <macro name="container-prefix">
153 <choose>
154 <if type="webpage article-journal" match="none">
155 <text term="in" suffix=" "/>
156 </if>
157 </choose>
158 </macro>
159 <macro name="locators">
41d0d8da »
2012-06-09 add journal to SPIE journals per style guide & sample article
160 <!--volume is always added (including book chapters), followed by issue in parentheses for journal articles -->
a94efbc4 »
2011-12-22 Pretty print a few more styles.
161 <text variable="volume" prefix=" " font-weight="bold"/>
41d0d8da »
2012-06-09 add journal to SPIE journals per style guide & sample article
162 <text variable="issue" prefix="(" suffix=")"/>
a94efbc4 »
2011-12-22 Pretty print a few more styles.
163 </macro>
164 <macro name="container">
165 <!-- Includes volume and edition (if container-title exist) -->
166 <choose>
167 <if variable="container-title">
168 <!-- Here additional 'Chap. #' is sometimes needed but Zotero do not currently have a field 'chapter number' for book chapter item -->
169 <text macro="container-prefix"/>
170 <text variable="container-title" font-style="italic" form="short"/>
171 <text macro="locators"/>
172 <text macro="edition"/>
173 </if>
174 <else-if type="paper-conference">
175 <!-- special case for conference paper without proceedings -->
176 <group delimiter=" ">
177 <text term="presented at"/>
178 <text variable="event"/>
179 </group>
180 </else-if>
181 </choose>
182 </macro>
183 <!-- Citation -->
184 <citation collapse="citation-number">
185 <sort>
186 <key variable="citation-number"/>
187 </sort>
188 <layout prefix="[" suffix="]" delimiter=",">
189 <text variable="citation-number"/>
190 <group prefix=", " delimiter=" ">
191 <label variable="locator" form="short"/>
192 <text variable="locator"/>
193 </group>
194 </layout>
195 </citation>
196 <!-- Bibliography -->
197 <bibliography et-al-min="10" et-al-use-first="9" entry-spacing="0" second-field-align="flush">
198 <layout suffix=".">
199 <text variable="citation-number" prefix="[" suffix="] "/>
200 <text macro="author" suffix=", "/>
201 <choose>
202 <if type="webpage">
203 <!-- separate case due to location of 'issued' date in the middle -->
204 <group delimiter=", ">
205 <text macro="title"/>
206 <text macro="container"/>
207 <text macro="issued"/>
208 <text macro="access"/>
209 </group>
210 <text macro="accessed"/>
211 </if>
212 <else-if type="report">
213 <!-- separate case due to location of 'page' after the publisher (wierd!) -->
214 <group delimiter=", ">
215 <text macro="title"/>
216 <text macro="type-number"/>
217 <text macro="publisher"/>
218 <text macro="page"/>
219 </group>
220 <text macro="issued-year"/>
221 <text macro="access"/>
222 </else-if>
223 <else-if type="paper-conference">
224 <!-- becomes a separate case, when no proceedings are available -->
225 <choose>
226 <if variable="container-title">
227 <!-- with proceedings, same as book chapter -->
228 <group delimiter=", ">
229 <text macro="title"/>
230 <text macro="container"/>
231 <text macro="editor"/>
232 <text macro="page"/>
233 <text macro="publisher"/>
234 </group>
235 <text macro="issued-year"/>
236 </if>
237 <else>
238 <!-- without proceedings -->
239 <group delimiter=", ">
240 <text macro="title"/>
241 <text macro="container"/>
b0256fd0 »
2012-04-03 Sort modified attribute value lists alphabetically.
242 <!-- Zotero 2.1 do not support date ranges, which are common for conferences.
243 However, it should start working without any changes to the style once Zotero's handling of
ab42c93f »
2011-07-25 Added option page-range-format="expanded".
244 'date' fields will improve. -->
a94efbc4 »
2011-12-22 Pretty print a few more styles.
245 <text macro="issued"/>
246 <text variable="event-place"/>
247 <text variable="page"/>
248 <!-- this is for something like 'Paper X35B' - assuming it is located in 'Pages' field (argueable) -->
249 <text variable="publisher"/>
250 <!-- place and publisher are interchanged, that's why corresponding macro is not used -->
251 </group>
252 </else>
253 </choose>
254 <text macro="access"/>
255 </else-if>
256 <else-if type="interview">
257 <!-- this is a workaround for Personal Communications -->
258 <group delimiter=", ">
259 <text variable="note"/>
260 <!-- 'Extra' field is supposed to contain author's affiliation (can't devise a better field) -->
261 <text variable="medium"/>
262 <!-- This is supposed to hold communication type, like 'Personal(Private) Communication'-->
263 </group>
264 <text macro="issued-year"/>
265 </else-if>
266 <else>
267 <!--- general sequence, supposed to work for everything that is not considered above -->
268 <group delimiter=", ">
269 <text macro="title"/>
270 <text macro="type-number"/>
271 <text macro="container"/>
272 <text macro="editor"/>
273 <text macro="page"/>
274 <text macro="publisher"/>
275 </group>
276 <text macro="issued-year"/>
277 <text macro="access"/>
278 </else>
279 </choose>
280 </layout>
281 </bibliography>
282 </style>
Something went wrong with that request. Please try again.