Skip to content

Commit

Permalink
Fix Harvard Imperial access. Add diversity and distributions dependen…
Browse files Browse the repository at this point in the history
…t style
  • Loading branch information
adam3smith committed Sep 15, 2012
1 parent 75db5f9 commit c691fac
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 30 deletions.
16 changes: 16 additions & 0 deletions dependent/diversity-and-distributions.csl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
<info>
<title>Diversity and Distributions</title>
<id>http://www.zotero.org/styles/diversity-and-distributions</id>
<link href="http://www.zotero.org/styles/journal-of-biogeography" rel="independent-parent"/>
<category field="biology"/>
<category field="geography"/>
<category citation-format="author-date"/>
<updated>2012-01-01T00:00:00+00:00</updated>
<summary>A style for the Wiley journal "Diversity and Distributions"</summary>
<issn>1472-4642</issn>
<link href="http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291472-4642/homepage/ForAuthors.html" rel="documentation"/>
<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>
</style>
71 changes: 41 additions & 30 deletions harvard-imperial-college-london.csl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<macro name="editor">
<names variable="editor" delimiter=", ">
<name and="symbol" delimiter=", "/>
<label form="short" prefix=" (" text-case="lowercase" suffix=".)" strip-periods="true"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</macro>
<macro name="anon">
Expand All @@ -26,7 +26,7 @@
<macro name="author">
<names variable="author">
<name and="symbol" name-as-sort-order="all" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
<label form="short" prefix=" " suffix="." text-case="lowercase" strip-periods="true"/>
<label form="short" prefix=" "/>
<substitute>
<text macro="editor"/>
<text macro="anon"/>
Expand All @@ -44,18 +44,29 @@
</names>
</macro>
<macro name="access">
<group>
<text value="Available from: "/>
<text variable="DOI" prefix="doi:" suffix=""/>
<group prefix=" [" suffix="]">
<text term="accessed" text-case="capitalize-first" suffix=": "/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
<choose>
<if variable="URL DOI" match="any">
<group>
<text value="Available from: "/>
<choose>
<if variable="DOI">
<text variable="DOI" prefix="doi:"/>
</if>
<else>
<text variable="URL"/>
</else>
</choose>
<group prefix=" [" suffix="]">
<text term="accessed" text-case="capitalize-first" suffix=": "/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
</if>
</choose>
</macro>
<macro name="title">
<choose>
Expand All @@ -71,8 +82,10 @@
</choose>
</macro>
<macro name="publisher">
<text variable="publisher-place" suffix=", "/>
<text variable="publisher" suffix="."/>
<group delimiter=", " suffix=".">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<macro name="year-date">
<choose>
Expand All @@ -91,7 +104,7 @@
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="long" suffix="" text-case="lowercase" strip-periods="true"/>
<text term="edition" form="long" strip-periods="true"/>
</group>
</if>
<else>
Expand All @@ -106,7 +119,7 @@
</macro>
<macro name="online">
<choose>
<if variable="DOI">
<if variable="DOI URL" match="any">
<text value="[Online]"/>
</if>
</choose>
Expand Down Expand Up @@ -134,7 +147,7 @@
<text macro="author-short"/>
<text macro="year-date"/>
<group>
<label variable="locator" suffix="." form="short" strip-periods="true"/>
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
Expand Down Expand Up @@ -185,14 +198,12 @@
</choose>
<text macro="online" prefix=" " suffix=""/>
<group prefix=" " suffix="." delimiter="">
<group prefix="">
<text variable="volume"/>
<text variable="issue" prefix=" (" suffix="), "/>
<text variable="volume"/>
<group delimiter=", ">
<text variable="issue" prefix=" (" suffix=")"/>
<text macro="issued"/>
</group>
<group prefix="">
<text macro="pages"/>
</group>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="book graphic" match="any">
Expand All @@ -217,10 +228,10 @@
<text variable="container-title" font-style="italic" suffix="."/>
<text variable="collection-title" suffix="."/>
<text macro="edition" prefix=" " suffix="."/>
<text macro="online" suffix="." prefix=""/>
<text macro="online" suffix="."/>
<text macro="issued"/>
<text macro="publisher" prefix="" suffix="."/>
<label variable="page" form="short" suffix=""/>
<text macro="publisher" suffix="."/>
<label variable="page" form="short"/>
<text macro="pages" suffix="."/>
</group>
</else-if>
Expand All @@ -238,7 +249,7 @@
<text macro="issued"/>
</group>
<group prefix=" ">
<label variable="locator" suffix="." form="short" strip-periods="true"/>
<label variable="page" form="short"/>
<text macro="pages"/>
</group>
</group>
Expand Down

0 comments on commit c691fac

Please sign in to comment.