Zotero suppressing "vol." in bibliography

Dear Zotero community,

I have encountered the following issue: I am using this code to output the volume of books in my bibliography:



Generally, it works just fine, outputting anything I type into the "volume" field. However, if my volume entry starts with "vol.", it is always omitted in the output. So if I enter "vol. IV" in the volume field, it will just print "IV" in my bibliography. Other abbreviations are not omitted. What am I missing?

Thanks for any help!

PS: I realise I could just print the "vol." as a prefix, but I am using literature in various languages and would like to retain the flexibility to provide the appropriate abbreviation myself.
  • which style are you using and do you mean the volume field of an item or the volume dropdown in the add citation dialog?
  • I am talking about the volume field of an item. And I just realised my code snippet wasn't displaying before. I am using a custom style. The code I am using to display the volume is:

    <choose>
    <if match="any" variable="volume">
    <text variable="volume" form="long" suffix=", "/>
    </if>
    </choose>
  • Yeah, that's weird it shouldn't do that.
    You can workaround that by testing for is-numeric along these lines:


    <choose>
    <if is-numeric="volume">
    <group delimiter=" ">
    <label variable="volume" form="short"/>
    <number variable="volume"/>
    </group>
    </if>
    <else>
    <text variable="volume"/>
    </else>
    </choose>
Sign In or Register to comment.