commit 465c023103e73915aed9a9d566db6e2a366ae373
parent 91b843a1add2e1ed39e1568cf89675c16b068133
Author: Julian Onions <julian.onions@gmail.com>
Date: Wed, 28 Nov 2007 08:59:41 +0000
Updated with a number of fixes thanks to drrayl
Diffstat:
| M | csl/oxford-art.csl | | | 76 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------- |
1 file changed, 55 insertions(+), 21 deletions(-)
diff --git a/csl/oxford-art.csl b/csl/oxford-art.csl
@@ -23,6 +23,20 @@
</substitute>
</names>
</macro>
+ <macro name="container-editor">
+ <group delimiter=" ">
+ <text term="in" suffix=" "/>
+ <names variable="editor">
+ <name and="text" delimiter=", " />
+ <label form="short" prefix=" (" suffix=".)"/>
+ <substitute>
+ <names variable="editor"/>
+ <names variable="translator"/>
+ <text macro="title"/>
+ </substitute>
+ </names>
+ </group>
+ </macro>
<macro name="title">
<choose>
<if type="thesis">
@@ -38,8 +52,8 @@
</macro>
<macro name="publisher">
<group delimiter=": ">
- <text variable="publisher"/>
- <text variable="publisher-place"/>
+ <text variable="publisher"/>
+ <text variable="publisher-place"/>
</group>
</macro>
<macro name="date">
@@ -59,6 +73,7 @@
<text variable="page"/>
</macro>
<macro name="pageref">
+ <label variable="locator" suffix=". " form="short"/>
<text variable="locator"/>
</macro>
<macro name="volref">
@@ -68,7 +83,14 @@
</group>
</macro>
<macro name="container">
- <text variable="container-title" font-style="italic"/>
+ <choose>
+ <if type="chapter">
+ <text variable="container-title" font-style="italic"/>
+ </if>
+ <else>
+ <text variable="container-title" font-style="italic"/>
+ </else>
+ </choose>
</macro>
<citation>
<layout suffix="." delimiter="; ">
@@ -77,29 +99,41 @@
<choose>
<if type="book">
<group delimiter=", ">
- <text macro="title" />
- <text macro="volumes"/>
- </group>
+ <text macro="title" />
+ <text macro="volumes"/>
+ </group>
<group prefix=" (" suffix=")" delimiter=", ">
- <text macro="publisher"/>
- <text macro="container"/>
- <text macro="volref"/>
- <text macro="date"/>
- <text macro="pageno"/>
- <text macro="pageref"/>
+ <text macro="publisher"/>
+ <text macro="container"/>
+ <text macro="volref"/>
+ <text macro="date"/>
</group>
+ <text macro="pageref" prefix=". "/>
</if>
- <else>
- <group delimiter=", ">
- <text macro="title" />
+ <else-if type="chapter">
+ <group delimiter=", ">
+ <text macro="title" />
+ <text macro="container-editor"/>
+ <text macro="container"/>
+ <text macro="volref"/>
+ <text macro="volumes"/>
+ <group prefix=" (" suffix=")" delimiter=", ">
<text macro="publisher"/>
- <text macro="container"/>
- <text macro="volref"/>
<text macro="date"/>
- <text macro="volumes"/>
- <text macro="pageno"/>
- <text macro="pageref"/>
- </group>
+ </group>
+ </group>
+ <text macro="pageref" prefix=", "/>
+ </else-if>
+ <else>
+ <group delimiter=", ">
+ <text macro="title" />
+ <text macro="publisher"/>
+ <text macro="container"/>
+ <text macro="volref"/>
+ <text macro="date"/>
+ <text macro="volumes"/>
+ <text macro="pageref"/>
+ </group>
</else>
</choose>
</group>