Skip to content

Commit

Permalink
Export full month name instead of number in ms office (#7358)
Browse files Browse the repository at this point in the history
Follow up fix from #7354
  • Loading branch information
Siedlerchr authored Jan 17, 2021
1 parent e17dc8e commit 26814fe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
### Changed

- The content of the field `timestamp` is migrated to `creationdate`. In case one configured "udpate timestampe", it is migrated to `modificationdate`. [koppor#130](https://github.com/koppor/jabref/issues/130)
- The export to MS Office XML now uses the month name for the field `MonthAcessed` instead of the two digit number [#7354](https://github.com/JabRef/jabref/issues/7354)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/logic/msbib/MSBibEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private void addDateAcessedFields(Document document, Element rootNode) {
});

parsedDateAcesseField.flatMap(Date::getMonth)
.map(Month::getTwoDigitNumber).ifPresent(monthAcessed -> {
.map(Month::getFullName).ifPresent(monthAcessed -> {
addField(document, rootNode, "Month" + "Accessed", monthAcessed);
});
parsedDateAcesseField.flatMap(Date::getDay).map(Object::toString).ifPresent(dayAccessed -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<b:Day>5</b:Day>
<b:BIBTEX_Size>1000</b:BIBTEX_Size>
<b:YearAccessed>2015</b:YearAccessed>
<b:MonthAccessed>10</b:MonthAccessed>
<b:MonthAccessed>October</b:MonthAccessed>
<b:DayAccessed>12</b:DayAccessed>
<b:Author/>
<b:ThesisType>unpublished</b:ThesisType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<b:Title>Test</b:Title>
<b:Tag>Testa</b:Tag>
<b:YearAccessed>2015</b:YearAccessed>
<b:MonthAccessed>12</b:MonthAccessed>
<b:MonthAccessed>December</b:MonthAccessed>
<b:DayAccessed>12</b:DayAccessed>
<b:Author>
<b:Author>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<b:Publisher>CEUR-WS.org</b:Publisher>
<b:URL>http://ceur-ws.org/Vol-438</b:URL>
<b:YearAccessed>2021</b:YearAccessed>
<b:MonthAccessed>01</b:MonthAccessed>
<b:MonthAccessed>January</b:MonthAccessed>
<b:DayAccessed>4</b:DayAccessed>
<b:Author>
<b:Editor>
Expand Down

0 comments on commit 26814fe

Please sign in to comment.