new style

sorry for the trivial question: I made a new style for the Journal of Experimental Biology (will fit two other journals of Company of biologists). It works well but I can't figure out how to upload it for others to enjoy.
The instructions at the bottom of the depository page are obscure and not helpful unless one does not need them.
How do I upload a new style?
  • Please don't double-post. You can change the category of an existing post by editing it.
  • uploading a new style is actually a bit of a hassle - you first need to get a SVN/Trac account, then you need to use an SVN client such as Tortoise:
    http://tortoisesvn.tigris.org/
    to check out the style repository add your new style and the commit it.

    Alternatively, you can just upload the style anywhere (I always suggest gist.github.com - things stay online forever, it's free, convenient and doesn't require any registration) and someone here with SVN all set up will do the uploading for you.
  • edited June 10, 2010
    I already requested an SVN account.
    I didn't see a CSL option in gist. uploaded as text but it's not where users will commonly look for it ( git://gist.github.com/433612.git)

    either way, here's the code (maybe someone can upload it. Thanks!):

    <?xml version="1.0" encoding="UTF-8"?>
    <style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >
    <info>
    <title>Journal of Experimental Biology (dev)</title>
    <id>http://www.zotero.org/styles/JExpBiol</id>;
    <link href="http://www.zotero.org/styles/JExpBiol"/>
    <author>
    <name>Gal Haspel</name>
    <email>gal.haspel@gmail.com</email>
    </author>
    <category term="author-date"/>
    <category term="biology"/>
    <updated>2010-06-08</updated>
    <summary>Journal of Experimental Biology style.</summary>
    <link href="http://www.biologists.com/web/submissions/jcs_information.html" />
    </info>
    <macro name="editor">
    <names variable="editor" delimiter=",">
    <name name-as-sort-order="all" sort-separator=", " and="text" initialize-with=". " delimiter=", "/>
    <label form="short" prefix=" (" text-case="lowercase" suffix=")"/>
    </names>
    </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"/>
    <substitute>
    <names variable="editor"/>
    <text variable="title"/>
    </substitute>
    </names>
    </macro>
    <macro name="author-short">
    <names variable="author">
    <name form="short" and="text" delimiter=", " initialize-with=". "/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <text variable="title"/>
    </substitute>
    </names>
    </macro>
    <macro name="access">
    <group>
    <text value="Available at:" suffix=" "/>
    <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>
    </group>
    </group>
    </macro>
    <macro name="title">
    <text variable="title"/>
    </macro>
    <macro name="publisher">
    <group delimiter=", ">
    <text variable="publisher"/>
    <text variable="publisher-place"/>
    </group>
    </macro>
    <macro name="year-date">
    <date variable="issued">
    <date-part name="year"/>
    </date>
    </macro>
    <macro name="edition">
    <choose>
    <if is-numeric="edition">
    <group delimiter=" ">
    <number variable="edition" form="ordinal"/>
    <text term="edition" form="short" suffix="."/>
    </group>
    </if>
    <else>
    <text variable="edition" suffix="."/>
    </else>
    </choose>
    </macro>
    <citation>
    <option name="et-al-min" value="3"/>
    <option name="et-al-use-first" value="1"/>
    <option name="disambiguate-add-year-suffix" value="true"/>
    <option name="disambiguate-add-names" value="true"/>
    <option name="disambiguate-add-givenname" value="true"/>
    <option name="collapse" value="year"/>
    <layout prefix="(" suffix=")" delimiter="; ">
    <group delimiter=", ">
    <text macro="author-short"/>
    <text macro="year-date"/>
    <text variable="locator"/>
    </group>
    </layout>
    </citation>
    <bibliography>
    <option name="hanging-indent" value="true"/>
    <option name="et-al-min" value="3"/>
    <option name="et-al-use-first" value="1"/>
    <sort>
    <key macro="author"/>
    <key variable="title"/>
    </sort>
    <layout suffix=".">
    <text macro="author" font-weight="bold" />
    <date variable="issued" prefix=" (" suffix=").">
    <date-part name="year"/>
    </date>
    <choose>
    <if type="book">
    <group delimiter=" " prefix=" ">
    <text macro="title"/>
    <text macro="edition"/>
    <text macro="editor" />
    <text macro="publisher" />
    </group>
    </if>
    <else-if type="chapter">
    <text macro="title" prefix=" " suffix="."/>
    <group class="container" prefix=" " delimiter=", " suffix=".">
    <text term="in" text-case="capitalize-first"/>
    <text macro="editor"/>
    <text variable="container-title" font-style="italic"/>
    <text variable="collection-title" prefix=" " suffix="."/>
    </group>
    <group suffix=".">
    <text macro="publisher" prefix=" "/>
    <group prefix=", ">
    <label variable="page" suffix=". " form="short"/>
    <text variable="page"/>
    </group>
    </group>
    </else-if>
    <else>
    <text macro="title" prefix=" " suffix="."/>
    <group class="container" delimiter=", " prefix=" " suffix=".">
    <text variable="container-title" form="short" font-style="italic"/>
    <text variable="volume" font-weight="bold" />
    <text variable="page"/>
    </group>
    </else>
    </choose>
    </layout>
    </bibliography>
    </style>
  • commited - thanks for contributing -
    the upload at github is not for other users, but because I can get the style more quickly and cleanly from over there.

    Style looks great! two quick notes if you decide to contribute more styles in the future:
    naming conventions on the repository are to never use capital letters in the ID/Link field - if I remember correctly those can cause problems with paths unders some circumstances.

    Also, delete the (dev) after the title - the repository adds it by itself, so if you don't delete it you have two of them.
  • Thanks a lot for committing and comments.

    To complete this contribution there are three other journals share the same style with The Journal of Experimental Biology:
    Development
    Journal of Cell Science
    Disease Models & Mechanisms
    (all from the same publisher http://www.biologists.com/index.html)

    I am not sure whether users will know to look for the other names. I can change the title, id and link and upload the other three here or to gist if you could commit them. Never mind if it's too much trouble. I can wait for my SVN account.
  • Someone will likely make dependent styles for the other journals. IMHO, the canonical style should be named after the publisher if that publisher always uses the same style.
  • edited June 10, 2010
    those should be uploaded as dependent styles -
    have a look, e.g. at Acta Haematomica, which just follows Vancouver style:
    http://www.zotero.org/styles/acta-haematologica/dev
    you get the idea - change the "link" and put rel="source" in there, leave everything after </info> empty
    the point is that in case the style changes (or someone spots an error) it only needs to get changed once.
    If you want to make the three dependent styles, committing them takes me about 1min, so I don't mind at all.

    Edit: and what noksagt says - probably a good idea to name this after the publisher, unless one of the journals is clearly the "flagship"
  • Thanks again (for both of you). I regard JEB as a flagship (although some developmental biologists would argue otherwise) so we will leave it at this.
    Making the dependent styles....
  • here goes (all three). Please let me know if there are more comments:

    <style class="in-text" xml:lang="en">

    <info>
    <title>Development</title>
    <id>http://www.zotero.org/styles/development</id>;
    <link rel="source" href="http://www.zotero.org/styles/journal-of-experimental-biology"/>
    <category term="author-date"/>
    <category term="biology"/>
    <updated>2008-09-20T09:22:05+00:00</updated></info>
    </style>



    <style class="in-text" xml:lang="en">

    <info>
    <title>Journal of Cell Science</title>
    <id>http://www.zotero.org/styles/journal-of-cell-science</id>;
    <link rel="source" href="http://www.zotero.org/styles/journal-of-experimental-biology"/>
    <category term="author-date"/>
    <category term="biology"/>
    <updated>2008-09-20T09:22:05+00:00</updated>
    </info>
    </style>



    <style class="in-text" xml:lang="en">

    <info>
    <title>Disease Models and Mechanisms</title>
    <id>http://www.zotero.org/styles/disease-models-mechanisms</id>;
    <link rel="source" href="http://www.zotero.org/styles/journal-of-experimental-biology"/>
    <category term="author-date"/>
    <category term="biology"/>
    <updated>2008-09-20T09:22:05+00:00</updated>
    </info>
    </style>
  • can anyone commit these please?
  • done - thanks again for contributing
  • Thanks for your help!
    Another ignorant question: why are they marked "invalid"?
    (I can see: invalid: schema failed to validate. But have no idea how is this process done. More importantly, do I need to do anything to validate them)
  • it's automatic validation - I'll have a look - not sure what's wrong
  • OK, should be fixed. The first two lines of the style should be:
    <?xml version="1.0" encoding="UTF-8"?>
    <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">

    I don't think it actually makes a differences, but the validator is unhappy otherwise - I think the first line defining the style as xml is crucial.
  • edited October 6, 2010
    I have a style I think will be very useful to many users. Several posts cite the need to call numbers to be included. The Chicago Library List, however, lists call numbers last and does not sort by call numbers, making it nearly useless. My style, Call Number List, puts call numbers first in the bibliography and sorts by them.

    I have tried the instructions for mounting it, but they are very difficult, as I'm sure you've heard from other users. So perhaps I could follow the lead of the person who simply pasted the text in a message.
  • The text of the CSL file is too large to post. How can I get this out to Zotero users?
  • gist.github.com
    paste into window
    create public gist.
Sign In or Register to comment.