@cached_property
    def best_url(self):
        # try these first, in this order
        if self.display_doi:
            return u"http://doi.org/" + self.display_doi
        if self.display_pmid:
            return u"http://www.ncbi.nlm.nih.gov/pubmed/" + self.display_pmid
        if self.display_pmc:
            return u"http://www.ncbi.nlm.nih.gov/pmc/articles/" + self.display_pmc
        if self.resolved_url:
            return self.resolved_url

        try:
            return self.url[0]
        except __HOLE__:
            return None
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/aliases.py/Aliases.best_url