Skip to content

Commit 77c25ca

Browse files
committed
fix jabref format of month
1 parent e3f1526 commit 77c25ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/jabref/logic/importer/fileformat/MedlineImporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ private void addPubDate(Map<Field, String> fields, PubDate pubDate) {
607607
if (pubDate.getMonth() != null) {
608608
Optional<Month> month = Month.parse(pubDate.getMonth());
609609
if (month.isPresent()) {
610-
fields.put(StandardField.MONTH, month.get().getShortName());
610+
fields.put(StandardField.MONTH, month.get().getJabRefFormat());
611611
}
612612
} else if (pubDate.getSeason() != null) {
613613
fields.put(new UnknownField("season"), pubDate.getSeason());

src/main/java/org/jabref/model/entry/Month.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public String getShortName() {
175175
* @return Month in JabRef format
176176
*/
177177
public String getJabRefFormat() {
178-
return String.format("#%s#", shortName);
178+
return String.format("%s", shortName);
179179
}
180180

181181
/**

0 commit comments

Comments
 (0)