half-baked attempt at csl for Frontiers in Ecology and the Environment

Okay, so I have tried to set up a style for Frontiers in Ecology and the Environment. I quickly got out of my depth.

- I can't get it to italicise journal titles but not other titles
- no idea where to put or what to do with name prefixes like "van", "de", etc. (the journal's style guide offers no pointers, either)
- as seems to be noted elsewhere here, journal abbreviations are problematic.

Please, feel free to improve it. The code is below.

B

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US" page-range-format="expanded">
<info>
<title>Frontiers in Ecology and the Environment</title>
<id>http://www.zotero.org/styles/frontiers-in-ecol</id>;
<link href="http://www.zotero.org/styles/fungal-ecology" rel="self"/>
<author>
<name>Ben Gilna</name>
<email>WITHELD FOR ZOTERO FORUM POST</email>
</author>
<category field="ecology"/>
<category citation-format="author-date"/>
<issn>1754-5048</issn>
<updated>2012-04-10T13:46:03+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>
<macro name="editor-translator">
<names variable="editor translator" prefix="(" suffix=")" delimiter=", ">
<name and="text" initialize-with="" delimiter=", "/>
<et-al font-style="italic"/>
<label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " and="text" delimiter-precedes-last="never"/>
<et-al font-style="italic"/>
<label form="short" prefix=" (" suffix=".)" text-case="capitalize-first" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " initialize-with=". "/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" form="short"/>
</if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song article-magazine article-newspaper article-journal" match="any">
<text variable="title" text-case="sentence"/>
</if>
<else-if type="article-magazine article-newspaper article-journal" match="any">
<text variable="container-title" font-style="italic"/>
</else-if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher-place" suffix=": "/>
<text variable="publisher"/>
</group>
</macro>
<citation collapse="year-suffix" et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" year-suffix-delimiter=", ">
<sort>
<key variable="issued"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<date variable="issued">
<date-part name="year"/>
</date>
<group>
<label variable="locator" suffix="." form="short" strip-periods="true"/>
<text variable="locator" prefix=" "/>
</group>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" line-spacing="2">
<sort>
<key macro="author-short"/>
<key variable="issued"/>
</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-translator" prefix=" "/>
</group>
<text prefix=" " suffix="." macro="publisher"/>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" "/>
<group prefix=".">
<group prefix=" In:" suffix="">
<names variable="editor translator">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always" prefix=" "/>
<et-al font-style="italic"/>
<label form="short" prefix=" (" suffix=".), " text-case="capitalize-first" strip-periods="true"/>
</names>
<text variable="container-title" prefix=" " suffix=","/>
<text variable="collection-title" prefix=" " suffix="."/>
<group suffix=".">
<text macro="publisher" prefix=" "/>
<label variable="page" form="short" prefix=", " suffix=". " strip-periods="true"/>
<text variable="page" suffix="."/>
</group>
</group>
</group>
</else-if>
<else-if type="webpage">
<text macro="title" prefix=" "/>
<text variable="URL" suffix="."/>
<text value="Viewed" prefix=" "/>
<text variable="accessed" prefix=" " suffix="."/>
</else-if>
<else>
<group suffix=".">
<text macro="title" prefix=" "/>
<text text-case="sentence"/>
<text macro="editor-translator" prefix=" "/>
</group>
<group prefix=" " suffix=".">
<text variable="container-title"/>
<group prefix=" ">
<text variable="volume" font-weight="bold"/>
</group>
<text variable="page" prefix=": "/>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
  • but journal titles should be abbreviated?
    For the last instance of <text variable="container-title"/>
    instead use
    <text variable="container-title" form="short" font-style="italic"/>
  • Wonderful!

    Now, I don't suppose you can tell me how to limit author lists of more than 3 names to use et al in the bibliography, can you?
  • <bibliography hanging-indent="true" line-spacing="2" et-al-min="4" et-al-use-first="1">
    This will print only the first name and et-al when you have more than 3 authors. If you want more names printed adjust et-al-use-first
  • edited May 14, 2012
    Thanks to Adam for the help. Below (next post) is a copy of the code for this style - there are formatting errors still, but I just don't have the time and skills to correct them.

    Specifically regarding the last post: Front Ecol Env doesn't specify in its instructions to authors, but a quick scan of articles suggests that any more than 4 authors and they want 3 authors et al in the bibliography. I have modified Adam's suggestion to reflect this, but confess I haven't tried it.

    If I get the time, I'd like to come back and fix this and upload it into the repository, but that's waaay down the priority list right now, sorry. If someone can take this and improve it, please do so.

    Regards

    B
  • <?xml version="1.0" encoding="utf-8"?>
    <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US" page-range-format="expanded">
    <info>
    <title>Frontiers in Ecology and the Environment</title>
    <id>http://www.zotero.org/styles/frontiers-in-ecol</id>;
    <link href="http://www.zotero.org/styles/fungal-ecology" rel="self"/>
    <author>
    <name>Ben Gilna</name>
    <email>bengilna@gmail.com</email>
    </author>
    <category field="ecology"/>
    <category citation-format="author-date"/>
    <issn>1754-5048</issn>
    <updated>2012-04-10T13:46:03+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>
    <macro name="editor-translator">
    <names variable="editor translator" prefix="(" suffix=")" delimiter=", ">
    <name and="text" initialize-with="" delimiter=", "/>
    <et-al font-style="italic"/>
    <label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
    </names>
    </macro>
    <macro name="author">
    <names variable="author">
    <name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " and="text" delimiter-precedes-last="never"/>
    <et-al font-style="italic"/>
    <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first" strip-periods="true"/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <text macro="title"/>
    </substitute>
    </names>
    </macro>
    <macro name="author-short">
    <names variable="author">
    <name form="short" and="text" delimiter=", " initialize-with=". "/>
    <et-al font-style="italic"/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <choose>
    <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
    <text variable="title" form="short"/>
    </if>
    <else>
    <text variable="title" form="short" quotes="true"/>
    </else>
    </choose>
    </substitute>
    </names>
    </macro>
    <macro name="title">
    <choose>
    <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
    <text variable="title" text-case="sentence"/>
    </if>
    <else-if type="journal" match="any">
    <text variable='title' font-style="italic"/>
    </else-if>
    <else>
    <text variable="title"/>
    </else>
    </choose>
    </macro>
    <macro name="publisher">
    <group delimiter=", ">
    <text variable="publisher-place" suffix=": "/>
    <text variable="publisher"/>
    </group>
    </macro>
    <citation collapse="year-suffix" et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" year-suffix-delimiter=", ">
    <sort>
    <key variable="issued"/>
    </sort>
    <layout prefix="(" suffix=")" delimiter="; ">
    <group delimiter=" ">
    <text macro="author-short"/>
    <date variable="issued">
    <date-part name="year"/>
    </date>
    <group>
    <label variable="locator" suffix="." form="short" strip-periods="true"/>
    <text variable="locator" prefix=" "/>
    </group>
    </group>
    </layout>
    </citation>
    <bibliography hanging-indent="true" line-spacing="2" et-al-min="5" et-al-use-first="4">
    <sort>
    <key macro="author-short"/>
    <key variable="issued"/>
    </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-translator" prefix=" "/>
    </group>
    <text prefix=" " suffix="." macro="publisher"/>
    </if>
    <else-if type="chapter paper-conference" match="any">
    <text macro="title" prefix=" "/>
    <group prefix=".">
    <group prefix=" In:" suffix="">
    <names variable="editor translator">
    <name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always" prefix=" "/>
    <et-al font-style="italic"/>
    <label form="short" prefix=" (" suffix=".), " text-case="capitalize-first" strip-periods="true"/>
    </names>
    <text variable="container-title" prefix=" " suffix=","/>
    <text variable="collection-title" prefix=" " suffix="."/>
    <group suffix=".">
    <text macro="publisher" prefix=" "/>
    <label variable="page" form="short" prefix=", " suffix=". " strip-periods="true"/>
    <text variable="page" suffix="."/>
    </group>
    </group>
    </group>
    </else-if>
    <else-if type="webpage">
    <text macro="title" prefix=" "/>
    <text variable="URL" suffix="."/>
    <text value="Viewed" prefix=" "/>
    <text variable="accessed" prefix=" " suffix="."/>
    </else-if>
    <else>
    <group suffix=".">
    <text macro="title" prefix=" "/>
    <text text-case="sentence"/>
    <text macro="editor-translator" prefix=" "/>
    </group>
    <group prefix=" " suffix=".">
    <text variable="container-title" form="short" font-style="italic"/>
    <group prefix=" ">
    <text variable="volume" font-weight="bold"/>
    </group>
    <text variable="page" prefix=": "/>
    </group>
    </else>
    </choose>
    </layout>
    </bibliography>
    </style>
  • There is a generic "Frontiers Journals" style in the repository that should be correct, so I won't upload this - any problems with that let us know.
  • I have been trying to use the generic "Frontiers journals" style to write a paper for Frontiers in Ecology and the Environment, and I believe that the latter is not actually part of the "Frontiers journals" group. There are a number of differences betweens the "Frontiers journals" style and what is required for Front Ecol Environ
    Specifically:
    -there should not be a comma between authors' last name and year in inline citation.
    -when "et al." is applied (more than two authors in inline citation), it should be italicized.
    Examples for inline citation:
    (Huston and Marland 2003)
    (Tilman et al. 2009)

    - in bibliography, any authors after the first three are replaced by "et al.", again, in italics.
    - Journal name abbreviations should be used in the bibliography.
    - Journal volume should be in bold, followed by colon, space, and page numbers.
    Example of bibliography entry:
    King AW, Hayes DJ, Huntzinger DN, et al. 2012. Title of article. Front Ecol Environ 10: 512-19.

    Because this style is different from the "Frontiers journals" one that is currently available, it would be great if a separate file could be made for Frontiers in Ecology and the Environment.

    Thanks!
  • The style is now up. It will appear on the style repository within 30mins.. (See here if you need instructions for installing styles in standalone.)

    Any problems please let us know.

    Thanks to Ben whose style above I mainly relied on.
Sign In or Register to comment.