Search in sources :

Example 1 with MoveFieldCleanup

use of org.jabref.logic.cleanup.MoveFieldCleanup in project jabref by JabRef.

the class MathSciNet method doPostCleanup.

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

Example 2 with MoveFieldCleanup

use of org.jabref.logic.cleanup.MoveFieldCleanup 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 3 with MoveFieldCleanup

use of org.jabref.logic.cleanup.MoveFieldCleanup 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)3 FieldFormatterCleanup (org.jabref.model.cleanup.FieldFormatterCleanup)3 ClearFormatter (org.jabref.logic.formatter.bibtexfields.ClearFormatter)2 RemoveBracesFormatter (org.jabref.logic.formatter.bibtexfields.RemoveBracesFormatter)2 NormalizeNamesFormatter (org.jabref.logic.formatter.bibtexfields.NormalizeNamesFormatter)1