diff --git a/build.gradle b/build.gradle index d9ec3cb6654..e9cb6222194 100644 --- a/build.gradle +++ b/build.gradle @@ -281,7 +281,7 @@ dependencies { // route all requests to log4j to SLF4J implementation 'org.apache.logging.log4j:log4j-to-slf4j:2.24.3' - implementation('de.undercouch:citeproc-java:3.1.0') { + implementation('de.undercouch:citeproc-java:3.2.0') { exclude group: 'org.antlr' } diff --git a/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java b/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java index dc43b0d26cb..02cd04e72ca 100644 --- a/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java +++ b/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java @@ -197,7 +197,7 @@ static Stream ooHTMLTransformFromRawBibliography() { // Small-caps Arguments.of( - " Smith, B., Jones, B., Williams, J. (2016) Title of the test entry Taylor, P. (ed.). BibTeX Journal, 34(3), pp. 45–67.

", + " Smith, B., Jones, B. and Williams, J. (2016) Title of the test entry Taylor, P. (ed.). BibTeX Journal, 34(3), pp. 45–67.

", STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get() ), @@ -305,12 +305,12 @@ static Stream ooHTMLTransformFromCitationWithSingleEntry() { ), Arguments.of( - "(Smith, Jones, Williams, 2016)", + "(Smith, Jones and Williams, 2016)", STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get() ), Arguments.of( - "(Smith, Jones, & Williams)", + "(Smith, Jones, & Williams, “Title of the test entry”)", STYLE_LIST.stream().filter(e -> "Modern Language Association 7th edition (underline)".equals(e.getTitle())).findAny().get() ), @@ -429,12 +429,12 @@ static Stream ooHTMLTransformFromCitationWithMultipleEntries() { ), Arguments.of( - "(Garcia, Lee, 2021; Smith, Johnson, 2020)", + "(Garcia and Lee, 2021; Smith and Johnson, 2020)", STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get() ), Arguments.of( - "(Garcia & Lee; Smith & Johnson)", + "(Garcia & Lee, “Quantum Entanglement in Superconductors”; Smith & Johnson, “A Study on Machine Learning Algorithms”)", STYLE_LIST.stream().filter(e -> "Modern Language Association 7th edition (underline)".equals(e.getTitle())).findAny().get() ),