Support old bibtexparser keywords
So previous commit 666941d471 broke the current pip version of bibtexparser (0.6.2), which does not have a homegeneize_fields keyword. My bad and fixed!
This commit is contained in:
parent
2db80c66ae
commit
a5a653becd
@ -115,9 +115,15 @@ class EnDecoder(object):
|
|||||||
def decode_bibdata(self, bibdata):
|
def decode_bibdata(self, bibdata):
|
||||||
""""""
|
""""""
|
||||||
try:
|
try:
|
||||||
entries = bp.bparser.BibTexParser(
|
try:
|
||||||
bibdata, homogenize_fields=True,
|
entries = bp.bparser.BibTexParser(
|
||||||
customization=customizations).get_entry_dict()
|
bibdata, homogenize_fields=True,
|
||||||
|
customization=customizations).get_entry_dict()
|
||||||
|
except TypeError:
|
||||||
|
entries = bp.bparser.BibTexParser(
|
||||||
|
bibdata,
|
||||||
|
customization=customizations).get_entry_dict()
|
||||||
|
|
||||||
# Remove id from bibtexparser attribute which is stored as citekey
|
# Remove id from bibtexparser attribute which is stored as citekey
|
||||||
for e in entries:
|
for e in entries:
|
||||||
entries[e].pop(BP_ID_KEY)
|
entries[e].pop(BP_ID_KEY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user