Search in sources :

Example 1 with RemoveBracesFormatter

use of org.jabref.logic.formatter.bibtexfields.RemoveBracesFormatter in project jabref by JabRef.

the class AstrophysicsDataSystem method doPostCleanup.

@Override
public void doPostCleanup(BibEntry entry) {
    new FieldFormatterCleanup(FieldName.ABSTRACT, new RemoveBracesFormatter()).cleanup(entry);
    new FieldFormatterCleanup(FieldName.TITLE, new RemoveBracesFormatter()).cleanup(entry);
    new FieldFormatterCleanup(FieldName.AUTHOR, new NormalizeNamesFormatter()).cleanup(entry);
    // Remove ADS note
    new FieldFormatterCleanup("adsnote", new ClearFormatter()).cleanup(entry);
    // Move adsurl to url field
    new MoveFieldCleanup("adsurl", FieldName.URL).cleanup(entry);
}
Also used : NormalizeNamesFormatter(org.jabref.logic.formatter.bibtexfields.NormalizeNamesFormatter) RemoveBracesFormatter(org.jabref.logic.formatter.bibtexfields.RemoveBracesFormatter) FieldFormatterCleanup(org.jabref.model.cleanup.FieldFormatterCleanup) ClearFormatter(org.jabref.logic.formatter.bibtexfields.ClearFormatter) MoveFieldCleanup(org.jabref.logic.cleanup.MoveFieldCleanup)

Example 2 with RemoveBracesFormatter

use of org.jabref.logic.formatter.bibtexfields.RemoveBracesFormatter in project jabref by JabRef.

the class zbMATH method doPostCleanup.

@Override
public void doPostCleanup(BibEntry entry) {
    new MoveFieldCleanup("msc2010", FieldName.KEYWORDS).cleanup(entry);
    new MoveFieldCleanup("fjournal", FieldName.JOURNAL).cleanup(entry);
    new FieldFormatterCleanup(FieldName.JOURNAL, new RemoveBracesFormatter()).cleanup(entry);
    new FieldFormatterCleanup(FieldName.TITLE, new RemoveBracesFormatter()).cleanup(entry);
}
Also used : RemoveBracesFormatter(org.jabref.logic.formatter.bibtexfields.RemoveBracesFormatter) FieldFormatterCleanup(org.jabref.model.cleanup.FieldFormatterCleanup) MoveFieldCleanup(org.jabref.logic.cleanup.MoveFieldCleanup)

Aggregations

MoveFieldCleanup (org.jabref.logic.cleanup.MoveFieldCleanup)2 RemoveBracesFormatter (org.jabref.logic.formatter.bibtexfields.RemoveBracesFormatter)2 FieldFormatterCleanup (org.jabref.model.cleanup.FieldFormatterCleanup)2 ClearFormatter (org.jabref.logic.formatter.bibtexfields.ClearFormatter)1 NormalizeNamesFormatter (org.jabref.logic.formatter.bibtexfields.NormalizeNamesFormatter)1