urschrei / pyzotero

Pyzotero: a Python client for the Zotero API
https://pyzotero.readthedocs.org
Other
910 stars 100 forks source link

biblatex incompatibility with @online field #130

Closed codykingham closed 3 years ago

codykingham commented 3 years ago

When retrieving a webpage item where format='biblatex', the retrieval returns a blank dictionary with the warning:

Entry type online not standard. Not considered.

Minimum example:

alpha_go = zot.items(q='alphago 2021', format='biblatex')

The warning comes from inside bibtexparser, which does not yet support the @online field: https://github.com/sciunto-org/python-bibtexparser/issues/143

A work around might be to set ignore_nonstandard_types=False when format is biblatex in this line: https://github.com/urschrei/pyzotero/blob/94eeee07b75b399b1ecd9cf8a498264d5f8f8083/pyzotero/zotero.py#L265

urschrei commented 3 years ago

Released to PyPI as 1.4.21. Thanks for the suggested fix!

codykingham commented 3 years ago

Thank you!