diff --git a/CHANGELOG.md b/CHANGELOG.md index eb1b8112630..4a0cf3a2d6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We fixed an issue where the option "Move file to file directory" was disabled in the entry editor for all files [#7194](https://github.com/JabRef/jabref/issues/7194) - We fixed an issue where application dialogs were opening in the wrong display when using multiple screens [#7273](https://github.com/JabRef/jabref/pull/7273) - We fixed an issue where an exception would be displayed for previewing and preferences when a custom theme has been configured but is missing [#7177](https://github.com/JabRef/jabref/issues/7177) +- We fixed an issue where the field `urldate` was not exported to the corresponding fields `YearAccessed`, `MonthAccessed`, `DayAccessed` in MS Office XML [#7354](https://github.com/JabRef/jabref/issues/7354) ### Removed diff --git a/src/main/java/org/jabref/logic/msbib/MSBibConverter.java b/src/main/java/org/jabref/logic/msbib/MSBibConverter.java index cea1a55478f..2ee5d0c9e50 100644 --- a/src/main/java/org/jabref/logic/msbib/MSBibConverter.java +++ b/src/main/java/org/jabref/logic/msbib/MSBibConverter.java @@ -43,6 +43,8 @@ public static MSBibEntry convert(BibEntry entry) { entry.getLatexFreeField(StandardField.PAGES).ifPresent(pages -> result.pages = new PageNumbers(pages)); entry.getLatexFreeField(new UnknownField(MSBIB_PREFIX + "accessed")).ifPresent(accesed -> result.dateAccessed = accesed); + entry.getLatexFreeField(StandardField.URLDATE).ifPresent(acessed -> result.dateAccessed = acessed); + // TODO: currently this can never happen if ("SoundRecording".equals(msBibType)) { result.albumTitle = entry.getLatexFreeField(StandardField.TITLE).orElse(null); diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibUrlDate.bib b/src/test/resources/org/jabref/logic/exporter/MsBibUrlDate.bib new file mode 100644 index 00000000000..a922c937322 --- /dev/null +++ b/src/test/resources/org/jabref/logic/exporter/MsBibUrlDate.bib @@ -0,0 +1,13 @@ +@WWW{KoppLohmann2009, + editor = {Oliver Kopp and Niels Lohmann}, + title = {1st Central-European Workshop on Services and their Composition, {ZEUS} 2009, Stuttgart, Germany, March 2-3, 2009. Proceedings}, + url = {http://ceur-ws.org/Vol-438}, + urldate = {2021-01-04}, + bibsource = {dblp computer science bibliography, http://dblp.org}, + biburl = {http://dblp.uni-trier.de/rec/bib/conf/zeus/2009}, + creationdate = {2021-01-16T17:52:55}, + publisher = {CEUR-WS.org}, + series = {{CEUR} Workshop Proceedings}, + volume = {438}, + year = {2009}, +} \ No newline at end of file diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibUrlDate.xml b/src/test/resources/org/jabref/logic/exporter/MsBibUrlDate.xml new file mode 100644 index 00000000000..0ccc4234dd0 --- /dev/null +++ b/src/test/resources/org/jabref/logic/exporter/MsBibUrlDate.xml @@ -0,0 +1,32 @@ + + + + 2009 + 438 + CEUR Workshop Proceedings + www + Misc + 1st Central-European Workshop on Services and their Composition, ZEUS 2009, Stuttgart, Germany, March 2-3, 2009. Proceedings + KoppLohmann2009 + CEUR-WS.org + http://ceur-ws.org/Vol-438 + 2021 + 01 + 4 + + + + + Kopp + Oliver + + + Lohmann + Niels + + + + + 1st Central-European Workshop on Services and their Composition, ZEUS 2009, Stuttgart, Germany, March 2-3, 2009. Proceedings + +