code: def set_article_url(self, resolve_doi=True):
          
          if 'DOI' in self.record:
              doi_url = "/".join(['http://dx.doi.org', self.record['DOI']])
  
              if resolve_doi:
                  try:
                      response = urlopen(doi_url)
                  except URLError:
                      self.url = ''
                  else:
                      self.url = response.geturl()
              else:
                  self.url = doi_url
  
          else:
              self.url = ''
docs: If record has a DOI, set article URL based on where the DOI points.