CSL Author-Date `is-uncertain-date` not working
Hi everyone,
I'm customizing an author-date CSL style (based on ABNT Brazilian standards) and I'm having trouble getting uncertain dates (like circa dates) to display correctly in the inline citation.
My Goal:
If I enter ca. 1750 in Zotero's date field...
The bibliography should output ... ca. 1750. (This part is working correctly using standard CSL logic in the date macros).
The inline citation should output (Author ca. 1750).
The Problem:
The inline citation consistently outputs only the year, like (Author 1750), omitting the ca. prefix. This happens even though the bibliography entry for the same item correctly displays ca. 1750.
It seems the if is-uncertain-date="issued" condition evaluates correctly when generating the bibliography, but incorrectly evaluates to false when generating the inline citation for the exact same item.
Style Info:
class="in-text"
default-locale="pt-BR"
The <<term name="circa" form="short">>ca.<</term>> is defined in locale.
The issued-year macro correctly implements the check:
I first tried embedding the standard logic, but the result was: (Author 1750)
https://s3.amazonaws.com/zotero.org/images/forums/u1664442/vg713ycbpou09vsda1z6.png
Them I tried using extra field (note variable) as a workaround, but got the same result.
https://s3.amazonaws.com/zotero.org/images/forums/u1664442/ap359sx814drwak8319w.png
So, is this a known issue or limitation where is-uncertain-date might not function reliably inside the citation layout for author-date styles? Is there any other standard or reliable CSL method to achieve the (Author ca. Year) output for inline citations?
I'm customizing an author-date CSL style (based on ABNT Brazilian standards) and I'm having trouble getting uncertain dates (like circa dates) to display correctly in the inline citation.
My Goal:
If I enter ca. 1750 in Zotero's date field...
The bibliography should output ... ca. 1750. (This part is working correctly using standard CSL logic in the date macros).
The inline citation should output (Author ca. 1750).
The Problem:
The inline citation consistently outputs only the year, like (Author 1750), omitting the ca. prefix. This happens even though the bibliography entry for the same item correctly displays ca. 1750.
It seems the if is-uncertain-date="issued" condition evaluates correctly when generating the bibliography, but incorrectly evaluates to false when generating the inline citation for the exact same item.
Style Info:
class="in-text"
default-locale="pt-BR"
The <<term name="circa" form="short">>ca.<</term>> is defined in locale.
The issued-year macro correctly implements the check:
I first tried embedding the standard logic, but the result was: (Author 1750)
https://s3.amazonaws.com/zotero.org/images/forums/u1664442/vg713ycbpou09vsda1z6.png
Them I tried using extra field (note variable) as a workaround, but got the same result.
https://s3.amazonaws.com/zotero.org/images/forums/u1664442/ap359sx814drwak8319w.png
So, is this a known issue or limitation where is-uncertain-date might not function reliably inside the citation layout for author-date styles? Is there any other standard or reliable CSL method to achieve the (Author ca. Year) output for inline citations?
issued: 1970?
Or
issued: ~1970
issued: 1970?
otherwise, yes, exactly. And that goes in
Extra
not in the date field. (Zotero's date field isn't very powerful, unfortunately)