diff --git a/src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java b/src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java index 2b37771aade..2b18209f84b 100644 --- a/src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java +++ b/src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java @@ -79,22 +79,6 @@ public Optional findFullText(BibEntry entry) throws IOException { } } - // 2. DOI - Optional doi = entry.getField(FieldName.DOI).flatMap(DOI::build); - if (doi.isPresent()) { - String doiString = doi.get().getDOI(); - // Search for an entry in the ArXiv which is linked to the doi - try { - Optional pdfUrl = searchForEntry("doi:" + doiString).flatMap(ArXivEntry::getPdfUrl); - if (pdfUrl.isPresent()) { - LOGGER.info("Fulltext PDF found @ arXiv."); - return pdfUrl; - } - } catch (FetcherException e) { - LOGGER.warn("arXiv DOI API request failed", e); - } - } - return Optional.empty(); } diff --git a/src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java b/src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java index e43528c4537..02f523396a4 100644 --- a/src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java +++ b/src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java @@ -51,7 +51,7 @@ public void setUp() { } @Test - public void doiNotPresent() throws IOException { + public void noIdentifierPresent() throws IOException { assertEquals(Optional.empty(), finder.findFullText(entry)); } @@ -61,13 +61,6 @@ public void rejectNullParameter() throws IOException { Assert.fail(); } - @Test - public void findByDOI() throws IOException { - entry.setField("doi", "10.1529/biophysj.104.047340"); - - assertEquals(Optional.of(new URL("http://arxiv.org/pdf/cond-mat/0406246v1")), finder.findFullText(entry)); - } - @Test public void findByEprint() throws IOException { entry.setField("eprint", "1603.06570");