use of bibtex.parser.BibtexParser in project mycore by MyCoRe-Org.
the class MCRBibTeX2MODSTransformer method parse.
private BibtexFile parse(String input) throws IOException {
BibtexFile bibtexFile = new BibtexFile();
BibtexParser parser = new BibtexParser(false);
parser.setMultipleFieldValuesPolicy(BibtexMultipleFieldValuesPolicy.KEEP_ALL);
try {
parser.parse(bibtexFile, new StringReader(input));
} catch (ParseException ex) {
MCRMessageLogger.logMessage(ex.toString());
}
return bibtexFile;
}
Aggregations