Set bibtexparser homogenize_fields to True
The default changed from True to False. It is not explicitly set.
This commit is contained in:
parent
98a2f1d646
commit
666941d471
@ -38,6 +38,7 @@ def customizations(record):
|
|||||||
:param record: a record
|
:param record: a record
|
||||||
:returns: -- customized record
|
:returns: -- customized record
|
||||||
"""
|
"""
|
||||||
|
|
||||||
record = bp.customization.convert_to_unicode(record)
|
record = bp.customization.convert_to_unicode(record)
|
||||||
record = bp.customization.type(record)
|
record = bp.customization.type(record)
|
||||||
record = bp.customization.author(record)
|
record = bp.customization.author(record)
|
||||||
@ -115,7 +116,8 @@ class EnDecoder(object):
|
|||||||
""""""
|
""""""
|
||||||
try:
|
try:
|
||||||
entries = bp.bparser.BibTexParser(
|
entries = bp.bparser.BibTexParser(
|
||||||
bibdata, customization=customizations).get_entry_dict()
|
bibdata, homogenize_fields=True,
|
||||||
|
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