Skip to content

Commit

Permalink
"Fix2 number and year extraction for arXiv
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jan 20, 2025
1 parent 1f112a2 commit 5e961fa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,11 @@ Optional<BibEntry> getEntryFromPDFContent(String firstpageContents, String lineS
if (arXivId != null) {
entry.setField(StandardField.EPRINT, arXivId);
assert !arXivId.startsWith("arxiv");
entry.setField(StandardField.EPRINTTYPE, "arxiv");
entry.setField(StandardField.EPRINTTYPE, "arXiv");

// Quick workaround to avoid wrong year and number parsing
number = null; // "Germany" in org.jabref.logic.importer.fileformat.PdfContentImporterTest.extractArXivFromPage
year = null; // "2408" in org.jabref.logic.importer.fileformat.PdfContentImporterTest.extractArXivFromPage
}
if (series != null) {
entry.setField(StandardField.SERIES, series);
Expand Down

0 comments on commit 5e961fa

Please sign in to comment.