Skip to content

Commit 3d12b8f

Browse files
authored
Create cardiff-university-biosi-and-carbs-only-harvard.csl (JabRef#5024)
This is new style for Cardiff University's Biosciences and buisness schools; it works in English and Welsh * Delete harvard-cardiff-university-biosi.csl * Update template links in other styles
1 parent 776002d commit 3d12b8f

5 files changed

+263
-214
lines changed

Diff for: cardiff-university-biosi-and-carbs-harvard.csl

+260
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3+
<!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
4+
<info>
5+
<title>Cardiff University BIOSI and CARBS - Harvard</title>
6+
<id>http://www.zotero.org/styles/cardiff-university-biosi-and-carbs-harvard</id>
7+
<link href="http://www.zotero.org/styles/cardiff-university-biosi-and-carbs-harvard" rel="self"/>
8+
<link href="https://xerte.cardiff.ac.uk/play_12072" rel="documentation"/>
9+
<link href="https://xerte.cardiff.ac.uk/play_10324" rel="documentation"/>
10+
<link href="https://github.com/citation-style-language/styles/pull/3676#issuecomment-420542651" rel="documentation"/>
11+
<author>
12+
<name>Zoe Young</name>
13+
<email>[email protected]</email>
14+
</author>
15+
<author>
16+
<name>Lewys Peters</name>
17+
</author>
18+
<category citation-format="author-date"/>
19+
<category field="generic-base"/>
20+
<summary>The Harvard author-date style - adapted for Cardiff University</summary>
21+
<updated>2020-07-14T09:11:47+00:00</updated>
22+
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
23+
</info>
24+
<macro name="editor">
25+
<names variable="editor" delimiter=", ">
26+
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with=". " delimiter=", "/>
27+
<label form="short" prefix=" "/>
28+
</names>
29+
</macro>
30+
<macro name="author">
31+
<names variable="author">
32+
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
33+
<label form="short" prefix=" "/>
34+
<substitute>
35+
<names variable="editor"/>
36+
<choose>
37+
<if type="article-newspaper article-magazine" match="any">
38+
<text variable="container-title"/>
39+
</if>
40+
<else>
41+
<text macro="title"/>
42+
</else>
43+
</choose>
44+
</substitute>
45+
</names>
46+
</macro>
47+
<macro name="author-short">
48+
<names variable="author">
49+
<name form="short" and="text" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
50+
<substitute>
51+
<names variable="editor"/>
52+
<names variable="translator"/>
53+
<choose>
54+
<if type="article-newspaper article-magazine" match="any">
55+
<text variable="container-title" text-case="title" font-style="italic"/>
56+
</if>
57+
<else>
58+
<text macro="title"/>
59+
</else>
60+
</choose>
61+
</substitute>
62+
</names>
63+
</macro>
64+
<macro name="access">
65+
<choose>
66+
<if variable="URL" match="all">
67+
<group delimiter=" ">
68+
<group delimiter=": ">
69+
<text term="available at" text-case="capitalize-first"/>
70+
<text variable="URL"/>
71+
</group>
72+
<group prefix="[" suffix="]" delimiter=": ">
73+
<text term="accessed" text-case="capitalize-first"/>
74+
<date variable="accessed">
75+
<date-part name="day" suffix=" "/>
76+
<date-part name="month" suffix=" "/>
77+
<date-part name="year"/>
78+
</date>
79+
</group>
80+
</group>
81+
</if>
82+
<else-if match="all" variable="DOI">
83+
<text variable="DOI" prefix="doi: "/>
84+
</else-if>
85+
</choose>
86+
</macro>
87+
<macro name="title">
88+
<choose>
89+
<if type="bill book graphic legal_case legislation motion_picture report song thesis patent" match="any">
90+
<text variable="title" font-style="italic"/>
91+
</if>
92+
<else>
93+
<text variable="title" suffix="."/>
94+
</else>
95+
</choose>
96+
</macro>
97+
<macro name="publisher">
98+
<group delimiter=": " suffix="">
99+
<text variable="publisher-place"/>
100+
<text variable="publisher"/>
101+
</group>
102+
</macro>
103+
<macro name="year-date">
104+
<choose>
105+
<if type="bill legislation" match="none">
106+
<choose>
107+
<if variable="issued">
108+
<date variable="issued">
109+
<date-part name="year"/>
110+
</date>
111+
<text variable="year-suffix"/>
112+
</if>
113+
<else>
114+
<text term="no date" prefix="[" suffix="]"/>
115+
<text variable="year-suffix" prefix="[" suffix="]"/>
116+
</else>
117+
</choose>
118+
</if>
119+
</choose>
120+
</macro>
121+
<macro name="published-date">
122+
<choose>
123+
<if type="article-newspaper article-magazine post-weblog speech" match="any">
124+
<date variable="issued">
125+
<date-part name="day" prefix=" " suffix=" "/>
126+
<date-part name="month" form="long"/>
127+
</date>
128+
</if>
129+
</choose>
130+
</macro>
131+
<macro name="edition">
132+
<choose>
133+
<if is-numeric="edition">
134+
<group delimiter=" ">
135+
<number variable="edition" form="ordinal"/>
136+
<text term="edition" form="short"/>
137+
</group>
138+
</if>
139+
<else>
140+
<text variable="edition" suffix="."/>
141+
</else>
142+
</choose>
143+
</macro>
144+
<macro name="pages">
145+
<choose>
146+
<if type="chapter paper-conference article article-journal article-magazine article-newspaper book review review-book report" match="any">
147+
<group>
148+
<label variable="page" form="short" suffix=" "/>
149+
<text variable="page" suffix="."/>
150+
</group>
151+
</if>
152+
</choose>
153+
</macro>
154+
<macro name="bill-detail">
155+
<choose>
156+
<if type="bill legislation" match="any">
157+
<group>
158+
<text variable="section"/>
159+
<text variable="volume"/>
160+
</group>
161+
</if>
162+
</choose>
163+
</macro>
164+
<macro name="patent">
165+
<text variable="number" suffix=" [Patent]."/>
166+
</macro>
167+
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true">
168+
<sort>
169+
<key macro="year-date"/>
170+
<key variable="author"/>
171+
</sort>
172+
<layout prefix="(" suffix=")" delimiter="; ">
173+
<group delimiter=", ">
174+
<group delimiter=" ">
175+
<text macro="author-short"/>
176+
<text macro="year-date"/>
177+
</group>
178+
<group>
179+
<label variable="locator" form="short"/>
180+
<text variable="locator"/>
181+
</group>
182+
</group>
183+
</layout>
184+
</citation>
185+
<bibliography et-al-min="8" et-al-use-first="1" hanging-indent="false">
186+
<sort>
187+
<key macro="author"/>
188+
<key macro="year-date"/>
189+
<key variable="title"/>
190+
</sort>
191+
<layout>
192+
<text macro="author"/>
193+
<text macro="year-date" prefix=" " suffix="."/>
194+
<choose>
195+
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
196+
<group delimiter=". " prefix=" " suffix=".">
197+
<text macro="title"/>
198+
<text macro="edition"/>
199+
<text macro="editor"/>
200+
<text macro="publisher"/>
201+
<text macro="bill-detail"/>
202+
</group>
203+
</if>
204+
<else-if type="chapter paper-conference" match="any">
205+
<text macro="title" prefix=" " suffix="."/>
206+
<group prefix=" " delimiter=" ">
207+
<text term="in" text-case="capitalize-first" suffix=":"/>
208+
<text macro="editor"/>
209+
<text variable="container-title" font-style="italic" suffix="."/>
210+
<text variable="collection-title" suffix="."/>
211+
</group>
212+
<group prefix=" " delimiter=" ">
213+
<text macro="edition"/>
214+
<group suffix="" delimiter=", ">
215+
<text macro="publisher"/>
216+
</group>
217+
</group>
218+
</else-if>
219+
<else-if type="thesis">
220+
<group prefix=" " delimiter=". " suffix=".">
221+
<text macro="title"/>
222+
<text macro="edition"/>
223+
</group>
224+
<group prefix=" " delimiter=", " suffix=".">
225+
<text variable="genre"/>
226+
<text macro="publisher"/>
227+
</group>
228+
</else-if>
229+
<else-if type="webpage">
230+
<group prefix=" " delimiter=" " suffix=".">
231+
<text macro="title"/>
232+
<text macro="edition"/>
233+
</group>
234+
</else-if>
235+
<else-if type="patent" match="any">
236+
<group delimiter=" " prefix=" " suffix=".">
237+
<text macro="title"/>
238+
<text macro="patent"/>
239+
</group>
240+
</else-if>
241+
<else>
242+
<group suffix=".">
243+
<text macro="title" prefix=" "/>
244+
<text macro="editor" prefix=" "/>
245+
</group>
246+
<group prefix=" ">
247+
<text variable="container-title" font-style="italic" suffix=" "/>
248+
<text variable="volume"/>
249+
<text variable="issue" prefix="(" suffix=")"/>
250+
</group>
251+
</else>
252+
</choose>
253+
<group>
254+
<text macro="published-date"/>
255+
<text macro="pages" prefix=", "/>
256+
<text prefix=". " macro="access" suffix="."/>
257+
</group>
258+
</layout>
259+
</bibliography>
260+
</style>

Diff for: demographic-research.csl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Demographic Research</title>
55
<id>http://www.zotero.org/styles/demographic-research</id>
66
<link href="http://www.zotero.org/styles/demographic-research" rel="self"/>
7-
<link href="http://www.zotero.org/styles/harvard-cardiff-university-biosi" rel="template"/>
7+
<link href="http://www.zotero.org/styles/cardiff-university-biosi-and-carbs-harvard" rel="template"/>
88
<link href="http://www.demographic-research.org/files/demographic_research_reference_guidelines.pdf" rel="documentation"/>
99
<author>
1010
<name>Ilya Kashnitsky</name>

0 commit comments

Comments
 (0)