diff --git a/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java b/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java index b4aeb47c022..4826239e3e6 100644 --- a/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java +++ b/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java @@ -139,7 +139,7 @@ private BibEntry jsonItemToBibEntry(JSONObject item) throws ParseException { entry.setField(StandardField.DOI, item.getString("DOI")); entry.setField(StandardField.JOURNAL, item.optString("container-title")); entry.setField(StandardField.PUBLISHER, item.optString("publisher")); - entry.setField(StandardField.ISSUE, item.optString("issue")); + entry.setField(StandardField.NUMBER, item.optString("issue")); entry.setField(StandardField.KEYWORDS, Optional.ofNullable(item.optJSONArray("subject")).map(this::getKeywords).orElse("")); entry.setField(StandardField.PAGES, item.optString("page")); entry.setField(StandardField.VOLUME, item.optString("volume")); diff --git a/src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java b/src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java index d791ef951bc..a0bd0bfc64e 100644 --- a/src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java +++ b/src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java @@ -130,7 +130,7 @@ public void performSearchByIdFindsPaperWithoutTitle() throws Exception { entry.setField(StandardField.VOLUME, "42"); entry.setField(StandardField.YEAR, "1999"); entry.setField(StandardField.JOURNAL, "Indo-Iranian Journal"); - entry.setField(StandardField.ISSUE, "2"); + entry.setField(StandardField.NUMBER, "2"); entry.setField(StandardField.PUBLISHER, "Brill"); entry.setField(StandardField.KEYWORDS, "Political Science and International Relations, Linguistics and Language, Philosophy");