How to test suffix field with the IF informed when inserting citation (UniFAE)
I need to test the suffix informed to launch the author to change the formatting of the citation.
Situation:
If I put the suffix "."
Like this: (JOE, 1990, p. 23).
If the suffix is different of "." Should look like:
Joe (1990, p. 23)
I tried, but failed:
<citation et-al-min="3" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" collapse="year">
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<if suffix=".">
<layout delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<group prefix="(" suffix=")" delimiter="; ">
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</group>
</layout>
</if>
<else>
<layout prefix="(" suffix=")" delimiter="; ">
<group>
<text suffix=", " macro="author-short"/>
<text macro="issued-year"/>
<text prefix=", " macro="citation-locator"/>
</group>
</layout>
</else>
</citation>
Help-me please!
Situation:
If I put the suffix "."
Like this: (JOE, 1990, p. 23).
If the suffix is different of "." Should look like:
Joe (1990, p. 23)
I tried, but failed:
<citation et-al-min="3" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" collapse="year">
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<if suffix=".">
<layout delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<group prefix="(" suffix=")" delimiter="; ">
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</group>
</layout>
</if>
<else>
<layout prefix="(" suffix=")" delimiter="; ">
<group>
<text suffix=", " macro="author-short"/>
<text macro="issued-year"/>
<text prefix=", " macro="citation-locator"/>
</group>
</layout>
</else>
</citation>
Help-me please!
https://github.com/citation-style-language/styles/wiki/Validation
In any case, what you are trying to do there is not possible in CSL.
The word processor plugins for Zotero and Mendeley (as well as the syntax for pandoc/citeproc-hs) have an option to suppress the author to get Joe (1990, p. 23) (typing Joe into the word processor)
I'll think of another solution.