Handle duplicate author field (for BibTeX input)
Issue #95
resolved
Hi,
first, thanks for pybtex! :-) I have spent the last week customising it and the code is really nice to read.
I noticed that having a duplicate author
field in a bibtex entry results in the authors from both fields getting concatenated. Arguably a duplicate field should not happen. In this case I propose to use the value from the first field. Checking with bibtex gives
Database file #1: test.bib
Warning--I'm ignoring entry_name's extra "author" field
If you like I can try to implement this. My starting point would be database/input/*.py
and there the process_entry
method.
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Yes, duplicate fields should be ignored with a warning by default and produce an error in the strict mode (
pybtex --strict
). You can modify.process_entry()
and use.handle_error()
to report the warning / error.