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.

CSL-JSON dates are wrong

See original GitHub issue

Problem

The CSL-JSON date format used in Citation.js is wrong, and therefore not picked up by citeproc-js.

Consequence

All dates are omitted in all formatted Citation.js output.

Cause

Miscommunication. When designing this version of Citation.js, a different date format was taken into account, as that was the documented format back then.

Expected solution

Solution isn’t trivial, but not really complex either. Just a lot of time making sure everything is updated. Problem expected to be fixed in v0.3.0-11.


Thanks to @austinjp for uncovering this issue in #52 and to @fbennett for helping with the citeproc-js side of things.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
larsgwcommented, Jul 14, 2018

Fixed in v0.4.0-8. Now the output is:

@article{Boonstra2016Abortion,
	journal={Guttmacher Policy Review},
	title={{Abortion in the lives of women struggling financially: why insurance coverage matters}},
	volume=19,
	author={Boonstra, Heather D.},
	pages={46–52},
	date=2016,
	year=2016,
}
1reaction
lexnat187commented, Jul 28, 2017

@larsgw that’s great news. Let me know when your done and I can test it with my implementation. Let me know if I can help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to determine if a date is uncertain? · Issue #61 - GitHub
The documentation for approximate dates says: Approximate dates test “true” for the is-uncertain-date conditional (see Choose) However when looking at the ...
Read more >
Raw dates vs date parts - CSL Development
We have both a raw date and date-parts , which are incompatible. ... This is CSL-JSON, which is a data format, and actually...
Read more >
CSL-JSON — citeproc-js 1.1.73 documentation - Read the Docs
An example date field in CSL is issued, which identifies the date an item was issued or published. Date fields can be expressed...
Read more >
DateTimes deserializing wrong: JsonConvert is returning ...
It seems to be doing this consistently; in every search I've done, all the results I've checked have had a start date of...
Read more >
Original Date of Publication - Page 5 - Zotero Forums
It's a very important matter. Not being able to put in the original publication date alongside the version is what we call ahistorical...
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