Problems with "volume" and "issue"

edited April 2, 2017
I'm editing a style in CSL Visual Editor and I'm pretty happy except for one thing: when a Journal Article Style has NO "issue" number (that is, when the "issue" in Zotero is empty) there is a blank space between 2 commas in the footnote. When I try with the number 1 it works fine and "no. 1" appears in the footnote, but the problem is that a lot of articles don't have an issue number and I don't want to have "no. 1" everywhere, but I want to keep the issue number for those who have one. Is there a way to do this? What I want is for the value to be displayed whenever there is an issue number, and when there's no issue number, there is no blank space between 2 commas. If this could help... I just realized that when there's a "volume" number, there's an "issue" number, and if there's no "volume" number, there's no "issue" number, even if there's one in the Zotero panel... so the "issue" is there if the "volume"... seems like they're on the same "sort" maybe...

Thanks!
  • Absolutely possible, but hard to say more without seeing the style. Essentially, what you want in terms of CSL code is along the lines of

    <group delimiter=", ">
    <text variable="volume"/>
    <text variable="issue" prefix="no. "/>
    </group>
  • Can you post the code to the CSL in a secret GIST on github? Those kind of errors are quite common.
  • Thank you guys very much... I found it! The "issue" was "conditional" below the "volume" level, so I deleted it and put it on the same level as "volume".

    Thanks again...
Sign In or Register to comment.