{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/103","labels_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/103/comments","events_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/103/events","html_url":"https://github.com/jgm/pandoc-citeproc/issues/103","id":55958936,"number":103,"title":"citing a bibliographic entry that has two years (e.g., Laplace 1814/1995)","user":{"login":"scaramouche1","id":10143728,"avatar_url":"https://avatars.githubusercontent.com/u/10143728?v=3","gravatar_id":"","url":"https://api.github.com/users/scaramouche1","html_url":"https://github.com/scaramouche1","followers_url":"https://api.github.com/users/scaramouche1/followers","following_url":"https://api.github.com/users/scaramouche1/following{/other_user}","gists_url":"https://api.github.com/users/scaramouche1/gists{/gist_id}","starred_url":"https://api.github.com/users/scaramouche1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scaramouche1/subscriptions","organizations_url":"https://api.github.com/users/scaramouche1/orgs","repos_url":"https://api.github.com/users/scaramouche1/repos","events_url":"https://api.github.com/users/scaramouche1/events{/privacy}","received_events_url":"https://api.github.com/users/scaramouche1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-29T21:24:36Z","updated_at":"2015-01-30T21:46:10Z","closed_at":null,"body":"When citing an old book it is customary to display two years: the year the book was originally written and the year of the actual re-edition being cited.\r\n\r\nFor instance, the following bibtex entry\r\n\r\n    @BOOK{Lapl1814,\r\n      title =        {Philosophical Essay on Probabilities},\r\n      publisher =    {Springer-Verlag},\r\n      year =         {1814/1995},\r\n      author =       {Laplace, P. S.},\r\n      address =      {New York}\r\n    }\r\n\r\nwould be cited as \"Laplace (1814/1995).\"  LaTeX (both Natbib and Biblatex) deal with this convention.  Pandoc currently cites this as \"Laplace (1995).\"  Is there a simple way to solve this?\r\n    "},"comment":{"url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/comments/72275749","html_url":"https://github.com/jgm/pandoc-citeproc/issues/103#issuecomment-72275749","issue_url":"https://api.github.com/repos/jgm/pandoc-citeproc/issues/103","id":72275749,"user":{"login":"nickbart1980","id":2765811,"avatar_url":"https://avatars.githubusercontent.com/u/2765811?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbart1980","html_url":"https://github.com/nickbart1980","followers_url":"https://api.github.com/users/nickbart1980/followers","following_url":"https://api.github.com/users/nickbart1980/following{/other_user}","gists_url":"https://api.github.com/users/nickbart1980/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbart1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbart1980/subscriptions","organizations_url":"https://api.github.com/users/nickbart1980/orgs","repos_url":"https://api.github.com/users/nickbart1980/repos","events_url":"https://api.github.com/users/nickbart1980/events{/privacy}","received_events_url":"https://api.github.com/users/nickbart1980/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T21:46:10Z","updated_at":"2015-01-30T21:46:10Z","body":"Yes, there is a way to render an “original” date along with a “date” with CSL – or rather two: one I *cannot* recommend, though it would work (well, sort of, but only for the particular format the OP asked for) once a small pandoc-citeproc bug were fixed, and one I *can* recommend (using the biblatex `origdate` field), though this requires having most existing CSL style files fixed, i.e., all those that cannot handle the CSL variable `original-date` yet.\r\n\r\nThis bibfile, as in the OP, named issue103.bib:\r\n\r\n```\r\n@BOOK{Lapl1814,\r\n  title =        {Philosophical Essay on Probabilities},\r\n  publisher =    {Springer-Verlag},\r\n  year =         {1814/1995},\r\n  author =       {Laplace, P. S.},\r\n  address =      {New York}\r\n}\r\n```\r\n\r\n… converted to CSL YAML:\r\n\r\n```\r\n$ pandoc-citeproc -y issue103.bib \r\n---\r\nreferences:\r\n- publisher-place: New York\r\n  author:\r\n  - family: Laplace\r\n    given: P. S.\r\n  id: Lapl1814\r\n  issued:\r\n    literal: 1814/1995\r\n  title: Philosophical essay on probabilities\r\n  type: book\r\n  publisher: Springer-Verlag\r\n...\r\n```\r\n\r\n… contains `literal: 1814/1995`, which is ok since `issue103.bib` contains a year rather than a date field, and everything in a bibtex/biblatex year field that is *not* a number, i.e., a string consisting of digits only, should be mapped to CSL `issued: literal:` So far, so good.\r\n\r\nNow, pandoc-citeproc seems to remove one part of the literal string (`1814/`) along the way:\r\n\r\n```\r\n$ echo @Lapl1814 | pandoc -F pandoc-citeproc --bibliography issue103.bib -t markdown-citations\r\nLaplace (1995)\r\n\r\n<div class=\"references\">\r\n\r\nLaplace, P. S. 1995. *Philosophical Essay on Probabilities*. New York:\r\nSpringer-Verlag.\r\n\r\n</div>\r\n```\r\n\r\n… though I don’t see why anything in a `literal:` element shouldn’t be rendered strictly as-is, e.g.:\r\n\r\n```\r\nLaplace, P. S. 1814/1995. *Philosophical Essay on Probabilities*. New York:\r\nSpringer-Verlag.\r\n```\r\n\r\n… so this seems to be a pandoc-citeproc bug.\r\n\r\nInterestingly, other strings, e.g., `literal: 13th century` (from the example in <http://gsl-nagoya-u.net/http/pub/citeproc-doc.html#dates>) is rendered correctly by pandoc-citeproc.\r\n\r\nNote that this does not (and should not!) work this way with the biblatex `date` field. From the biblatex manual:\r\n\r\n> The date fields date, origdate, eventdate, and urldate require a date specification in yyyy-mm-dd format. Date ranges are given as yyyy-mm-dd/ yyyy-mm-dd. Partial dates are valid provided that date components are omitted at the end only. You may specify an open ended date range by giving the range separator and omitting the end date (e. g., yyyy/).\r\n\r\nHence, `pandoc-citeproc -y` converts biblatex `date = {1814/1995},` to CSL YAML\r\n\r\n```\r\n  issued:\r\n    date-parts:\r\n    - - 1814\r\n    - - 1995\r\n```\r\n\r\n… which is absolutely correct.\r\n\r\nThis means one can use the biblatex `year` field for a few things that are not possible when using the `date` field which is limited to the constructs listed in the quote above.\r\n\r\nThe biblatex-chicago manual notices this as well:  \r\n\r\n> [Sometimes] the month and year fields may be more convenient. The latter may be particularly useful in some entries because it can hold more than just numerical data, in contrast to date itself.\r\n\r\nStill, while it should be possible to use *any* string in a bibtex/biblatex `year` field when this pandoc-citeproc bug is fixed, I *cannot* recommend this since different style guides call for different formatting of “original date” and “date” combinations:\r\n\r\nThe Chicago Manual, e.g., wants \"(Darwin [1859] 1964)\" in-text, and “Darwin, Charles. (1859) 1964. *On the Origin of Species*. […]” in the reference list.\r\n\r\nHence, the recommendable way of doing this is to use the biblatex `origdate` field:\r\n\r\n```\r\n@BOOK{Lapl1814,\r\n  title =        {Philosophical Essay on Probabilities},\r\n  publisher =    {Springer-Verlag},\r\n  date =         {1995},\r\n  origdate =     {1814},\r\n  author =       {Laplace, P. S.},\r\n  address =      {New York}\r\n}\r\n```\r\n\r\nwhere pandoc-citeproc correctly maps biblatex `origdate` to CSL `original-date`. \r\n\r\nUnfortunately, most CSL style files still cannot deal with the CSL variable `original-date` (though it's been around for a long time, and can actually be used by Zotero using the hack described in <http://forums.zotero.org/discussion/3673/2/original-date-of-publication/>, p. 2).\r\n\r\n@scaramouche1: I would recommend you to report this at <http://forums.zotero.org/11/> as a bug in the style file(s) you would like to use and ask politely but firmly for this to be fixed.\r\n\r\n@jgm: As per above, it would be good if pandoc-citeproc rendered *anything* in a CSL `literal:` element strictly as-is. In addition, I’d like to repeat this request: To allow pandoc users to access CSL \"original-date\" (and other CSL variables for which no Zotero fields exist yet) when using Zotero and zotxt, it would be nice if \r\npandoc-citeproc could extract CSL variables embedded in the CSL `note` variable, as requested in <http://github.com/jgm/pandoc-citeproc/issues/94>."}}