inukshuk / citeproc-ruby

A Citation Style Language (CSL) Cite Processor
101 stars 22 forks source link

Makes the date renderer aware of literal dates #35

Closed fh closed 8 years ago

fh commented 8 years ago

This makes the date renderer aware of "literal" dates in a citation. It is possible to feed CiteProc with the usual date-parts array as a date e.g.: "issued": { "date-parts": [ [ 2016, 3, 27 ] ] } but you can also support a literal value like this: "issued":{ "literal": "Summer" }. The latter should be exposed as Summer in any rendered citation.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.005%) to 94.423% when pulling 23c3a4ce22e4c96e6fb5d1985a516b4925831903 on easybiblabs:t/literal-date into 9be891d3d8b141052bd08f311155ce9e53b2015d on inukshuk:master.