Ticket #632: harvard3-raw.csl

File harvard3-raw.csl, 5.0 KB (added by codec, 9 years ago)

Harvard reference format 3

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