not working in recent versions

In the styles for Pontifical Regina Apostolorum and Pontifical Biblical Institute, this code previously worked correctly:

<choose>
<if is-numeric="edition">
<number variable="edition"/>
</if>
<else>
<text variable="edition"/>
</else>
</choose>

Currently, however, the line <number variable="edition"/> is not working, and is rendering as [object Object].

Very similar code is running on the "volume" variable and works properly, allowing me to convert the "volume" variable to roman numerals.

Is "number" no longer supported on the "edition" variable?
  • I can confirm this, but the problem isn't
    number variable="edition"
    but
    <text macro="edition-note" vertical-align="sup"/>
    the processor appears to choke on applying the vertical align to a macro.

    fbennett will have to take a look.
  • Note, however, that it works just fine if you change

    number variable="edition"

    to

    text variable="edition"

    So, at least for text variables it doesn't have any problems using superscript. It only has problems with number variables.
  • Sorry about this one. The bug was probably exposed by a small change introduced about a month ago, that slightly simplified the internal structures used to produce the finished citation output.

    For an immediate fix, you can install the processor patch plugin. Its only effect is to swap in the latest processor version. It can and should be removed at the next Zotero release.

    (The plugin works only with Zotero for Firefox, not with Standalone.)
  • yep, fixed, thanks!
  • Thanks fbennett for the quick fix!
Sign In or Register to comment.