Skip to content

Commit

Permalink
Fix IEEE preview does not display month (JabRef#3239)
Browse files Browse the repository at this point in the history
Remove Superfluous Comments
JabRef#3983 (comment)
  • Loading branch information
DevSiroukane committed Apr 28, 2018
1 parent 0255d0f commit 2f022b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ private static class JabRefItemDataProvider implements ItemDataProvider {

/**
* Converts the {@link BibEntry} into {@link CSLItemData}.
*
* Clone bibEntry to make a save changes,
* Change month field from JabRefFormat <code>#mon#</> to ShortName <code>mon</code>
* because CSL does not support JabRefFormat.
*/
private static CSLItemData bibEntryToCSLItemData(BibEntry bibEntry) {

// create a copy of bibEntry
bibEntry = (BibEntry) bibEntry.clone();

String citeKey = bibEntry.getCiteKeyOptional().orElse("");
Expand All @@ -97,7 +100,6 @@ private static CSLItemData bibEntryToCSLItemData(BibEntry bibEntry) {
RemoveNewlinesFormatter removeNewlinesFormatter = new RemoveNewlinesFormatter();
for (String key : bibEntry.getFieldMap().keySet()) {
if (FieldName.MONTH.equals(key)) {
// change month field value from "#mon#" to "mon"
bibEntry.getFieldMap().put(FieldName.MONTH, bibEntry.getMonth().get().getShortName());
}

Expand Down

0 comments on commit 2f022b2

Please sign in to comment.