Skip to content

Commit 03d40ad

Browse files
authored
Create stellenbosch-university-harvard-2021.csl (#5524)
1 parent 1112d83 commit 03d40ad

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

harvard-stellenbosch-university.csl

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@
22
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
33
<info>
44
<title>Stellenbosch University - Harvard</title>
5+
<title-short>SU-Harvard</title-short>
56
<id>http://www.zotero.org/styles/harvard-stellenbosch-university</id>
67
<link href="http://www.zotero.org/styles/harvard-stellenbosch-university" rel="self"/>
7-
<link href="http://www.zotero.org/styles/harvard-cite-them-right" rel="template"/>
8-
<link href="http://libguides.sun.ac.za/content.php?pid=344501&amp;sid=2818229" rel="documentation"/>
8+
<link href="http://www.zotero.org/styles/harvard-university-of-cape-town" rel="template"/>
9+
<link href="https://libguides.sun.ac.za/c.php?g=742962&amp;p=5316902" rel="documentation"/>
10+
<!-- Sample data: https://gist.github.com/aurimasv/14da71a5d1def6e6ed86 -->
911
<author>
10-
<name>Yusuf Ras</name>
11-
<email>[email protected]</email>
12-
<uri>http://www.mendeley.com/profiles/yusuf-ras/</uri>
12+
<name>Kirchner van Deventer</name>
1313
</author>
1414
<category citation-format="author-date"/>
1515
<category field="generic-base"/>
16-
<updated>2015-09-01T08:01:34+00:00</updated>
16+
<updated>2021-06-22T12:00:00+00:00</updated>
1717
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
1818
</info>
1919
<locale xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en-GB">
2020
<terms>
21+
<term name="volume" form="short">v.</term>
2122
<term name="available at">available</term>
2223
<term name="open-quote">“</term>
2324
<term name="close-quote">”</term>
@@ -30,7 +31,7 @@
3031
<if variable="editor">
3132
<names variable="editor">
3233
<name and="symbol" initialize-with="." delimiter=", "/>
33-
<label form="short" prefix=" (" suffix=")"/>
34+
<label form="short" prefix=", " text-case="capitalize-first"/>
3435
</names>
3536
</if>
3637
</choose>
@@ -45,7 +46,7 @@
4546
</macro>
4647
<macro name="author">
4748
<names variable="author">
48-
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
49+
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="never" et-al-min="9" et-al-use-first="8"/>
4950
<label form="short" prefix=" " text-case="capitalize-first"/>
5051
<substitute>
5152
<names variable="editor"/>
@@ -63,13 +64,13 @@
6364
</macro>
6465
<macro name="author-short">
6566
<names variable="author">
66-
<name form="short" and="symbol" delimiter-precedes-last="never" initialize-with="." sort-separator=" "/>
67-
<et-al font-style="italic"/>
67+
<name form="short" and="symbol" delimiter=", " initialize-with="." delimiter-precedes-last="never" et-al-min="4" et-al-use-first="1"/>
6868
<substitute>
6969
<names variable="editor"/>
7070
<names variable="translator"/>
7171
<choose>
7272
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
73+
<!-- Note that webpage title is italicized in bibliography, but quoted in text -->
7374
<text variable="title" form="short" font-style="italic"/>
7475
</if>
7576
<else>
@@ -85,6 +86,10 @@
8586
</names>
8687
</macro>
8788
<macro name="date-issued">
89+
<!--
90+
Show "in press" for journal articles with non-numeric pages
91+
(i.e. "in press" in page field)
92+
-->
8893
<choose>
8994
<if type="article-journal" match="none">
9095
<text macro="date-issued-year"/>
@@ -101,6 +106,9 @@
101106
</choose>
102107
</macro>
103108
<macro name="date-issued-no-parentheses">
109+
<!--
110+
Same as date-issued, but no parentheses around "in press"
111+
-->
104112
<choose>
105113
<if type="article-journal" match="none">
106114
<text macro="date-issued-year"/>
@@ -130,14 +138,13 @@
130138
</macro>
131139
<macro name="access">
132140
<choose>
133-
<if variable="DOI"/>
141+
<if variable="DOI">
142+
<text variable="DOI" prefix="DOI: "/>
143+
</if>
134144
<else-if variable="URL">
135145
<group delimiter=" ">
136-
<group delimiter=": ">
137-
<group delimiter=", ">
138-
<text term="online" prefix="[" suffix="]" text-case="capitalize-first"/>
139-
<text term="available at" text-case="capitalize-first"/>
140-
</group>
146+
<group>
147+
<text term="available at" suffix=": " text-case="capitalize-first"/>
141148
<text variable="URL"/>
142149
</group>
143150
<text macro="date-access"/>
@@ -195,10 +202,10 @@
195202
<text variable="publisher"/>
196203
</group>
197204
</macro>
198-
<citation disambiguate-add-year-suffix="true" year-suffix-delimiter="," disambiguate-add-names="true" disambiguate-add-givenname="false" collapse="year-suffix" et-al-min="4" et-al-use-first="3" et-al-subsequent-min="3" et-al-subsequent-use-first="1">
205+
<citation disambiguate-add-year-suffix="true" year-suffix-delimiter="," disambiguate-add-names="true" disambiguate-add-givenname="false" collapse="year-suffix">
199206
<sort>
200-
<key macro="author"/>
201207
<key macro="date-issued-no-parentheses"/>
208+
<key macro="author"/>
202209
</sort>
203210
<layout prefix="(" suffix=")" delimiter="; ">
204211
<group delimiter=", ">
@@ -218,7 +225,7 @@
218225
</group>
219226
</layout>
220227
</citation>
221-
<bibliography hanging-indent="true" et-al-min="9" et-al-use-first="8">
228+
<bibliography entry-spacing="0">
222229
<sort>
223230
<key macro="author-short" names-min="1" names-use-first="1"/>
224231
<key macro="author-count" names-min="3" names-use-first="3"/>
@@ -277,11 +284,10 @@
277284
<else-if type="chapter paper-conference entry-encyclopedia entry-dictionary" match="any">
278285
<text macro="title"/>
279286
<group delimiter=" ">
280-
<text term="in"/>
287+
<text term="in" text-case="capitalize-first"/>
281288
<text variable="container-title" font-style="italic"/>
282-
<text macro="book-details"/>
283-
<text macro="editor-translator"/>
284289
</group>
290+
<text macro="book-details"/>
285291
<text variable="page"/>
286292
</else-if>
287293
<else-if type="patent" match="any">

0 commit comments

Comments
 (0)