Skip to content

Commit 7cdb42b

Browse files
dependabot[bot]Siedlerchrsubhramit
authored
Chore(deps): Bump jablib/src/main/resources/csl-styles from 0201999 to f345aa8 (#14833)
* Chore(deps): Bump jablib/src/main/resources/csl-styles Bumps [jablib/src/main/resources/csl-styles](https://github.com/citation-style-language/styles) from `0201999` to `f345aa8`. - [Release notes](https://github.com/citation-style-language/styles/releases) - [Commits](citation-style-language/styles@0201999...f345aa8) --- updated-dependencies: - dependency-name: jablib/src/main/resources/csl-styles dependency-version: f345aa8691bb46c92325c9a24e8ff8836923b346 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Fix tests, part 1 Signed-off-by: subhramit <[email protected]> * Replace Jul with Jul. Signed-off-by: subhramit <[email protected]> * ... Signed-off-by: subhramit <[email protected]> * ... Signed-off-by: subhramit <[email protected]> * One part finally done Signed-off-by: subhramit <[email protected]> * Rename harvard Signed-off-by: subhramit <[email protected]> * What a silly error Signed-off-by: subhramit <[email protected]> * One more dot Signed-off-by: subhramit <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: subhramit <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christoph <[email protected]> Co-authored-by: subhramit <[email protected]>
1 parent bd8b1b7 commit 7cdb42b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed
Submodule csl-styles updated 208 files

jablib/src/test/java/org/jabref/logic/citationstyle/CitationStyleGeneratorTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void defaultBibliography() {
9292
// if the default citation style (ieee.csl) changes this has to be modified
9393
String expected = """
9494
<div class="csl-entry">
95-
<div class="csl-left-margin">[1]</div><div class="csl-right-inline">B. Smith, B. Jones, and J. Williams, &ldquo;Title of the test entry,&rdquo; <span style="font-style: italic">BibTeX Journal</span>, vol. 34, no. 3, pp. 45&ndash;67, July 2016, doi: 10.1001/bla.blubb.</div>
95+
<div class="csl-left-margin">[1]</div><div class="csl-right-inline">B. Smith, B. Jones, and J. Williams, &ldquo;Title of the test entry,&rdquo; <span style="font-style: italic">BibTeX Journal</span>, vol. 34, no. 3, pp. 45&ndash;67, Jul. 2016, doi: 10.1001/bla.blubb.</div>
9696
</div>
9797
""";
9898

@@ -178,7 +178,7 @@ void missingCitationStyle() {
178178
void htmlFormat() {
179179
String expectedCitation = """
180180
<div class="csl-entry">
181-
<div class="csl-left-margin">[1]</div><div class="csl-right-inline">B. Smith, B. Jones, and J. Williams, &ldquo;Title of the test entry,&rdquo; <span style="font-style: italic">BibTeX Journal</span>, vol. 34, no. 3, pp. 45&ndash;67, July 2016, doi: 10.1001/bla.blubb.</div>
181+
<div class="csl-left-margin">[1]</div><div class="csl-right-inline">B. Smith, B. Jones, and J. Williams, &ldquo;Title of the test entry,&rdquo; <span style="font-style: italic">BibTeX Journal</span>, vol. 34, no. 3, pp. 45&ndash;67, Jul. 2016, doi: 10.1001/bla.blubb.</div>
182182
</div>
183183
""";
184184

@@ -188,15 +188,15 @@ void htmlFormat() {
188188

189189
@Test
190190
void textFormat() {
191-
String expectedCitation = "[1]B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, July 2016, doi: 10.1001/bla.blubb.\n";
191+
String expectedCitation = "[1]B. Smith, B. Jones, and J. Williams, “Title of the test entry,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, Jul. 2016, doi: 10.1001/bla.blubb.\n";
192192

193193
String actualCitation = CitationStyleGenerator.generateBibliography(List.of(testEntry), DEFAULT_STYLE, TEXT_OUTPUT_FORMAT, testEntryContext, ENTRY_TYPES_MANAGER).getFirst();
194194
assertEquals(expectedCitation, actualCitation);
195195
}
196196

197197
@Test
198198
void markdownFormat() {
199-
String expectedCitation = "\\[1\\]B\\. Smith\\, B\\. Jones\\, and J\\. Williams\\, “Title of the test entry\\,” *BibTeX Journal*\\, vol\\. 34\\, no\\. 3\\, pp\\. 45–67\\, July 2016\\, doi\\: 10\\.1001\\/bla\\.blubb\\.<br />\n";
199+
String expectedCitation = "\\[1\\]B\\. Smith\\, B\\. Jones\\, and J\\. Williams\\, “Title of the test entry\\,” *BibTeX Journal*\\, vol\\. 34\\, no\\. 3\\, pp\\. 45–67\\, Jul\\. 2016\\, doi\\: 10\\.1001\\/bla\\.blubb\\.<br />\n";
200200

201201
String actualCitation = CitationStyleGenerator.generateBibliography(List.of(testEntry), DEFAULT_STYLE, MARKDOWN_OUTPUT_FORMAT, testEntryContext, ENTRY_TYPES_MANAGER).getFirst();
202202
assertEquals(expectedCitation, actualCitation);
@@ -221,7 +221,7 @@ void handleDiacritics() {
221221

222222
@Test
223223
void handleAmpersand() {
224-
String expectedCitation = "[1]B. Smith, B. Jones, and J. Williams, “Famous quote: “&TitleTest&” - that is it,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, July 2016, doi: 10.1001/bla.blubb.\n";
224+
String expectedCitation = "[1]B. Smith, B. Jones, and J. Williams, “Famous quote: “&TitleTest&” - that is it,” BibTeX Journal, vol. 34, no. 3, pp. 45–67, Jul. 2016, doi: 10.1001/bla.blubb.\n";
225225
testEntry.setField(StandardField.TITLE, "Famous quote: “&TitleTest&” - that is it");
226226

227227
String actualCitation = CitationStyleGenerator.generateBibliography(List.of(testEntry), DEFAULT_STYLE, TEXT_OUTPUT_FORMAT, testEntryContext, ENTRY_TYPES_MANAGER).getFirst();

jablib/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static Stream<Arguments> ooHTMLTransformFromRawBibliography() {
168168

169169
// Numeric type "[1]", brackets, newlines
170170
Arguments.of(
171-
"[1] B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, July 2016, doi: 10.1001/bla.blubb.<p></p>",
171+
"[1] B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016, doi: 10.1001/bla.blubb.<p></p>",
172172
STYLE_LIST.stream().filter(e -> "IEEE Reference Guide version 11.29.2023".equals(e.getTitle())).findAny().get()
173173
),
174174

@@ -202,7 +202,7 @@ static Stream<Arguments> ooHTMLTransformFromRawBibliography() {
202202
// Small-caps
203203
Arguments.of(
204204
"<smallcaps>Smith</smallcaps>, <smallcaps>B.</smallcaps>, <smallcaps>Jones</smallcaps>, <smallcaps>B.</smallcaps> and <smallcaps>Williams</smallcaps>, <smallcaps>J.</smallcaps> (2016) Title of the test entry <smallcaps>Taylor</smallcaps>, <smallcaps>P.</smallcaps> (ed.). <i>BibTeX Journal</i>, 34(3), pp. 45–67.<p></p>",
205-
STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get()
205+
STYLE_LIST.stream().filter(e -> "De Montfort University (author-date/Harvard)".equals(e.getTitle())).findAny().get()
206206
),
207207

208208
// Non-breaking spaces
@@ -302,7 +302,7 @@ static Stream<Arguments> ooHTMLTransformFromCitationWithSingleEntry() {
302302

303303
Arguments.of(
304304
"(Smith, Jones and Williams, 2016)",
305-
STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get()
305+
STYLE_LIST.stream().filter(e -> "De Montfort University (author-date/Harvard)".equals(e.getTitle())).findAny().get()
306306
),
307307

308308
Arguments.of(
@@ -426,7 +426,7 @@ static Stream<Arguments> ooHTMLTransformFromCitationWithMultipleEntries() {
426426

427427
Arguments.of(
428428
"(Garcia and Lee, 2021; Smith and Johnson, 2020)",
429-
STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get()
429+
STYLE_LIST.stream().filter(e -> "De Montfort University (author-date/Harvard)".equals(e.getTitle())).findAny().get()
430430
),
431431

432432
Arguments.of(
@@ -497,7 +497,7 @@ static Stream<Arguments> updateSingleNumericBibliography() {
497497

498498
// Type: "[1]"
499499
Arguments.of(
500-
"[3] B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, July 2016, doi: 10.1001/bla.blubb.<p></p>",
500+
"[3] B. Smith, B. Jones, and J. Williams, “Title of the test entry,” <i>BibTeX Journal</i>, vol. 34, no. 3, pp. 45–67, Jul. 2016, doi: 10.1001/bla.blubb.<p></p>",
501501
STYLE_LIST.stream().filter(e -> "IEEE Reference Guide version 11.29.2023".equals(e.getTitle())).findAny().get()
502502
),
503503

0 commit comments

Comments
 (0)