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
consttemplate='...'consttemplateName='custom'// Suggested new APICite.CSL.template.register(templateName,template)// Nothing new, will stay the sameconstdata=newCite(...)data.get({type: 'html',style: 'citation-'+templateName})
// prepends the id like this: "[$ID]: "constprepend=({id})=>`[${id}]: `// appends an altmetric widgetconstappend=({DOI})=>`<span class='altmetric-embed' data-doi='${DOI}'></span>`// Nothing new, will stay the sameconstdata=newCite(...)data.get({type: 'html',style: 'citation-'+templateName,// Suggested new API// both properties either function or constant stringappend: append,prepend: prepend})
I'm currently working on the implementation, and it will be slightly different, but not structurally (probably only method names):
consttemplate='...'consttemplateName='custom'// Suggested new APICite.CSL.register.addTemplate(templateName,template)// Nothing new, will stay the sameconstdata=newCite(...)data.get({type: 'html',style: 'citation-'+templateName})
The current way of using custom templates and locales is confusing to say the best (see #28). Expected features:
The text was updated successfully, but these errors were encountered: