Permalink
Browse files

Making the style for 'Cancer Research' independent, still derived fro…

…m Vancouver, but with a few tweaks.
  • Loading branch information...
cparnot committed Sep 17, 2012
1 parent 1075a4d commit 4968e6cd39cee18f3cae9400f01aa6fafb07468f
Showing with 263 additions and 15 deletions.
  1. +263 −0 cancer-research.csl
  2. +0 −15 dependent/cancer-research.csl
View
@@ -0,0 +1,263 @@
+<?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" page-range-format="minimal" default-locale="en-US">
+ <info>
+ <title>Cancer Research</title>
+ <id>http://www.zotero.org/styles/cancer-research</id>
+ <link href="http://www.zotero.org/styles/cancer-research" rel="self"/>
+ <link href="http://www.zotero.org/styles/vancouver" rel="template"/>
+ <link href="http://cancerres.aacrjournals.org/site/misc/ifora.xhtml#references" rel="documentation"/>
+ <author>
+ <name>Charles Parnot</name>
+ <email>charles@mekentosj.com</email>
+ <uri>http://twitter.com/cparnot</uri>
+ </author>
+ <category citation-format="numeric"/>
+ <category field="medicine"/>
+ <summary>A style for AACR's journal "Cancer Research"</summary>
+ <issn>0008-5472</issn>
+ <eissn>1538-7445</eissn>
+ <updated>2012-09-17T12:00:00+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>
+ <locale xml:lang="en">
+ <date form="text" delimiter=" ">
+ <date-part name="year"/>
+ <date-part name="month" form="short" strip-periods="true"/>
+ <date-part name="day"/>
+ </date>
+ <terms>
+ <term name="retrieved">available</term>
+ <term name="section" form="short">sect.</term>
+ </terms>
+ </locale>
+ <locale xml:lang="fr">
+ <date form="text" delimiter=" ">
+ <date-part name="day"/>
+ <date-part name="month" form="short" strip-periods="true"/>
+ <date-part name="year"/>
+ </date>
+ <terms>
+ <term name="retrieved">disponible</term>
+ <term name="from">sur</term>
+ </terms>
+ </locale>
+ <locale xml:lang="de">
+ <terms>
+ <term name="retrieved">verfügbar</term>
+ <term name="from">unter</term>
+ </terms>
+ </locale>
+ <macro name="author">
+ <names variable="author">
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
+ <label form="long" prefix=", "/>
+ <substitute>
+ <names variable="editor"/>
+ </substitute>
+ </names>
+ </macro>
+ <macro name="editor">
+ <group delimiter=": ">
+ <choose>
+ <if type="chapter paper-conference">
+ <text term="in" text-case="capitalize-first"/>
+ </if>
+ </choose>
+ <names variable="editor" suffix=".">
+ <name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
+ <label form="long" prefix=", "/>
+ </names>
+ </group>
+ </macro>
+ <macro name="publisher">
+ <group delimiter=": " suffix=";">
+ <choose>
+ <if type="thesis">
+ <text variable="publisher-place" prefix="[" suffix="]"/>
+ </if>
+ <else>
+ <text variable="publisher-place"/>
+ </else>
+ </choose>
+ <text variable="publisher"/>
+ </group>
+ </macro>
+ <macro name="access">
+ <choose>
+ <if variable="URL">
+ <group delimiter=": ">
+ <group delimiter=" ">
+ <text term="retrieved" text-case="capitalize-first"/>
+ <text term="from"/>
+ </group>
+ <text variable="URL"/>
+ </group>
+ </if>
+ </choose>
+ </macro>
+ <macro name="accessed-date">
+ <choose>
+ <if variable="URL">
+ <group prefix="[" suffix="]" delimiter=" ">
+ <text term="cited" text-case="lowercase"/>
+ <date variable="accessed" form="text"/>
+ </group>
+ </if>
+ </choose>
+ </macro>
+ <macro name="container-title">
+ <choose>
+ <if type="article-journal article-magazine chapter paper-conference article-newspaper" match="any">
+ <group suffix="." delimiter=" ">
+ <text variable="container-title" form="short"/>
+ <choose>
+ <if variable="URL">
+ <text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/>
+ </if>
+ </choose>
+ </group>
+ <text macro="edition" prefix=" "/>
+ </if>
+ <!--add event-name and event-place once they become available-->
+ <else-if type="bill legislation">
+ <group delimiter=", ">
+ <group delimiter=". ">
+ <text variable="container-title" form="short"/>
+ <group delimiter=" ">
+ <text term="section" form="short" text-case="capitalize-first"/>
+ <text variable="section"/>
+ </group>
+ </group>
+ <text variable="number"/>
+ </group>
+ </else-if>
+ <else>
+ <text variable="container-title" suffix="." form="short"/>
+ </else>
+ </choose>
+ </macro>
+ <macro name="title">
+ <text variable="title"/>
+ <choose>
+ <if type="article-journal article-magazine chapter paper-conference article-newspaper" match="none">
+ <choose>
+ <if variable="URL">
+ <text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
+ </if>
+ </choose>
+ <text macro="edition" prefix=". "/>
+ </if>
+ </choose>
+ <choose>
+ <if type="thesis">
+ <text variable="genre" prefix=" [" suffix="]"/>
+ </if>
+ </choose>
+ </macro>
+ <macro name="edition">
+ <choose>
+ <if is-numeric="edition">
+ <group delimiter=" ">
+ <number variable="edition" form="ordinal"/>
+ <text term="edition" form="short"/>
+ </group>
+ </if>
+ <else>
+ <text variable="edition" suffix="."/>
+ </else>
+ </choose>
+ </macro>
+ <macro name="date">
+ <choose>
+ <if type="article-journal article-magazine article-newspaper" match="any">
+ <group suffix=";" delimiter=" ">
+ <date variable="issued">
+ <date-part name="year"/>
+ </date>
+ <text macro="accessed-date"/>
+ </group>
+ </if>
+ <else-if type="bill legislation">
+ <group delimiter=", ">
+ <date variable="issued" delimiter=" ">
+ <date-part name="month" form="short" strip-periods="true"/>
+ <date-part name="day"/>
+ </date>
+ <date variable="issued">
+ <date-part name="year"/>
+ </date>
+ </group>
+ </else-if>
+ <else-if type="report">
+ <date variable="issued" delimiter=" ">
+ <date-part name="year"/>
+ <date-part name="month" form="short" strip-periods="true"/>
+ </date>
+ </else-if>
+ <else>
+ <group suffix=".">
+ <date variable="issued">
+ <date-part name="year"/>
+ </date>
+ <text macro="accessed-date" prefix=" "/>
+ </group>
+ </else>
+ </choose>
+ </macro>
+ <macro name="pages">
+ <choose>
+ <if type="article-journal article-magazine article-newspaper" match="any">
+ <text variable="page" prefix=":"/>
+ </if>
+ <else>
+ <group prefix=" " delimiter=" ">
+ <label variable="page" plural="never"/>
+ <text variable="page"/>
+ </group>
+ </else>
+ </choose>
+ </macro>
+ <macro name="journal-location">
+ <choose>
+ <if type="article-journal article-magazine" match="any">
+ <text variable="volume"/>
+ </if>
+ </choose>
+ </macro>
+ <macro name="report-details">
+ <choose>
+ <if type="report">
+ <text variable="number" prefix="Report No.: "/>
+ </if>
+ </choose>
+ </macro>
+ <citation collapse="citation-number">
+ <sort>
+ <key variable="citation-number"/>
+ </sort>
+ <layout prefix="(" suffix=")" delimiter=",">
+ <text variable="citation-number"/>
+ </layout>
+ </citation>
+ <bibliography et-al-min="7" et-al-use-first="6" second-field-align="flush">
+ <layout>
+ <text variable="citation-number" suffix=". "/>
+ <group delimiter=". " suffix=". ">
+ <text macro="author"/>
+ <text macro="title"/>
+ </group>
+ <group delimiter=" " suffix=". ">
+ <text macro="editor"/>
+ <text macro="container-title"/>
+ <text macro="publisher"/>
+ <group>
+ <text macro="date"/>
+ <text macro="journal-location"/>
+ <text macro="pages"/>
+ </group>
+ </group>
+ <text macro="report-details" suffix=". "/>
+ <text macro="access"/>
+ </layout>
+ </bibliography>
+</style>
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
- <info>
- <title>Cancer Research</title>
- <id>http://www.zotero.org/styles/cancer-research</id>
- <link href="http://www.zotero.org/styles/vancouver" rel="independent-parent"/>
- <category field="medicine"/>
- <category citation-format="numeric"/>
- <updated>2008-10-09T00:00:00+00:00</updated>
- <summary>A style for AACR's journal "Cancer Research"</summary>
- <issn>0008-5472</issn>
- <link href="http://cancerres.aacrjournals.org/misc/ifora.shtml#f" 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>

0 comments on commit 4968e6c

Please sign in to comment.