'edition' field: Superscript if number, in-line if text?
I'm trying to modify a bibliography style which renders the field 'edition' as a superscript to the year.
However, this field is often populated by values such as "3., vollständig überarb. und erw. Neuausg." which leads to messy bibliography entries. In these cases I'd rather print its content in-line, delimited by commas.
Is there a way to condition the rendering of said field on the type (number or string) and/or length of its respective values?
However, this field is often populated by values such as "3., vollständig überarb. und erw. Neuausg." which leads to messy bibliography entries. In these cases I'd rather print its content in-line, delimited by commas.
Is there a way to condition the rendering of said field on the type (number or string) and/or length of its respective values?
<choose>
and<if is-numeric="edition" match="none">
[print the value inline]
</if>
</choose>
<choose>
<if is-numeric="edition">
[print the value as superscript]
</if>
</choose>
I think. Check the CSL specification to be sure.
For future readers, one minor difference in the code above: '<if is-numeric=...'