Ticket #632: harvard1-raw.csl

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

Harvard reference format 1

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 Reference format 1 (Author-Date)</title>
5    <id>http://www.zotero.org/namespaces/CSL/Harvard1-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-02T16:16:00+00:00</updated>
12    <summary>The harvard author-date style.</summary>
13    <source>http://libweb.anglia.ac.uk/referencing/harvard.htm</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    <group>
47      <text value="Available at:" suffix=" "/>
48      <text variable="URL"/>
49      <group prefix=" [" suffix="]">
50        <text term="accessed" text-transform="capitalize" suffix=" "/>
51        <date variable="accessed">
52          <date-part name="month" suffix=" "/>
53          <date-part name="day" suffix=", "/>
54          <date-part name="year"/>
55        </date>
56      </group>
57    </group>
58  </macro>
59  <macro name="title">
60    <choose>
61      <if type="book">
62        <text variable="title" font-style="italic"/>
63      </if>
64      <else>
65        <text variable="title"/>
66      </else>
67    </choose>
68  </macro>
69  <macro name="publisher">
70    <group delimiter=": ">
71      <text variable="publisher-place"/>
72      <text variable="publisher"/>
73    </group>
74  </macro>
75  <macro name="year-date">
76    <choose>
77      <if variable="issued">
78        <date variable="issued">
79          <date-part name="year"/>
80        </date>
81      </if>
82      <else>
83        <text value="n.d."/>
84      </else>
85    </choose>
86  </macro>
87  <citation>
88    <option name="et-al-min" value="4"/>
89    <option name="et-al-use-first" value="1"/>
90    <option name="et-al-subsequent-min" value="6"/>
91    <option name="et-al-subsequent-use-first" value="1"/>
92    <option name="disambiguate-add-year-suffix" value="true"/>
93    <option name="disambiguate-add-names" value="true"/>
94    <option name="disambiguate-add-givenname" value="true"/>
95    <option name="collapse" value="year"/>
96    <layout prefix="(" suffix=")" delimiter="; ">
97      <group delimiter=", ">
98        <group delimiter=" ">
99          <text macro="author-short"/>
100          <text macro="year-date"/>
101        </group>
102        <text variable="locator" prefix="p."/>
103      </group>
104    </layout>
105  </citation>
106  <bibliography>
107    <option name="hanging-indent" value="true"/>
108    <option name="et-al-min" value="4"/>
109    <option name="et-al-use-first" value="1"/>
110    <sort>
111      <key macro="author"/>
112      <key variable="title"/>
113    </sort>
114    <layout>
115      <text macro="author" suffix=","/>
116      <date variable="issued" prefix=" " suffix=".">
117        <date-part name="year"/>
118      </date>
119      <choose>
120        <if type="book">
121          <group suffix=",">
122            <text macro="title" prefix=" "/>
123            <text variable="edition" prefix=" " suffix=" ed."/>
124            <text macro="editor" prefix=" "/>
125          </group>
126          <text prefix=" " suffix="." macro="publisher"/>
127        </if>
128        <else-if type="chapter">
129          <text macro="title" prefix=" " suffix="."/>
130          <group class="container" prefix=" ">
131            <text term="in" text-transform="capitalize"/>
132            <text macro="editor" prefix=" "/>
133            <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
134            <text variable="collection-title" prefix=" " suffix="."/>
135            <group suffix=".">
136              <text macro="publisher" prefix=" "/>
137              <group prefix=", ">
138                <text variable="page" prefix="p. "/>
139              </group>
140            </group>
141          </group>
142        </else-if>
143        <else>
144          <group suffix=".">
145            <text macro="title" prefix=" " />
146            <text macro="editor" prefix=" "/>
147          </group>
148          <group class="container" prefix=" " suffix=".">
149            <text variable="container-title" font-style="italic"/>
150            <group prefix=", ">
151              <text variable="volume" />
152              <text variable="issue" prefix="(" suffix=")"/>
153            </group>
154            <group prefix=", ">
155              <text variable="page" prefix="p."/>
156            </group>
157          </group>
158        </else>
159      </choose>
160      <text prefix=" " macro="access" suffix="."/>
161    </layout>
162  </bibliography>
163</style>