Society for Endocrinology styles

I created a style for 3 of the Society of Endocrinology journals (http://www.endocrinology-journals.org):

Journal of Molecular Endocrinology https://gist.github.com/1638936
Endocrine-Related Cancer https://gist.github.com/1632114
Journal of Endocrinology https://gist.github.com/1632124

While they don't explicitly state this, the styles among these journals looks to be the same, so I have simply linked the latter two styles to the first.

This is my first attempt at creating CSL styles, so I would appreciate any tips/guidance if I did something wrong or unconventional.

While the styles appear to work fine in my hands, I did have a couple questions.

I could not figure out how to avoid a period from being placed after page/pages abbreviations (and other similar items).

Also, I did not see a way to prevent a section in the bibliography from displaying if another section is not available. For instance, I would like to avoid displaying pages if the book title is not available (for whatever odd reason). I realize that CSL is not meant to be fool-proof, but if this is possible, I'd like to figure out how.

EDIT: changed the link to a newer version of the style.
  • First glance styles look great. I'll take another look before uploading them, but all the requirements are in place and the coding looks very clean - you're mostly relying on macros and you're using groups and delimiters rather than affixes as much as possible --> best way to code a reliable and easily modifiable style. Thanks.
    could not figure out how to avoid a period from being placed after page/pages abbreviations (and other similar items).
    Use strip-periods="true" as in:
    <label variable="page" form="short" suffix=" " strip-periods="true"/>
    For instance, I would like to avoid displaying pages if the book title is not available (for whatever odd reason).
    Use "if" loops. In your example, test for the presence of the variable title before printing pages as in
    <choose>
    <if variable="title">
    <text variable="page"/>
    </if>
    </choose>
  • Thanks for the prompt response.

    I ended up figuring out the strip-periods attribute the following morning. Turns out I had used it in some other place in the style as well.

    As far as if statements go, it seems like there is no way to create an if statement that checks the value of a macro, which may be a useful addition.

    In case you still haven't had a chance to upload the styles, I restructured it a little bit and fixed a tiny bug. The link was updated in the original post, but here it is anyway.

    https://gist.github.com/1638936
  • it's up - will show up momentarily, preview takes a bit longer until it works.
  • dependent styles are up, too.
Sign In or Register to comment.