Nesting non-shorthand version of names inside substitute

The following code causes author to appear with full given name even though initialize-with should have made it initials only:
<macro name="noauthor_title">
<names variable="editor">
<name/>
<substitute>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=")" strip-periods="true"/>
<substitute>
<text macro="noauthor_title"/>
</substitute>
</names>
</macro>

This may be a problem of disambiguation only, since the actual substition logic works OK.

Although the code above contains a nested macro, the same issue happens if you simply use any non-shorthand version of the names element inside the substitute element.
  • you should really test this on the branch xpi which contains numerous processor fixes including some affecting initialization - if you don't want to install the xpi wait for Zotero 2.1.7, due out soon.
  • Just tested with the dev xpi 2.1.6 r9406 (is that the right one?) and this looks fixed.
Sign In or Register to comment.