owmeta.bibtex_customizations module

bibtexparser customizations

owmeta.bibtex_customizations.author(record)[source]

Split author field by the string ‘and’ into a list of names.

Parameters
recorddict

the record

Returns
dict

the given record with any updates applied

owmeta.bibtex_customizations.customizations(record)[source]

Standard owmeta bibtexparser customizations

Includes: url, note_url, doi, listify, and author

Parameters
recorddict

the record

Returns
dict

the given record with any updates applied

owmeta.bibtex_customizations.doi(record)[source]

Adds a doi URI to the record if there’s a doi entry in the record

Parameters
recorddict

the record to update

Returns
dict

the given record with any updates applied

owmeta.bibtex_customizations.listify(record)[source]

Turns every value in the record into a list except for ENTRYTYPE and ID

owmeta.bibtex_customizations.listify_one(record, name)[source]

If the given field name does not have a list value, then updates the record by turning that value into a list.

Parameters
recorddict

The record to update

namestr

The name of the field to turn into a list

Returns
dict

the given record with any updates applied

owmeta.bibtex_customizations.note_url(record)[source]

Extracts URLs from note entries in the given record

Parameters
recorddict

the record

Returns
dict

the given record with any updates applied

owmeta.bibtex_customizations.url(record)[source]

Merges any URL from \url{...} in howpublished, and any existing link or url values in the record and normalizes them into a list in the url field of the record

Parameters
recorddict

the record

Returns
dict

the given record with any updates applied