code: def get_bibtex(self):
          
          if self.aggregationType != 'Journal':
              raise ValueError('Only Journal articles supported.')
          # Item key
          year = self.coverDate[0:4]
          first = self.title.split()[0].title()
          last = self.title.split()[-1].title()
          key = ''.join([self.authors[0].surname, year, first, last])
          # Authors
          authors = ' and '.join(["{} {}".format(a.given_name, a.surname)
                                  for a in self.authors])
          # Pages
          if self.pageRange:
              pages = self.pageRange
          elif self.startingPage:
              pages = '{}-{}'.format(self.startingPage, self.endingPage)
          else:
              pages = '-'
          # All information
          bib = "@article{{{key},\n  author = {{{auth}}},\n  title = "\
                "{{{{{title}}}}},\n  journal = {{{jour}}},\n  year = "\
                "{{{year}}},\n  volume = {{{vol}}},\n  number = {{{number}}},"\
                "\n  pages = {{{pages}}}".format(
                  key=key, auth=authors, title=self.title, year=year,
                  jour=self.publicationName, vol=self.volume,
                  number=self.issueIdentifier, pages=pages)
          # DOI
          if self.doi:
              bib += ",\n  doi = {{{}}}".format(self.doi)
          bib += "}"
          return bib
docs: Bibliographic entry in BibTeX format.
  
          Raises
          ------
          ValueError
              If the item's aggregationType is not Journal.