arXiv articles are automatically assigned a stable DOI with the prefix 10.48550/arXiv.,
followed by the arXiv ID. Replacing an article with a new version does not generate a new
DOI; the metadata of the existing DOI is updated at DataCite instead. The DOI is therefore the
canonical, version-stable identifier and is preferred over the (redundant) eprint field.
See the arXiv DOI documentation.
Rules:
This job is self-contained and independent of cleanup job ordering. The consolidation reads the
already-normalized eprint and doi fields. When no consolidation is possible from the
fields as they are, the arXiv identifier might still live in a field such as url/journal/note, from
where EprintCleanup would move it into the eprint field. In that case this job applies
EprintCleanup itself, but only after probing (on a copy) that doing so actually enables a
consolidation - an entry without arXiv data is left untouched, regardless of whether
EprintCleanup runs separately or at all.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | ARXIV_DOI_PREFIX
arXiv DOIs use the prefix "10.48550/arXiv." (the DOI registrant assigned to arXiv). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Optional | arXivIdFromDoi(DOI doi)
Extracts the normalized arXiv ID from an arXiv DOI (the part after the "10.48550/arXiv." prefix). |
| public List | cleanup(BibEntry entry)
Implements org. Cleans up the given entry and returns the list of changes made. |
| private List | consolidate(BibEntry entry)
Consolidates the arXiv identifier onto the DOI field using the already-populated |
| private static boolean | |
| private void |
| ARXIV_DOI_PREFIX | back to summary |
|---|---|
| private static final String ARXIV_DOI_PREFIX arXiv DOIs use the prefix "10.48550/arXiv." (the DOI registrant assigned to arXiv). | |
| ArXivDoiCleanup | back to summary |
|---|---|
| public ArXivDoiCleanup() | |
| arXivIdFromDoi | back to summary |
|---|---|
| private static Optional Extracts the normalized arXiv ID from an arXiv DOI (the part after the "10.48550/arXiv." prefix). | |
| cleanup | back to summary |
|---|---|
| public List Implements org. Doc from org. Cleans up the given entry and returns the list of changes made.
| |
| consolidate | back to summary |
|---|---|
| private List Consolidates the arXiv identifier onto the DOI field using the already-populated | |
| isArXivDoi | back to summary |
|---|---|
| private static boolean isArXivDoi(DOI doi) | |
| removeFieldValue | back to summary |
|---|---|
| private void removeFieldValue(BibEntry entry, Field field, List<FieldChange> changes) | |