Open michel-kraemer opened 4 years ago
It seems that this.item_id
is always undefined for other formats including html
. I replace it with this.system_id
and it works.
I also see that this.item_id
is always undefined, even when state.sys.embedBibliographyEntry
is defined
This is because item.system_id
is undefined to begin with (with standard retrieveItem
implementation) - it only gets defined in the else clause.
For that to work, retrieveItem
would need to to return system_id
in addition to CSL data and id
- and it indeed work if supplied this way! This should be documented better (together with embedBibliographyEntry
).
I'm trying to use the
latex
output format. I modified thedemo.js
file and added the following line to thegetProcessor
function:This resulted in the following error message:
It seems this function is not documented. From the source code of
formats.js
I can see that it is called with the item ID:I tried to implement it as follows:
However, it seems
id
is always undefined. I get the following output on my console:And the generated bibliography looks like this:
Is the latex output format broken or am I missing something? Any hints would be appreciated. Thanks!