Ticket #632: a251-raw.csl

File a251-raw.csl, 5.1 KB (added by codec, 9 years ago)

Open University A251 format

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