Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (cData.itemtype != null) {
let itemtype = cData.itemtype
if (cData.itemtype == "article") {
itemtype = "article-journal"
}
json.type = itemtype
}
if (cData.volume != null) {
json.volume = cData.volume
}
return Cite.parse.csl([json])
}
default:return;break;
}
});
}