Permalink
Browse files

some clean-up and fixes for Harvard Leeds

  • Loading branch information...
1 parent 41eb2fa commit cdc1b2589867fa5d86a6a8807d1fa39c94d805e8 @adam3smith adam3smith committed Sep 11, 2012
Showing with 45 additions and 21 deletions.
  1. +45 −21 harvard-university-of-leeds.csl
@@ -1,33 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
+ <!-- This style was edited with the Visual CSL Editor (http://steveridout.com/csl/visualEditor/) -->
<info>
<title>Harvard - University of Leeds</title>
<id>http://www.zotero.org/styles/harvard-university-of-leeds</id>
<link href="http://www.zotero.org/styles/harvard-university-of-leeds" rel="self"/>
+ <link href="http://beta.library.leeds.ac.uk/info/311/referencing" rel="documentation"/>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
</author>
<category citation-format="author-date"/>
<category field="generic-base"/>
- <updated>2012-01-01T00:00:00+00:00</updated>
<summary>The Harvard author-date style</summary>
- <link href="http://beta.library.leeds.ac.uk/info/311/referencing" rel="documentation"/>
+ <updated>2012-09-11T02:32:54+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<macro name="editor">
<names variable="editor" prefix="" suffix="" delimiter=", ">
<name and="symbol" initialize-with=". " delimiter=", "/>
- <label form="short" prefix=", " text-case="lowercase" suffix="." strip-periods="true"/>
+ <label form="short" prefix=", "/>
</names>
</macro>
<macro name="anon">
<text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/>
</macro>
<macro name="author">
<names variable="author">
- <name name-as-sort-order="all" and="symbol" sort-separator=", " delimiter-precedes-last="never" initialize-with="." delimiter=", "/>
- <label form="short" prefix=" (" suffix=")." text-case="lowercase" strip-periods="true"/>
+ <name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="first">
+ <name-part name="family" text-case="uppercase"/>
+ </name>
+ <label form="short" prefix=" (" suffix=")."/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
@@ -47,7 +50,7 @@
<macro name="access">
<choose>
<if variable="URL">
- <text value="Available at:" suffix=" "/>
+ <text value="Available from:" suffix=" "/>
<text variable="URL"/>
<group prefix=" [" suffix="]">
<text term="accessed" text-case="capitalize-first" suffix=" "/>
@@ -95,29 +98,29 @@
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
- <text term="edition" form="short" suffix="." strip-periods="true"/>
+ <text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
- <citation et-al-min="4" et-al-use-first="1" et-al-subsequent-min="6" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true">
+ <citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true">
<layout prefix="(" suffix=")" delimiter="; ">
- <group delimiter=", ">
+ <group delimiter=" ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group>
- <label variable="locator" suffix="." form="short" strip-periods="true"/>
+ <label variable="locator" form="short"/>
<text variable="locator" prefix=" "/>
</group>
</group>
</layout>
</citation>
- <bibliography hanging-indent="true" et-al-min="2" et-al-use-first="1">
+ <bibliography et-al-min="4" et-al-use-first="1" hanging-indent="true">
<sort>
<key macro="author"/>
<key variable="title"/>
@@ -131,6 +134,11 @@
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group prefix=" " delimiter=" " suffix=".">
<text macro="title"/>
+ <choose>
+ <if match="any" variable="URL">
+ <text term="online" prefix="[" suffix="]"/>
+ </if>
+ </choose>
<text macro="edition"/>
<text macro="editor" prefix="(" suffix=")"/>
</group>
@@ -139,17 +147,26 @@
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" "/>
<group prefix=" ">
- <text term="in" text-case="lowercase"/>
- <names variable="editor" prefix=" " suffix="," delimiter=", ">
- <name and="symbol" sort-separator=", " initialize-with=". "/>
- <label form="short" prefix=" " suffix="." text-case="lowercase" strip-periods="true"/>
+ <text term="in" text-case="capitalize-first" font-style="italic" suffix=":"/>
+ <names variable="editor" delimiter=", " prefix=" " suffix=".">
+ <name and="text" delimiter-precedes-last="never" initialize-with=". ">
+ <name-part name="family" text-case="uppercase"/>
+ </name>
+ <label form="short" text-case="lowercase" strip-periods="false" prefix=", "/>
</names>
- <text variable="container-title" font-style="italic" prefix=" " suffix="."/>
+ <group prefix=" " suffix="." delimiter=" ">
+ <text variable="container-title" font-style="italic"/>
+ <choose>
+ <if match="any" variable="URL">
+ <text term="online" form="long" plural="false" prefix="[" suffix="]"/>
+ </if>
+ </choose>
+ </group>
<text variable="collection-title" prefix=" " suffix="."/>
<group suffix=".">
<text macro="publisher" prefix=" "/>
<group prefix=", ">
- <label variable="page" form="short" suffix=". " strip-periods="true"/>
+ <label variable="page" form="short" suffix=" "/>
<text variable="page"/>
</group>
</group>
@@ -161,13 +178,20 @@
<text macro="editor" prefix=" "/>
</group>
<group prefix=" " suffix=".">
- <text variable="container-title" font-style="italic"/>
- <group prefix=", ">
+ <group delimiter=" ">
+ <text variable="container-title" font-style="italic"/>
+ <choose>
+ <if match="any" variable="URL">
+ <text term="online" form="long" plural="false" prefix="[" suffix="]"/>
+ </if>
+ </choose>
+ </group>
+ <group prefix=". ">
<text variable="volume" font-weight="bold"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
- <group prefix=", ">
- <label variable="page" form="short" suffix="." strip-periods="true"/>
+ <group prefix=",">
+ <label variable="page" form="short"/>
<text variable="page"/>
</group>
</group>

0 comments on commit cdc1b25

Please sign in to comment.