'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?
Sign In or Register to comment.