Пример #1
0
 def exportFile(self, path, exportFormat):
     total = 0
     exporter = Exporter(path, self.referenceManager.iterEntryList())
     if exportFormat == settings.ExportFormat.BIBTEX:
         total = exporter.bibtexExport()
     elif exportFormat == settings.ExportFormat.CSV:
         total = exporter.csvExport()
     elif exportFormat == settings.ExportFormat.HTML:
         if prefs.bibStyle == settings.BibStyle.ACM:
             total = exporter.htmlACMExport()
         elif prefs.bibStyle == settings.BibStyle.IEEE:
             total = exporter.htmlIEEETransExport()
     return total > 0