Problem with conditionals in style files

I have conditionals in my style files that don't work properly.

For instance, in the file tah-gkw.csl ( I use the following construct to determine wether an article has a variable "issue" (in which case the variable "volume" is separated from "issue" by a slash) or not.

<if variable="issue" match="none">
<number variable="volume"/>
<number variable="volume" prefix="/"/>

When an article with both "issue" and "volume" is processed with Zotero the slash does not show in the document.

You can also see this in the hovering preview pane for the style "tah Geistes- u. Kulturwissenschaften" ( in the third item: The journal should read "... Applied Microbiology and Biotechnology 6/38 ...", not "... Applied Microbiology and Biotechnology 638 ...".

The funny thing is: When I change the value of an the existing variable "issue" in Zotero and refresh the document, the slash appears ... until I restart Firefox and it disappears again!

Is something wrong with my style or is it a bug in Zotero?
  • I can't answer the question of conditionals immediately, but maybe I can address what you are trying to do:

    <group delimiter="/">
    <number variable="volume"/>
    <number variable="issue"/>

    That is: use a "delimiter," which accurately describes the slash's function more than than a prefix or a suffix does.
  • That, of course, is a much better way of doing it. Thanks for the hint!
Sign In or Register to comment.