# -*-Python-*-
# Created by meneghini at 11 Jul 2018 11:40
OMFIT['omfit_citations'] = OMFITbibtex(OMFITsrc + '/../samples/omfit_citations.bib')
# add DOI information
OMFIT['omfit_citations'].doi()
# Sanitizes the database entries:
# 1. Fix all-caps author names
# 2. Fix unicodes
OMFIT['omfit_citations'].sanitize()
# set ID as year_1stAuthor_journal
OMFIT['omfit_citations'].update_ID()
# generate strings for publications in a given format
format = '\\item[]{{{author}; {title}; {journal} {volume} {year}: \\href{{http://dx.doi.org/{doi}}}{{doi:{doi}}}}}'
pprint(OMFIT['omfit_citations'].write_format(format))