def urlToLink(entryRef):
    """ Move the entryRef "url" or "link" field into a URL in the "link" field

        Args:
            entryRef (obj): a bib database entry. It will be modified

        Returns:
            (bool): was a URL found and successfully converted?
    """
    if 'url' in entryRef.keys() and len(entryRef['url']) > 0:
        entryRef['link'] = entryRef['url']
        return True
    elif 'link' in entryRef.keys() and len(entryRef['link']) > 0:
        entryRef['link'] = entryRef['link']
        return True
    else:
        return False
