Expected behaviour for is-numeric?

Hi

I have the following code in my style

<macro name="edition-note">
<choose>
<if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" prefix="$$"/>
</group>
</if>
<else>
<text variable="edition" text-case="capitalize-first" suffix="££"/>
</else>
</choose>
</if>
</choose>
</macro>

The $ and £ symbols were to help me localize the problem. If the Zotero edition field is 'annotated' (no quotes in Zotero) the output is:

Robert Oresko, G.C. Gibbs, and H.M. Scott (eds), Royal and Republican Sovereignty in Early Modern Europe: Essays in Memory of Ragnhild Hatton (Annotated££, Cambridge, 1997) p. 97.

If the Zotero edition field is 'annotated edition' (no quotes in Zotero) the output is:

Robert Oresko, G.C. Gibbs, and H.M. Scott (eds), Royal and Republican Sovereignty in Early Modern Europe: Essays in Memory of Ragnhild Hatton (annotated $$ed., Cambridge, 1997) p. 97.

The are no numbers in the edition field but the is-numeric test resolves to true. Is this expected. Any way round it to get the result 'Annotated edition'

Thanks
Ken
Sign In or Register to comment.