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
If the author.family starts with de and the item appears twice, citeproc is stuck in an infinite loop. Only seems to happen with modern-language-association.csl. Example code given below:
var fs = require('fs');
var CSL = require('citeproc');
If the
author.family
starts withde
and the item appears twice, citeproc is stuck in an infinite loop. Only seems to happen withmodern-language-association.csl
. Example code given below:var fs = require('fs');
var CSL = require('citeproc');
const items = {
A: {
type: 'article-journal',
id: 'A',
title: 'Non-cooperative Games',
author: [
{
given: 'John',
family: 'de Nash',
},
],
'container-title': 'Annals of Mathematics',
issued: {
'date-parts': [['1951']],
},
volume: '54',
issue: '2',
page: '286-295',
},
B: {
type: 'article-journal',
id: 'B',
title: 'Non-cooperative Games',
author: [
{
given: 'John',
family: 'de Nash',
},
],
'container-title': 'Annals of Mathematics',
issued: {
'date-parts': [['1951']],
},
volume: '54',
issue: '2',
page: '286-295',
},
};
const sys = {
retrieveLocale: () => {
return fs.readFileSync('./locales-en-US.xml', 'utf8');
},
retrieveItem: (id) => {
return items[id];
},
};
var style = fs.readFileSync('./modern-language-association.csl', 'utf8');
var engine = new CSL.Engine(sys, style, 'en-US', true);
engine.updateItems(['A', 'B']);
var bib = engine.makeBibliography();
console.log(bib);
The text was updated successfully, but these errors were encountered: