Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve date parsing #2731

Merged
merged 19 commits into from
Apr 17, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/logic/msbib/BibTeXConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static BibEntry convert(MSBibEntry entry) {
}
if (entry.month != null) {
Optional<Month> month = Month.parse(entry.month);
month.ifPresent(parsedMonth -> fieldValues.put(FieldName.MONTH, parsedMonth.getBibtexFormat()));
month.ifPresent(parsedMonth -> fieldValues.put(FieldName.MONTH, parsedMonth.getTwoDigitNumber()));
}
if (entry.number != null) {
fieldValues.put(FieldName.NUMBER, entry.number);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ @Article{Orlowski;2011
title = {Application of Ontology In the ITIL Domain},
journal = {Information Systems Architecture and Technology: Service Oriented Networked Systems},
year = {2011},
month = {mar},
month = {03},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't month = mar the correct format for BibTex?!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only, because many styles define the string mar. At least this is what I read from the discussion at https://tex.stackexchange.com/q/70455/9075.

volume = {5},
issue = {3},
pages = {99--108},
Expand Down