use of org.jabref.model.cleanup.FieldFormatterCleanup in project jabref by JabRef.
the class FieldFormatterCleanupsPanel method getFieldFormatterCleanup.
private FieldFormatterCleanup getFieldFormatterCleanup() {
Formatter selectedFormatter = getFieldFormatter();
String fieldKey = selectFieldCombobox.getSelectedItem().toString();
return new FieldFormatterCleanup(fieldKey, selectedFormatter);
}
use of org.jabref.model.cleanup.FieldFormatterCleanup 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);
}
use of org.jabref.model.cleanup.FieldFormatterCleanup 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);
}
use of org.jabref.model.cleanup.FieldFormatterCleanup in project jabref by JabRef.
the class DBLPFetcher method doPostCleanup.
@Override
public void doPostCleanup(BibEntry entry) {
DoiCleanup doiCleaner = new DoiCleanup();
FieldFormatterCleanup clearTimestampFormatter = new FieldFormatterCleanup(FieldName.TIMESTAMP, new ClearFormatter());
doiCleaner.cleanup(entry);
clearTimestampFormatter.cleanup(entry);
}
use of org.jabref.model.cleanup.FieldFormatterCleanup in project jabref by JabRef.
the class DoiFetcher method doPostCleanup.
private void doPostCleanup(BibEntry entry) {
new FieldFormatterCleanup(FieldName.PAGES, new NormalizePagesFormatter()).cleanup(entry);
new FieldFormatterCleanup(FieldName.URL, new ClearFormatter()).cleanup(entry);
}
Aggregations