You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Siedlerchr @cMadan I guess I can explain what happens and it looks like the mistake is coming from de.undercouch.citeproc.bibtex.BibTeXConverter#toItemData(org.jbibtex.BibTeXEntry). The rundown is as follows:
#6041
Closed
Siedlerchr opened this issue
Feb 28, 2020
· 0 comments
@Siedlerchr@cMadan I guess I can explain what happens and it looks like the mistake is coming from de.undercouch.citeproc.bibtex.BibTeXConverter#toItemData(org.jbibtex.BibTeXEntry). The rundown is as follows:
User clicks on an entry which is then sent to create the preview.
We create an org.jbibtex.BibTeXEntry instance from the information we have. Since we only have the journal name in one field, we create only one field inside this BibTeXEntry with key "journal` (or smth similar) and the name of the journal as value
This created instance is sent to de.undercouch.citeproc.bibtex.BibTeXConverter#toItemData(org.jbibtex.BibTeXEntry) which creates the representation that is used in the CSL formatting engine
The last step creates the following representation for a simple article entry. Please note the double entry collection-title and container-title. When you look at the .csl file you can easily spot what happens. There is a macro containter with several conditional expressions. An "article" goes to the last else branch which states
My guess is that this is really meant to contain the Journal name and the Collection name, but I'm unable to create an example where this works. I tried with an example of InCollection but I always end up with a double "BookTitle".
@Siedlerchr @cMadan I guess I can explain what happens and it looks like the mistake is coming from
de.undercouch.citeproc.bibtex.BibTeXConverter#toItemData(org.jbibtex.BibTeXEntry)
. The rundown is as follows:org.jbibtex.BibTeXEntry
instance from the information we have. Since we only have the journal name in one field, we create only one field inside thisBibTeXEntry
with key "journal` (or smth similar) and the name of the journal as valuede.undercouch.citeproc.bibtex.BibTeXConverter#toItemData(org.jbibtex.BibTeXEntry)
which creates the representation that is used in theCSL
formatting engineThe last step creates the following representation for a simple article entry. Please note the double entry
collection-title
andcontainer-title
. When you look at the.csl
file you can easily spot what happens. There is a macrocontainter
with several conditional expressions. An "article" goes to the lastelse
branch which statesMy guess is that this is really meant to contain the Journal name and the Collection name, but I'm unable to create an example where this works. I tried with an example of
InCollection
but I always end up with a double "BookTitle".Originally posted by @halirutan in #3259 (comment)
The text was updated successfully, but these errors were encountered: