Permalink
Browse files

fix water research

  • Loading branch information...
1 parent 8f97e20 commit 229d231d1e2b1aa57f84c74eb9dbb5b5c221ea0c @adam3smith adam3smith committed Jul 19, 2012
Showing with 155 additions and 86 deletions.
  1. +155 −86 water-research.csl
View
@@ -1,33 +1,56 @@
<?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-US">
+ <!-- This style was edited with the Visual CSL Editor (http://steveridout.com/csl/visualEditor/) -->
<info>
<title>Water Research</title>
<id>http://www.zotero.org/styles/water-research</id>
<link href="http://www.zotero.org/styles/water-research" rel="self"/>
+ <link href="http://www.elsevier.com/wps/find/journaldescription.cws_home/309/authorinstructions?navopenmenu=4" rel="documentation"/>
+ <link href="http://www.zotero.org/styles/elsevier-harvard" rel="template"/>
<author>
- <name>Julian Onions</name>
- <email>julian.onions@gmail.com</email>
+ <name>Sebastian Karcher</name>
</author>
- <updated>2012-01-01T00:00:00+00:00</updated>
- <summary>Style for Water Research.</summary>
- <link href="http://www.elsevier.com/wps/find/journaldescription.cws_home/309/authorinstructions?navopenmenu=4" rel="documentation"/>
+ <updated>2012-07-19T05:53:03+00:00</updated>
+ <summary>Style for Elsevier's Water Research. Close to Elsevier's Harvard, but usses issue nos., no journal abbreviations, no chapter page ranges, and ". In:" instead of ", in:" for chapters.</summary>
<category citation-format="author-date"/>
<category field="engineering"/>
<issn>0043-1354</issn>
<rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
</info>
- <macro name="editor">
- <names variable="editor" prefix="(" suffix=")" delimiter=", ">
- <name and="text" initialize-with=". " delimiter=", "/>
- <label form="short" prefix=", " text-case="lowercase" suffix="." strip-periods="true"/>
- </names>
+ <macro name="container">
+ <choose>
+ <if type="chapter paper-conference" match="any">
+ <text term="in" form="long" plural="false" text-case="capitalize-first" prefix=". " suffix=": "/>
+ <names variable="editor translator" delimiter=", " suffix=", ">
+ <name name-as-sort-order="all" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="always"/>
+ <label form="short" text-case="capitalize-first" prefix=" (" suffix=")"/>
+ </names>
+ <group delimiter=", ">
+ <text variable="container-title" text-case="title"/>
+ <text variable="collection-title" text-case="title"/>
+ </group>
+ </if>
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
+ <group prefix=", " delimiter=", ">
+ <text variable="container-title"/>
+ <text variable="collection-title"/>
+ </group>
+ </else-if>
+ <else>
+ <group prefix=". " delimiter=", ">
+ <text variable="container-title" form="long"/>
+ <text variable="collection-title"/>
+ </group>
+ </else>
+ </choose>
</macro>
<macro name="author">
<names variable="author">
- <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with=". " delimiter=", "/>
- <label form="short" prefix=" (" suffix=".)" text-case="lowercase" strip-periods="true"/>
+ <name name-as-sort-order="all" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="always"/>
+ <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
<substitute>
<names variable="editor"/>
+ <names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
@@ -43,112 +66,158 @@
<text variable="title" form="short" font-style="italic"/>
</if>
<else>
- <text variable="title" form="short"/>
+ <text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
- <if variable="URL">
- <text term="online" suffix="] " prefix="["/>
- <text variable="URL"/>
- <group prefix=" (" suffix=")">
- <text term="accessed" text-case="capitalize-first" suffix=" "/>
- <date variable="accessed">
- <date-part name="month" suffix=" "/>
- <date-part name="day" suffix=", "/>
- <date-part name="year"/>
- </date>
+ <if type="webpage">
+ <group>
+ <text value="URL" suffix=" "/>
+ <text variable="URL"/>
</group>
</if>
</choose>
</macro>
<macro name="title">
<choose>
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
- <text variable="title" font-style="italic"/>
+ <if type="report thesis" match="any">
+ <text variable="title"/>
+ <group prefix=" (" suffix=")">
+ <text variable="genre"/>
+ <text variable="number" prefix=" No. "/>
+ </group>
</if>
+ <else-if type="bill book graphic legal_case legislation motion_picture report song speech" match="any">
+ <text variable="title"/>
+ <text macro="edition" prefix=", "/>
+ </else-if>
+ <else-if type="webpage">
+ <text variable="title"/>
+ <text value="WWW Document" prefix=" [" suffix="]"/>
+ </else-if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
- <group delimiter=", ">
- <text variable="publisher-place"/>
- <text variable="publisher"/>
- </group>
+ <choose>
+ <if type="report thesis" match="any">
+ <group delimiter=", ">
+ <text variable="publisher"/>
+ <text variable="publisher-place"/>
+ </group>
+ </if>
+ <else>
+ <group delimiter=", ">
+ <text variable="publisher"/>
+ <text variable="publisher-place"/>
+ </group>
+ </else>
+ </choose>
</macro>
- <citation et-al-min="6" et-al-use-first="6" et-al-subsequent-min="6" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true">
- <layout prefix="(" suffix=")" delimiter="; ">
- <group delimiter=", ">
- <text macro="author-short"/>
+ <macro name="event">
+ <choose>
+ <if variable="event">
+ <text term="presented at" text-case="capitalize-first" suffix=" "/>
+ <text variable="event"/>
+ </if>
+ </choose>
+ </macro>
+ <macro name="issued">
+ <choose>
+ <if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
- <group>
- <label variable="locator" suffix="." form="short" strip-periods="true"/>
- <text variable="locator" prefix=" "/>
+ </if>
+ <else-if variable="accessed">
+ <choose>
+ <if type="webpage">
+ <date variable="accessed">
+ <date-part name="year"/>
+ </date>
+ </if>
+ <else>
+ <text term="no date" form="short"/>
+ </else>
+ </choose>
+ </else-if>
+ <else>
+ <text term="no date" form="short"/>
+ </else>
+ </choose>
+ </macro>
+ <macro name="edition">
+ <group delimiter=" ">
+ <choose>
+ <if is-numeric="edition">
+ <number variable="edition" form="ordinal"/>
+ </if>
+ <else>
+ <text variable="edition" suffix="."/>
+ </else>
+ </choose>
+ <text value="ed"/>
+ </group>
+ </macro>
+ <macro name="locators">
+ <choose>
+ <if type="article-journal article-magazine article-newspaper" match="any">
+ <group prefix=" " delimiter=", ">
+ <group delimiter=" ">
+ <text variable="volume"/>
+ <text variable="issue" form="long" prefix="(" suffix=")"/>
+ </group>
+ <text variable="page"/>
+ </group>
+ </if>
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
+ <group delimiter=", " prefix=". ">
+ <text macro="event"/>
+ <text macro="publisher"/>
</group>
+ </else-if>
+ <else-if type="chapter paper-conference" match="any">
+ <group delimiter=", " prefix=". ">
+ <text macro="event"/>
+ <text macro="publisher"/>
+ </group>
+ </else-if>
+ </choose>
+ </macro>
+ <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" collapse="year">
+ <sort>
+ <key macro="issued"/>
+ <key macro="author"/>
+ </sort>
+ <layout prefix="(" suffix=")" delimiter="; ">
+ <group delimiter=", ">
+ <text macro="author-short"/>
+ <text macro="issued"/>
</group>
</layout>
</citation>
- <bibliography hanging-indent="true" et-al-min="6" et-al-use-first="6">
+ <bibliography hanging-indent="true" entry-spacing="0" line-spacing="1">
<sort>
<key macro="author"/>
- <key variable="title"/>
+ <key macro="issued" sort="ascending"/>
</sort>
<layout>
- <text macro="author" suffix=" "/>
- <date variable="issued" prefix=" (" suffix=")">
- <date-part name="year"/>
- </date>
- <choose>
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
- <group suffix=",">
- <text macro="title" prefix=" "/>
- <text macro="editor" prefix=" "/>
- </group>
- <text prefix=" " suffix="." macro="publisher"/>
- </if>
- <else-if type="chapter paper-conference" match="any">
- <text macro="title" prefix=" " quotes="true"/>
- <group prefix=" ">
- <text term="in" text-case="lowercase"/>
- <names variable="editor" prefix=" " suffix="," delimiter=", ">
- <name and="text" sort-separator=", " initialize-with=". "/>
- <label form="short" prefix=" (" suffix=".)" text-case="lowercase" strip-periods="true"/>
- </names>
- <text variable="container-title" prefix=" " suffix="."/>
- <text variable="collection-title" prefix=" " suffix="."/>
- <group suffix=".">
- <text macro="publisher" prefix=" "/>
- <group prefix=", ">
- <text variable="page"/>
- </group>
- </group>
- </group>
- </else-if>
- <else>
- <group suffix=".">
- <text macro="title" prefix=" "/>
- <text macro="editor" prefix=" "/>
- </group>
- <group prefix=" " suffix=".">
- <text variable="container-title"/>
- <group prefix=", ">
- <text variable="volume"/>
- <text variable="issue" prefix="(" suffix=")"/>
- </group>
- <group prefix=", ">
- <text variable="page"/>
- </group>
- </group>
- </else>
- </choose>
- <text prefix=" " macro="access" suffix="."/>
+ <group suffix=".">
+ <text macro="author" suffix=","/>
+ <text macro="issued" prefix=" " suffix=". "/>
+ <group>
+ <text macro="title"/>
+ <text macro="container"/>
+ </group>
+ <text macro="locators"/>
+ </group>
+ <text macro="access" prefix=". "/>
</layout>
</bibliography>
</style>

0 comments on commit 229d231

Please sign in to comment.