Permalink
Browse files

Adjustments to 'European Respiratory Journal', derived from Vancouver…

…, but no longer a dependent style.
  • Loading branch information...
cparnot committed Mar 19, 2012
1 parent d4ab091 commit c7b4b6431d70e1c50a37cc08a9e9cbc93d04509f
Showing with 250 additions and 12 deletions.
  1. +0 −12 dependent/european-respiratory-journal.csl
  2. +250 −0 european-respiratory-journal.csl
@@ -1,12 +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>European Respiratory Journal</title>
- <id>http://www.zotero.org/styles/european-respiratory-journal</id>
- <link href="http://www.zotero.org/styles/vancouver" rel="independent-parent"/>
- <category citation-format="numeric"/>
- <category field="medicine"/>
- <updated>2012-01-01T00:00:00+00:00</updated>
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
- </info>
-</style>
@@ -0,0 +1,250 @@
+<?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>European Respiratory Journal</title>
+ <id>http://www.zotero.org/styles/european-respiratory-journal</id>
+ <link href="http://www.zotero.org/styles/european-respiratory-journal" rel="self"/>
+ <link href="http://www.zotero.org/styles/vancouver" rel="template"/>
+ <link href="http://erj.ersjournals.com/site/misc/ifora.xhtml" rel="documentation"/>
+ <category citation-format="numeric"/>
+ <category field="medicine"/>
+ <author>
+ <name>Charles Parnot</name>
+ <email>charles@mekentosj.com</email>
+ </author>
+ <updated>2012-03-01T12:00:00+00:00</updated>
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
+ <issn>0903-1936</issn>
+ <issn>1399-3003</issn>
+ </info>
+ <locale xml:lang="en">
+ <terms>
+ <term name="retrieved">available</term>
+ <term name="section" form="short">sect.</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" suffix="">
+ <date-part name="year"/>
+ <date-part name="month" prefix=" " form="short" strip-periods="true"/>
+ <date-part name="day" prefix=" "/>
+ </date>
+ </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=" ">
+ <!-- Different from Vancouver: journal name in italics -->
+ <text variable="container-title" font-style="italic" 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">
+ <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" delimiter=" ">
+ <date-part name="year"/>
+ <!-- Instructions to authors are a bit contradictory as they say to use Vancouver but then only the year
+ <date-part name="month" form="short" strip-periods="true"/>
+ <date-part name="day"/>
+ -->
+ </date>
+ <text macro="accessed-date"/>
+ </group>
+ </if>
+ <else-if type="bill">
+ <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">
+ <!-- Different from Vancouver: space after the colon -->
+ <text variable="page" prefix=": "/>
+ </if>
+ <else>
+ <text variable="page" prefix=" p. "/>
+ </else>
+ </choose>
+ </macro>
+ <macro name="journal-location">
+ <choose>
+ <if type="article-journal article-magazine" match="any">
+ <text variable="volume"/>
+ <!-- Different from Vancouver: instructions to authors seem to only want the volume, not the issue
+ <text variable="issue" prefix="(" suffix=")"/>
+ -->
+ </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="31" et-al-use-first="30" second-field-align="flush">
+ <layout>
+ <text variable="citation-number" suffix=". "/>
+ <group delimiter=". " suffix=". ">
+ <text macro="author"/>
+ <text macro="title"/>
+ </group>
+ <!-- Different from Vancouver: no '.' suffix -->
+ <group delimiter=" ">
+ <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>

0 comments on commit c7b4b64

Please sign in to comment.