How to use the citation-js.parse function in citation-js

To help you get started, we’ve selected a few citation-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seulibrary / Sorin / apps / frontend / assets / js / components / Citation / index.js View on Github external
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])
    }

citation-js

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.

MIT
Latest version published 9 days ago

Package Health Score

68 / 100
Full package analysis