doc2json/jats2json/pmc_utils/front_tag_utils.py
def parse_doi_tag(front_tag) -> Optional[str]:
    """Not all papers have a DOI"""
    doi_tag = front_tag.find('article-id', {'pub-id-type': 'doi'})
    if doi_tag is not None:
        return doi_tag.extract().text
    else:
        return None
Not all papers have a DOI
Not all papers have a DOI
Not all papers have a DOI
def parse_doi_tag(front_tag) -> Optional[str]:
    doi_tag = front_tag.find('article-id', {'pub-id-type': 'doi'})
    if doi_tag is not None:
        return doi_tag.extract().text
    else:
        return None
def parse_doi_tag ( front_tag ) -> Optional [ str ] : doi_tag = front_tag . find ( 'article-id' , { 'pub-id-type' : 'doi' } ) if doi_tag is not None : return doi_tag . extract ( ) . text else : return None
Not all papers have a DOI
Not all papers have a DOI
"""Not all papers have a DOI"""
front_tag