use of org.jabref.logic.importer.fileformat.BibtexImporter in project jabref by JabRef.
the class ImportFormatReader method resetImportFormats.
public void resetImportFormats(ImportFormatPreferences newImportFormatPreferences, XMPPreferences xmpPreferences) {
this.importFormatPreferences = newImportFormatPreferences;
formats.clear();
formats.add(new BiblioscapeImporter());
formats.add(new BibtexImporter(importFormatPreferences));
formats.add(new BibTeXMLImporter());
formats.add(new CopacImporter());
formats.add(new EndnoteImporter(importFormatPreferences));
formats.add(new FreeCiteImporter(importFormatPreferences));
formats.add(new InspecImporter());
formats.add(new IsiImporter());
formats.add(new MedlineImporter());
formats.add(new MedlinePlainImporter());
formats.add(new ModsImporter());
formats.add(new MsBibImporter());
formats.add(new OvidImporter());
formats.add(new PdfContentImporter(importFormatPreferences));
formats.add(new PdfXmpImporter(xmpPreferences));
formats.add(new RepecNepImporter(importFormatPreferences));
formats.add(new RisImporter());
formats.add(new SilverPlatterImporter());
// Get custom import formats
for (CustomImporter importer : importFormatPreferences.getCustomImportList()) {
formats.add(importer);
}
}
use of org.jabref.logic.importer.fileformat.BibtexImporter in project jabref by JabRef.
the class OpenDatabase method loadDatabase.
/**
* Opens a new database.
*/
public static ParserResult loadDatabase(File fileToOpen, ImportFormatPreferences importFormatPreferences) throws IOException {
ParserResult result = new BibtexImporter(importFormatPreferences).importDatabase(fileToOpen.toPath(), importFormatPreferences.getEncoding());
if (importFormatPreferences.isKeywordSyncEnabled()) {
for (BibEntry entry : result.getDatabase().getEntries()) {
SpecialFieldsUtils.syncSpecialFieldsFromKeywords(entry, importFormatPreferences.getKeywordSeparator());
}
LOGGER.debug("Synchronized special fields based on keywords");
}
applyPostActions(result);
return result;
}
Aggregations