Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve info metadata from CSL style #193

Open
haydenyoung opened this issue Oct 31, 2019 · 1 comment
Open

Retrieve info metadata from CSL style #193

haydenyoung opened this issue Oct 31, 2019 · 1 comment
Labels
api Requests for improvement to APIs enhancement Feature requests

Comments

@haydenyoung
Copy link

According to the citation.js documentation, CSL styles can be loaded dynamically for specifying alternative bibliographies, for example those defined at https://github.com/citation-style-language/styles.

Each style has an info section, for example https://github.com/citation-style-language/styles/blob/master/apa.csl#L3. This info section has title, short title, etc.

Does citation.js provide a method for accessing this info via its api, for example,

config.templates.get("template-name").info.title

@larsgw
Copy link
Owner

larsgw commented Oct 31, 2019

Not yet, citeproc-js might but that I haven't integrated that with citation.js. You can also try csl-js, although it is unstable it may become mature enough at some point to replace citeproc-js, for me at least.

@larsgw larsgw added api Requests for improvement to APIs enhancement Feature requests labels Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Requests for improvement to APIs enhancement Feature requests
Projects
None yet
Development

No branches or pull requests

2 participants