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

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.