Ticket #632: harvard2-raw.csl

File harvard2-raw.csl, 5.3 KB (added by codec, 9 years ago)

Harvard reference format 2

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
3  <info>
4    <title>Harvard Author-Date format 2</title>
5    <id>http://www.zotero.org/namespaces/CSL/Harvard2-Author-Date.csl</id>
6    <author>
7      <name>Julian Onions</name>
8      <email>julian.onions@gmail.com</email>
9    </author>
10    <category term="author-date"/>
11    <updated>2007-10-12T03:33:00+05:00</updated>
12    <summary>The harvard author-date style.</summary>
13    <source>http://www.leeds.ac.uk/library/training/referencing/harvard.htm</source>
14  </info>
15  <macro name="editor">
16    <names variable="editor" prefix="" suffix="" delimiter=", ">
17      <name and="symbol" initialize-with=". " delimiter=", "/>
18      <label form="short" prefix=", " text-transform="lowercase" suffix="."/>
19    </names>
20  </macro>
21  <macro name="author">
22    <names variable="author">
23      <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="."
24            delimiter=", "/>
25      <label form="short" prefix=" (" suffix=")." text-transform="lowercase"/>
26      <substitute>
27        <names variable="editor"/>
28        <text value="Anon"/>
29      </substitute>
30    </names>
31  </macro>
32  <macro name="author-short">
33    <names variable="author">
34      <name form="short" and="symbol" delimiter=", " initialize-with="."/>
35      <substitute>
36        <names variable="editor"/>
37        <names variable="translator"/>
38        <text value="Anon"/>
39      </substitute>
40    </names>
41  </macro>
42  <macro name="access">
43    <group>
44      <text value="Available at:" suffix=" "/>
45      <text variable="URL"/>
46      <group prefix=" [" suffix="]">
47        <text term="accessed" text-transform="capitalize" suffix=" "/>
48        <date variable="accessed">
49          <date-part name="month" suffix=" "/>
50          <date-part name="day" suffix=", "/>
51          <date-part name="year"/>
52        </date>
53      </group>
54    </group>
55  </macro>
56  <macro name="title">
57    <choose>
58      <if type="book">
59        <text variable="title" font-style="italic"/>
60      </if>
61      <else>
62        <text variable="title"/>
63      </else>
64    </choose>
65  </macro>
66  <macro name="publisher">
67    <group delimiter=": ">
68      <text variable="publisher-place"/>
69      <text variable="publisher"/>
70    </group>
71  </macro>
72  <macro name="year-date">
73    <group prefix=" ">
74      <choose>
75        <if variable="issued">
76          <date variable="issued">
77            <date-part name="year"/>
78          </date>
79        </if>
80        <else>
81          <text value="n.d."/>
82        </else>
83      </choose>
84    </group>
85  </macro>
86  <citation>
87    <option name="et-al-min" value="4"/>
88    <option name="et-al-use-first" value="1"/>
89    <option name="et-al-subsequent-min" value="6"/>
90    <option name="et-al-subsequent-use-first" value="1"/>
91    <option name="disambiguate-add-year-suffix" value="true"/>
92    <option name="disambiguate-add-names" value="true"/>
93    <option name="disambiguate-add-givenname" value="true"/>
94    <layout prefix="(" suffix=")" delimiter="; ">
95      <group delimiter=", ">
96        <group delimiter=" ">
97          <text macro="author-short"/>
98          <text macro="year-date"/>
99        </group>
100        <group>
101          <label variable="locator" suffix="." form="short"/>
102          <text variable="locator" prefix=" "/>
103        </group>
104      </group>
105    </layout>
106  </citation>
107  <bibliography>
108    <option name="hanging-indent" value="true"/>
109    <option name="et-al-min" value="2"/>
110    <option name="et-al-use-first" value="1"/>
111    <sort>
112      <key macro="author"/>
113      <key variable="title"/>
114    </sort>
115    <layout>
116      <text macro="author" suffix=""/>
117      <date variable="issued" prefix=" " suffix=".">
118        <date-part name="year"/>
119      </date>
120      <choose>
121        <if type="book">
122          <group suffix=".">
123            <text macro="title" prefix=" "/>
124            <text variable="edition" prefix=" " suffix=" ed."/>
125            <text macro="editor" prefix=" (" suffix=")"/>
126          </group>
127          <text prefix=" " suffix="." macro="publisher"/>
128        </if>
129        <else-if type="chapter">
130          <text macro="title" prefix=" "/>
131          <group class="container" prefix=" ">
132            <text term="in" text-transform="lowercase"/>
133            <names variable="editor" prefix=" " suffix="," delimiter=", ">
134              <name and="symbol" sort-separator=", " initialize-with=". "/>
135              <label form="short" prefix=" " suffix="." text-transform="lowercase"/>
136            </names>
137            <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
138            <text variable="collection-title" prefix=" " suffix="."/>
139            <group suffix=".">
140              <text macro="publisher" prefix=" "/>
141              <group prefix=", ">
142                <label variable="page" form="short" suffix=". "/>
143                <text variable="page"/>
144              </group>
145            </group>
146          </group>
147        </else-if>
148        <else>
149          <group suffix=".">
150            <text macro="title" prefix=" " />
151            <text macro="editor" prefix=" "/>
152          </group>
153          <group class="container" prefix=" " suffix=".">
154            <text variable="container-title" font-style="italic"/>
155            <group prefix=", ">
156              <text variable="volume" font-weight="bold"/>
157              <text variable="issue" prefix="(" suffix=")"/>
158            </group>
159            <group prefix=", ">
160              <label variable="page" form="short" suffix="."/>
161              <text variable="page"/>
162            </group>
163          </group>
164        </else>
165      </choose>
166      <text prefix=" " macro="access" suffix="."/>
167    </layout>
168  </bibliography>
169</style>