We've also added a fallback to use the date_uploaded year if there is no date_created value present for a particular item.
If neither date_created nor date_uploaded are present, the publication year is listed as "no date" in citations. date_uploaded should always be present in production, but handling this case makes test setup simpler and makes some tests less fragile.
NOTES:
The CSL parser attempts to format the issued element as a numeric date, so "Winter 2019" and "January 2021" both raise an exception. Instead, we can use the status element which diplays in the same positon in the citation, but renders the text provided without attempting any date parsing.
This commit adds support for including months or seasons in publication dates, e.g.
We've also added a fallback to use the
date_uploaded
year if there is nodate_created
value present for a particular item.If neither
date_created
nordate_uploaded
are present, the publication year is listed as "no date" in citations.date_uploaded
should always be present in production, but handling this case makes test setup simpler and makes some tests less fragile.NOTES: The CSL parser attempts to format the
issued
element as a numeric date, so "Winter 2019" and "January 2021" both raise an exception. Instead, we can use thestatus
element which diplays in the same positon in the citation, but renders the text provided without attempting any date parsing.