Jabref: IEEE preview does not display month

Created on 28 Sep 2017  路  8Comments  路  Source: JabRef/jabref

Currently, the reference are previewed in Jabref without the field month, as shown in the following:
image

However, the bib should be and is compiled correctly as follows (in which the month is displayed):
image

This is consistent as the ieee.csl fromcitationstyles.org
image

That is to say, jabref handles the field month correctly, but the preview with ieee.csl lack the display of field month.
I think this is an error and should be fixed.

Thanks guys for the great jobs.

entry-preview good first issue

Most helpful comment

I can look into this and try to fix it

All 8 comments

I can look into this and try to fix it

I looked into this some, but got stuck. If the month is a literal string "{january}", the preview prints correctly. So, I think there is a problem with how the month field is getting passed to citeproc-java. Which in turn, is maybe a problem with how the BibTeXEntry object is getting built by JabRef. But I'm really not sure if that is a bug in citeproc-java or in JabRef.

@tokkot Thanks for your analysis! Maybe you could debug through it and see where the problem lies?
I took a quick look and it seems that the conversion is done outside of JabRef in the citeproc java:
Maybe you can have a look here and an at the DateParser in detail
https://github.com/michel-kraemer/citeproc-java/blob/b60592f4e02876fc06dde233e17b8411a6703408/citeproc-java/src/main/java/de/undercouch/citeproc/bibtex/BibTeXConverter.java#L223

Coming from the linked issue:

Possibly, our data model needs to be improved. Currently had a "hack" to be able to store

month = mar

When entering mar in the entry editor, JabRef saves it to

month = {mar}

How to produce the other result? JabRef offers to enter #mar# in the entry editor. Then, the field content is saved without #. See also http://help.jabref.org/en/EntryEditor#field-consistency-checking

Is probably a similar issue as #3539, modifying the StringConverter should do the job

Guys,
I just fix both issues Month preview on IEEE style.
Also, on SourceTab.

Check my last commit here on my repository that I fork.
My suggested solution

@DevSiroukane Yeah, cool! Please open a Pull Request. Go to https://github.com/JabRef/jabref/pulls
and create a new Pull Request, on the left you select master and on the right your branch

This is now fixed in the maintable-beta branch thanks to @DevSiroukane.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ilippert picture ilippert  路  34Comments

Codeberg-AsGithubAlternative-buhtz picture Codeberg-AsGithubAlternative-buhtz  路  32Comments

wujastyk picture wujastyk  路  37Comments

JoKalliauer picture JoKalliauer  路  146Comments

mlep picture mlep  路  38Comments