Reports versus Serials CSL formatting

I am having a hard time coding to distinguish between published reports and published serials (also known as working papers, both of which can be considered published reports, just in a series).

This is what I am trying to get for Serials/Working Papers:

Crother, B.I., J. Boundy, F.T. Burbrink, J.A. Campbell, K. de Queiroz, D. Frost, R. Highton, J.B. Iverson, F. Kraus, R.W. McDiarmid, et al. 2008. Scientific and standard English names of amphibians and reptiles of North America north of Mexico, with comments regarding confidence in our understanding. 6th Edition. SSAR Herpetological Circular 37. 84 p.

Graves, B.M., and S.H. Anderson. 1987. Habitat suitability index models: Snapping Turtle. U.S. Fish and Wildlife Service Biological Report 82 (10.141). 18 p.

This is what I am trying to get for Published Reports:

Nicoll, M.E., and O. Langrand. 1989. Madagascar: revue de la conservation et des aires protégées. World Wildlife Fund, Gland, Switzerland.

The basic difference being that for serials, I need to provide Edition number (where relevant) before the series name, and I need to provide the number in the series after the series name, all followed by page numbers. None of these variables are required in published reports, which do require publisher data, which is not required for serials.

The problem I am having, which is preventing me from using conditional matching terms in the relevant macros for example, is that in Mendeley both "working papers" and "reports" are mapped as type "report." So I can't exclude publisher data from one without also excluding it from the other (http://support.mendeley.com/customer/portal/articles/364144-csl-type-mapping). And, Zotero apparently does not even recognize "working papers" or serials.

This is the last thing holding up my new style! Which can be found here:

https://gist.github.com/anonymous/4128451671229336d71f

Any advice?

Thanks!

Matt
  • Not much you can do. Good chance we'll be adding working papers as CSL typles in the future (they currently don't exist), but one thing you could use are tests for variable presence. So either check whether a publisher is present to distinguish between serial and report or test whether a series is present.
    (that's <if variable="publisher"> or <if variable="collection-title"> respectively).
  • Thanks Adam. I was able to use test variables as you recommended to conditionally render everything I wanted above except the Edition for the one serial example is now displaying twice as follows (I only want it displayed in the first position):

    Crother, B.I., J. Boundy, F.T. Burbrink, J.A. Campbell, K. de Queiroz, D. Frost, R. Highton, J.B. Iverson, F. Kraus, R.W. McDiarmid, et al. 2008. Scientific and standard English names of amphibians and reptiles of North America north of Mexico, with comments regarding confidence in our understanding. 6th Edition. SSAR Herpetological Circular 37. 6th Edition. 84 p.

    I can't quite tweak my Edition macro to exclude variable="container-title" references. Here is the latest version of the style:

    https://gist.github.com/anonymous/69cbd71c1e87f7596e3f

    Thoughts?
  • FYI - I chose to test whether a series is present as the primary means of distinguishing between serials and standard reports because often times citations are imported into the reference manager with all the publisher data regardless of whether it is a serial or a report. So, testing for publisher data would more often render both, while testing for collection-title will more often render only the one.
  • An updated (validated!!) version of the style:

    https://gist.github.com/tersiphone/444edc5a88d3297c606e
Sign In or Register to comment.