'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?
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.
<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=...'