Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.cleanup

public Class DoiCleanup

extends Object
implements CleanupJob
Class Inheritance
All Implemented Interfaces
org.jabref.logic.cleanup.CleanupJob
Imports
java.net.URLDecoder, java.nio.charset.StandardCharsets, java.util.ArrayList, .List, .Optional, java.util.concurrent.atomic.AtomicBoolean, org.jabref.logic.formatter.bibtexfields.ClearFormatter, org.jabref.model.FieldChange, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.Field, .StandardField, .UnknownField, org.jabref.model.entry.identifier.DOI

Formats the DOI (e.g. removes http part) and also infers DOIs from the note, url, eprint or ee fields.

Field Summary

Modifier and TypeField and Description
private static final List<Field>
FIELDS

Fields to check for DOIs.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<FieldChange>
cleanup(BibEntry entry)

Implements org.jabref.logic.cleanup.CleanupJob.cleanup.

Cleans up the given entry and returns the list of changes made.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FIELDSback to summary
private static final List<Field> FIELDS

Fields to check for DOIs.

Constructor Detail

DoiCleanupback to summary
public DoiCleanup()

Method Detail

cleanupback to summary
public List<FieldChange> cleanup(BibEntry entry)

Implements org.jabref.logic.cleanup.CleanupJob.cleanup.

Doc from org.jabref.logic.cleanup.CleanupJob.cleanup.

Cleans up the given entry and returns the list of changes made.

Annotations
@Override
removeFieldValueback to summary
private void removeFieldValue(BibEntry entry, Field field, List<FieldChange> changes)