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.

Year missing from output

See original GitHub issue

Hi there. Is there a bug which prevents the year being included in output when rendering bibtex to HTML under node?

I notice the year is missing from the output on the demo page.

I’ve tried several chunks of bibtex and several CSL styles, all to no avail.

Here’s a demo:

test.js:

var Cite = require("citation-js");

var bibtex =
'@article{id, ' +
'  author={Happy Larry},' +
'  date={2017-01-01},' +
'  title="A Lovely Title"' +
'}';

var opts = {
    type: 'html',
    style: 'citation-vancouver',
}

var data = new Cite(bibtex, opts);

var g = data.get();

console.log(g);

Output:

$ node ./test.js
<div class="csl-bib-body">
  <div data-csl-entry-id="id" class="csl-entry">
    <div class="csl-left-margin">1. </div><div class="csl-right-inline">Larry H. A Lovely Title.</div>
  </div>
</div>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Dan-Xcommented, Apr 9, 2021

@larsgw very clear! Thanks a lot! My bad I didn’t notice the new ‘issued’ field. now all problems solved

1reaction
austinjpcommented, Jul 27, 2017

Thanks @larsgw , really appreciate this; n.d. is indeed “no date”, any other similar placeholder might be inserted by the CSL.

Comments in my code are absolutely no reflection on citation-js, only a reflection of the kind of day I was having at the time 😉

Very pleased to have found citation-js, it will make writing lengthy essays far easier.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Up-To-Date check claims missing build output since VS 2019
Try: Clean the solution,close the solution and VS; Delete the .suo file(or .vs folder) and bin and obj folders; Open VS2019, re-ref the...
Read more >
How to fill in some missing years in my data set
What I want to do is to fill in the missing in between years for each ID. For example, A has no missing...
Read more >
Year Scale, Output Variables (HBV) and File missing message
The Year scale when tranforming a PG-bin file date/time to year for some plotting is fixed. 2) A misleading message about missing PG-files ......
Read more >
Regression Output - Finding Missing Values (Excel) - YouTube
This video shows how to find missing values in Multiple Regression output from Excel.00:00 Completing the ANOVA Table02:10 Regression ...
Read more >
Data is missing in output file Tableau Prep
Problem: As said, the problem was that we saw some data in the output step, but wasn't there when we created an output...
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