zotero/zotero-bits

add field "lastaccessed" to type "webpage"

Closed this issue · 1 comments

nata11 commented

ACM (Association of Computing Machinery) publications BibTex formating guidlines show that ACM BibTex Reference Format uses the field "lastaccessed" instead of "accessdate". I use Overleaf to automatically sync my bibliography with Zotero libraries. But currently the export of BibTex or even BibLatex does not support the field "lastaccessed". So the last accessed date is not present in the final bibliography. Manual workaround is to use Better BibTex plugin and use a postscript like this to insert the field:

if (Translator.BetterBibTeX && zotero.itemType === 'webpage') { if (zotero.accessDate) { tex.add({ name: 'lastaccessed', value: zotero.accessDate.replace(/\s*T?\d+:\d+:\d+.*/, '')}); } }

But this means bib files have to be synchronized manually to Overleaf. This is a feature request to add this field to any export, whether online or desktop versions.