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.
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.
<choose>
<if match="any" variable="volume">
<text variable="volume" form="long" suffix=", "/>
</if>
</choose>
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>