question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flipping "citation" to "bibliography" in get.js might be unclear

See original GitHub issue

Hi @larsgw This may be more of a feature request than an issue. Plus, a question that I’m not sure where else to ask.

I notice that you detect styles preceded with “citation-” and map this to “bibliography” in the citation-js code:

https://github.com/larsgw/citation.js/blob/master/src/Cite/get.js#L52

This is confusing, since CSL styles use both <citation> and <bibliography> sections. For example: https://github.com/citation-style-language/styles/blob/master/harvard-imperial-college-london.csl

I was hunting through the code trying to work out how to use citation.js to produce inline citations, and this threw me off track. I’m happy using it to produce a whole bibliography, but how can it produce a citation like this in the text of an article:

… as recommended by Wallace, Grommit, Tottington et al (2005).

CSL stylesheets provide the formatting instructions, but I’m unclear how to achieve this with citation-js. If this isn’t implement, is there a way I can query a Cite object and pull the relevant stylesheet information from it?

Many thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
austinjpcommented, May 24, 2018

Excellent, many thanks @larsgw – I’ll have a look at this in a few days’ time. Really appreciate the pointers and explanation.

1reaction
larsgwcommented, Jul 22, 2018

citation support is available in v0.4.0-7 and later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Common Citation Mistakes (and How to Ensure You Avoid ...
When crafting a bibliography, there are some common citation mistakes many unfortunately make. Check out these errors to ensure you don't make the...
Read more >
Is JavaScript a pass-by-reference or pass-by-value language?
There's no way to get a reference to an integer, nor prevent passing a reference to a tuple. This ... Is just going...
Read more >
Is the open access citation advantage real? A systematic ...
We conducted a systematic review to compare studies of citations to OA and non-OA articles. Methods A systematic search of 17 databases ...
Read more >
Referencing: In-Text Citations - LibGuides
In-text citations will look the same, regardless of whether you're referencing a journal article, a report, or a video. For a brief (4-minute) ......
Read more >
Dextrocardia : MedlinePlus Medical Encyclopedia
Dextrocardia is a condition in which the heart is pointed toward the right side of the chest. Normally, the heart points toward the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found