Skip to content

Commit

Permalink
follow up to crossref issue and number
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Oct 11, 2023
1 parent c7cf263 commit 06ba3e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 06ba3e0

Please sign in to comment.