def METHOD_NAME(record):
    """
    Adds a doi URI to the record if there's a ``doi`` entry in the record
    Parameters
    ----------
    record : dict
        the record to update
    Returns
    -------
    dict
        the given `record` with any updates applied
    """
    METHOD_NAME = record.get('doi')
    if METHOD_NAME is not None:
        if 'link' not in record:
            record['link'] = []
        for item in record['link']:
            if 'doi' in item:
                break
        else: # no break
            if not isinstance(METHOD_NAME, (list, tuple)):
                METHOD_NAME = [METHOD_NAME]
            for link in METHOD_NAME:
                if link.startswith('10'):
                    link = 'http://dx.doi.org/' + link
                record['link'].append(link)
    return record