zotero / zotero-bits

CSL-related community feedback for Zotero
54 stars 8 forks source link

add field "lastaccessed" to type "webpage" #91

Closed nata11 closed 1 year ago

nata11 commented 1 year ago

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.

dstillman commented 1 year ago

https://github.com/zotero/zotero/blob/master/CONTRIBUTING.md