Skip to content

Commit 51e3f4c

Browse files
authored
Update harvard-university-of-bath.csl (#5299)
1 parent 5fce84f commit 51e3f4c

File tree

1 file changed

+77
-22
lines changed

1 file changed

+77
-22
lines changed

harvard-university-of-bath.csl

Lines changed: 77 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
<?xml version="1.0" encoding="utf-8"?>
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">
3-
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
43
<info>
54
<title>University of Bath - Harvard</title>
65
<id>http://www.zotero.org/styles/harvard-university-of-bath</id>
76
<link href="http://www.zotero.org/styles/harvard-university-of-bath" rel="self"/>
87
<link href="http://www.zotero.org/styles/harvard-bournemouth-university" rel="template"/>
98
<link href="https://library.bath.ac.uk/referencing/harvard-bath" rel="documentation"/>
109
<link href="https://github.com/alex-ball/bathbib/" rel="documentation"/>
11-
<author>
12-
<name>Rob Fuller</name>
13-
<email>rob.fuller1@gmail.com</email>
14-
</author>
1510
<author>
1611
<name>Alex Ball</name>
1712
<email>ab318@bath.ac.uk</email>
1813
</author>
14+
<author>
15+
<name>Rob Fuller</name>
16+
<email>rob.fuller1@gmail.com</email>
17+
</author>
1918
<category citation-format="author-date"/>
2019
<category field="generic-base"/>
2120
<summary>Adaptation of Harvard referencing style used at the University of Bath.</summary>
22-
<updated>2019-09-13T15:00:00+00:00</updated>
21+
<updated>2021-02-24T15:00:00+00:00</updated>
2322
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
2423
</info>
2524
<locale xml:lang="en">
@@ -45,25 +44,40 @@
4544
<label form="short" prefix=", " text-case="lowercase"/>
4645
</names>
4746
</macro>
47+
<macro name="byeditor">
48+
<names variable="editor">
49+
<label form="verb-short" text-case="capitalize-first" suffix=" "/>
50+
<name and="text" delimiter-precedes-last="never" initialize-with="."/>
51+
</names>
52+
</macro>
4853
<macro name="author">
4954
<names variable="author">
5055
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
5156
<label form="short" prefix=" " text-case="lowercase"/>
5257
<substitute>
53-
<names variable="editor">
54-
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
55-
<label form="short" prefix=", " text-case="lowercase"/>
56-
</names>
57-
<text macro="title"/>
58+
<choose>
59+
<if type="entry"/>
60+
<else>
61+
<names variable="editor">
62+
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all"/>
63+
<label form="short" prefix=", " text-case="lowercase"/>
64+
</names>
65+
</else>
66+
</choose>
67+
<text macro="title-label"/>
5868
</substitute>
5969
</names>
6070
</macro>
6171
<macro name="author-short">
6272
<names variable="author">
6373
<name form="short" and="text" delimiter-precedes-last="never" initialize-with="."/>
6474
<substitute>
65-
<names variable="editor"/>
66-
<names variable="translator"/>
75+
<choose>
76+
<if type="entry"/>
77+
<else>
78+
<names variable="editor"/>
79+
</else>
80+
</choose>
6781
<text macro="title-short"/>
6882
</substitute>
6983
</names>
@@ -127,7 +141,7 @@
127141
<if type="bill broadcast book dataset graphic legal_case map motion_picture musical_score patent report song speech webpage thesis" match="any">
128142
<text variable="title" font-style="italic"/>
129143
</if>
130-
<else-if type="legislation">
144+
<else-if type="legislation legal_case" match="any">
131145
<choose>
132146
<if variable="container-title">
133147
<text variable="title"/>
@@ -150,16 +164,43 @@
150164
<if type="thesis motion_picture broadcast" match="any"/>
151165
<else-if type="report" variable="number"/>
152166
<else-if type="patent" variable="number"/>
167+
<else-if type="bill" variable="number"/>
153168
<else>
154169
<text variable="genre" prefix=" [" suffix="]"/>
155170
</else>
156171
</choose>
157172
</macro>
158173
<macro name="title-short">
159174
<choose>
160-
<if type="bill broadcast book dataset graphic map motion_picture musical_score patent report song webpage thesis" match="any">
161-
<text variable="title" font-style="italic"/>
175+
<if type="bill broadcast dataset graphic map motion_picture musical_score patent report song webpage thesis" match="any">
176+
<text variable="title" form="short" font-style="italic"/>
177+
</if>
178+
<else-if type="legislation legal_case" match="any">
179+
<choose>
180+
<if variable="container-title">
181+
<text variable="title" form="short"/>
182+
</if>
183+
<else>
184+
<text variable="title" form="short" font-style="italic"/>
185+
</else>
186+
</choose>
187+
</else-if>
188+
<else-if type="entry">
189+
<text variable="container-title" form="short"/>
190+
</else-if>
191+
<else>
192+
<text variable="title" form="short"/>
193+
</else>
194+
</choose>
195+
</macro>
196+
<macro name="title-label">
197+
<choose>
198+
<if type="entry">
199+
<text variable="container-title"/>
162200
</if>
201+
<else-if type="bill broadcast dataset graphic legal_case map motion_picture musical_score patent report song speech webpage thesis" match="any">
202+
<text variable="title" font-style="italic"/>
203+
</else-if>
163204
<else-if type="legislation legal_case" match="any">
164205
<choose>
165206
<if variable="container-title">
@@ -171,7 +212,7 @@
171212
</choose>
172213
</else-if>
173214
<else>
174-
<text variable="title-short"/>
215+
<text variable="title"/>
175216
</else>
176217
</choose>
177218
</macro>
@@ -449,6 +490,19 @@
449490
</group>
450491
<text prefix=" " suffix="." macro="publisher"/>
451492
</else-if>
493+
<else-if type="entry">
494+
<group prefix=" " suffix="." delimiter=". ">
495+
<text macro="byeditor"/>
496+
<text macro="edition"/>
497+
<group delimiter=" ">
498+
<text variable="title" font-style="italic"/>
499+
<text macro="online"/>
500+
</group>
501+
<text macro="series"/>
502+
<text macro="status"/>
503+
<text macro="publisher"/>
504+
</group>
505+
</else-if>
452506
<else-if type="article-journal" match="any">
453507
<group prefix=" " suffix="." delimiter=". ">
454508
<text macro="title"/>
@@ -565,12 +619,12 @@
565619
</group>
566620
</else-if>
567621
<else-if type="graphic map" match="any">
568-
<group prefix=" " suffix="." delimiter=" ">
569-
<group delimiter=", ">
622+
<group prefix=" " suffix="." delimiter=", ">
623+
<group delimiter=" ">
570624
<text macro="title"/>
571-
<text variable="scale"/>
625+
<text macro="online"/>
572626
</group>
573-
<text macro="online"/>
627+
<text variable="scale"/>
574628
</group>
575629
<group prefix=" " suffix="." delimiter=". ">
576630
<text macro="edition"/>
@@ -616,9 +670,10 @@
616670
</choose>
617671
</group>
618672
<group prefix=" " suffix="." delimiter=". ">
673+
<text macro="editor"/>
674+
<text macro="edition"/>
619675
<text macro="series"/>
620676
<text macro="status"/>
621-
<text macro="editor"/>
622677
</group>
623678
<group prefix=" " suffix="." delimiter=", ">
624679
<choose>

0 commit comments

Comments
 (0)