Ticket #632: mha-raw.csl

File mha-raw.csl, 10.0 KB (added by codec, 9 years ago)

Modern Humanities Research Association (Note with Bibliography)

Line 
1<style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en"> 
2  <info>
3    <title>Modern Humanities Research Association (Note with Bibliography)</title>
4    <id>http://purl.org/net/xbiblio/csl/styles/mhra-note-bibliography.csl</id>
5    <link>http://purl.org/net/xbiblio/csl/styles/mhra-note-bibliography.csl</link>
6    <source>http://www.mhra.org.uk/Publications/Books/StyleGuide/download.shtml</source>
7    <author>
8      <name>Julian Onions</name>
9      <email>julian.onions@gmail.com</email>
10    </author>
11    <category term="history"/>
12    <category term="generic-base"/>
13    <updated>2007-11-09T14:15:00+08:00</updated>
14  </info>
15  <macro name="editor-translator">
16    <names variable="editor translator" prefix="" suffix="" delimiter=", ">
17      <label form="verb-short" prefix=" " text-transform="lowercase" suffix=" "/>
18      <name and="text" delimiter=", "/>
19    </names>
20  </macro>
21  <macro name="editor-translator-short">
22    <names variable="editor translator" prefix="" suffix="" delimiter=", ">
23      <label form="short" prefix=" " text-transform="lowercase" suffix=". "/>
24      <name and="text" delimiter=", "/>
25    </names>
26  </macro>
27  <macro name="author">
28    <names variable="author">
29      <name name-as-sort-order="first" and="text" sort-separator=", "
30            delimiter=", " delimiter-precedes-last="always"/>
31      <label form="short" prefix=", " suffix="."/>
32      <substitute>
33        <names variable="editor"/>
34        <names variable="translator"/>
35        <text macro="title"/>
36      </substitute>
37    </names>
38  </macro>
39  <macro name="author-full">
40    <names variable="author">
41      <name name-as-sort-order="all" and="text" sort-separator=", "
42            delimiter=", " delimiter-precedes-last="always"/>
43      <label form="short" prefix=", " suffix="."/>
44      <substitute>
45        <names variable="editor"/>
46        <names variable="translator"/>
47        <text macro="title"/>
48      </substitute>
49    </names>
50  </macro>
51  <macro name="author-short">
52    <names variable="author">
53      <name form="long" and="text" delimiter=", " />
54      <label form="short" prefix=", " suffix="."/>
55    </names>
56  </macro>
57  <macro name="access">
58    <group>
59      <text variable="URL"/>
60      <group prefix=" (" suffix=")" delimiter=" ">
61        <text term="accessed" text-transform="lowercase" suffix=" "/>
62        <date variable="accessed" suffix=", ">
63          <date-part name="month" suffix=" "/>
64          <date-part name="day" suffix=", "/>
65          <date-part name="year"/>
66        </date>
67      </group>
68    </group>
69  </macro>
70  <macro name="title">
71    <choose>
72      <if type="thesis">
73        <text variable="title" form="long" quotes="true"/>
74      </if>
75      <else-if type="book">
76        <text variable="title" form="long" font-style="italic"/>
77      </else-if>
78      <else>
79        <text variable="title" form="long" quotes="true"/>
80      </else>
81    </choose>
82  </macro>
83  <macro name="publisher">
84    <group delimiter=": ">
85      <text variable="publisher-place"/>
86      <text variable="publisher"/>
87    </group>
88  </macro>
89  <macro name="pages">
90    <choose>
91      <if type="article-journal" match="none">
92        <label variable="page" form="short" suffix=". "/>
93      </if>
94    </choose>
95    <text variable="page"/>
96  </macro>
97  <macro name="locator">
98    <label variable="locator" form="short" suffix=". "/>
99    <text variable="locator"/>
100  </macro>
101  <macro name="vols">
102    <choose>
103      <if variable="number-of-volumes">
104        <text variable="number-of-volumes"/>
105        <text term="volume" prefix=" " form="short" plural="true"/>
106      </if>
107    </choose>
108  </macro>
109  <citation>
110    <layout suffix="." delimiter="; ">
111      <group suffix="">       
112        <text macro="author-short" suffix=", "/>
113        <text macro="title" prefix=""/>
114        <choose>
115          <if type="thesis">
116            <group prefix=" (" delimiter=", " suffix=")">
117              <text variable="genre"/>
118              <text variable="publisher"/>
119              <date variable="issued">
120                <date-part name="year"/>
121              </date>
122            </group>
123          </if>
124          <else-if type="chapter">
125            <group class="container" prefix=", ">
126              <text term="in" text-transform="lowercase"/>
127              <text variable="container-title" font-style="italic" prefix=" " suffix=","/>
128              <text variable="collection-title" prefix=" " suffix=","/>
129              <text macro="editor-translator-short"/>
130            </group>
131            <group prefix=" (" suffix=")" delimiter=", ">
132              <text macro="publisher" />
133              <date variable="issued">
134                <date-part name="year"/>
135              </date>
136            </group>
137          </else-if>
138          <else-if type="book">
139            <group delimiter=", " prefix=" ">
140              <text macro="editor-translator-short"/>
141              <text variable="collection-title"/>
142              <text variable="edition" suffix=" edn"/>
143              <text macro="vols"/>
144            </group>
145            <group prefix=" (" suffix=")" delimiter=", ">
146              <text macro="publisher"/>
147              <date variable="issued" prefix=" " suffix="">
148                <date-part name="year"/>
149              </date>
150            </group>
151            <text variable="volume" prefix=", "/>
152          </else-if>
153          <else-if type="article-newspaper article-magazine" match="any">
154            <group delimiter=", " prefix=", ">
155              <text variable="container-title" font-style="italic"/>
156              <text variable="issue"  suffix="."/>
157              <date variable="issued">
158                <date-part name="day" form="numeric" suffix=" "/>
159                <date-part name="month" form="long" suffix=" "/>
160                <date-part name="year"/>
161              </date>         
162            </group>
163          </else-if>
164          <else-if type="article-journal">
165            <group class="container" prefix=", " delimiter=", ">
166              <text variable="container-title" font-style="italic"/>
167              <text macro="publisher"/>
168              <text variable="volume"  prefix=" "/>
169            </group>
170            <date variable="issued" prefix=" (" suffix=")">
171              <date-part name="year"/>
172            </date>
173          </else-if>
174          <else>
175            <group delimiter=", " prefix=". ">
176              <text variable="container-title" font-style="italic"/>
177              <text variable="issue"  prefix=", " suffix="."/>
178              <date variable="issued">
179                <date-part name="month" form="long"/>
180                <date-part name="day" form="numeric" prefix=" " suffix=", "/>
181                <date-part name="year"/>
182              </date>         
183            </group>
184          </else>
185        </choose>
186        <group prefix=", " delimiter=" ">
187          <text macro="pages"/>
188          <text macro="locator" prefix="(" suffix=")"/>
189        </group>
190      </group>
191    </layout>
192  </citation>
193  <bibliography>
194    <option name="hanging-indent" value="true"/>
195    <option name="et-al-min" value="6"/>
196    <option name="et-al-use-first" value="6"/>
197    <option name="subsequent-author-substitute" value="---"/>
198    <sort>
199      <key macro="author"/>
200      <key variable="title"/>
201    </sort>
202    <layout suffix=".">
203      <text macro="author" suffix=","/>
204      <choose>
205        <if type="thesis">
206          <group suffix=".">
207            <text macro="title" prefix=" "/>
208          </group>
209          <group delimiter=", " prefix=" ">
210            <text variable="genre"/>
211            <text variable="publisher"/>
212            <date variable="issued">
213              <date-part name="year"/>
214            </date>
215          </group>
216        </if>
217        <else-if type="chapter">
218          <text macro="title" prefix=" "/>
219          <group class="container" prefix=", ">
220            <text term="in" text-transform="lowercase"/>
221            <text variable="container-title" font-style="italic" prefix=" " suffix=","/>
222            <text variable="collection-title" prefix=" " suffix=","/>
223            <text macro="editor-translator-short"/>
224          </group>
225          <group prefix=" (" suffix=")" delimiter=", ">
226            <text macro="publisher" />
227            <date variable="issued">
228              <date-part name="year"/>
229            </date>
230          </group>
231        </else-if>
232        <else-if type="article-journal">
233          <group suffix=".">
234            <text macro="title" prefix=" "/>
235            <text macro="editor-translator" prefix=" "/>
236          </group>
237          <group class="container" prefix=" " suffix="">
238            <text variable="container-title" font-style="italic" prefix=" "/>
239            <text variable="volume"  prefix=" "/>
240            <text variable="issue" prefix=", no. "/>
241            <date variable="issued" prefix=" (" suffix=")">
242              <date-part name="month" suffix=" "/>
243              <date-part name="day" suffix=", "/>
244              <date-part name="year"/>
245            </date>
246            <text variable="page" prefix=": "/>
247          </group>
248        </else-if>
249        <else-if type="article-newspaper article-magazine" match="any">
250          <group suffix=".">
251            <text macro="title" prefix=" "/>
252            <text macro="editor-translator" prefix=" "/>
253          </group>
254          <group delimiter=", " prefix=" ">
255            <text variable="container-title" font-style="italic"/>
256            <text variable="issue"  suffix="."/>
257            <date variable="issued">
258              <date-part name="month" form="long"/>
259              <date-part name="day" form="numeric" prefix=" " suffix=", "/>
260              <date-part name="year"/>
261            </date>         
262          </group>
263        </else-if>
264        <else-if type="paper-conference">
265          <group suffix=".">
266            <text macro="title" prefix=" "/>
267            <text macro="editor-translator" prefix=" "/>
268          </group>
269          <group suffix="">
270            <text value="paper presented at" text-transform="capitalize"/>
271            <text variable="event" prefix=" "/>
272            <text variable="event-place"  prefix=", "/>
273            <date variable="event">
274              <date-part name="month" form="long"/>
275              <date-part name="day" form="numeric" prefix=" " suffix=", "/>
276              <date-part name="year"/>
277            </date>         
278          </group>
279        </else-if>
280        <else-if type="book">
281          <group suffix=".">
282            <text macro="title" prefix=" " suffix="."/>
283          </group>
284          <group delimiter=", " prefix=" ">
285            <text macro="editor-translator-short"/>
286            <text variable="collection-title"/>
287            <text variable="edition" suffix=" edn"/>
288            <text macro="vols"/>
289          </group>
290          <group prefix=" (" suffix=")" delimiter=", ">
291            <text macro="publisher"/>
292            <date variable="issued" prefix=" " suffix="">
293              <date-part name="year"/>
294            </date>
295          </group>
296          <text variable="volume" prefix=", "/>
297        </else-if>
298        <else>
299          <group suffix=".">
300            <text macro="title" prefix=" "/>
301            <text macro="editor-translator" prefix=" "/>
302          </group>
303          <group class="container" prefix=" " suffix="">
304            <text variable="container-title" font-style="italic"/>
305            <group prefix=", ">
306              <text variable="volume" font-style="italic"/>
307              <text variable="issue" prefix="(" suffix=")"/>
308            </group>
309            <text variable="page" prefix=", "/>
310          </group>
311        </else>
312      </choose>
313      <text prefix=" " macro="access"/>
314    </layout>
315  </bibliography>
316</style>