{"action":"created","issue":{"url":"https://api.github.com/repos/brechtm/citeproc-py/issues/57","repository_url":"https://api.github.com/repos/brechtm/citeproc-py","labels_url":"https://api.github.com/repos/brechtm/citeproc-py/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/brechtm/citeproc-py/issues/57/comments","events_url":"https://api.github.com/repos/brechtm/citeproc-py/issues/57/events","html_url":"https://github.com/brechtm/citeproc-py/issues/57","id":133663913,"number":57,"title":"Non-standard bibtex field 'issue' used by bibutils","user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T09:29:35Z","updated_at":"2016-02-15T10:25:43Z","closed_at":null,"body":"The correct BibTeX field for journal issue is confusingly called `number`, and `number` is used for other output types - e.g. series number for books, etc..\r\n\r\nBefore 025424757030062e7abda68a4566ce728aa1622e , BibTeX `number` was mapped to CSL `number`, but that was corrected to map to 'issue'.\r\n\r\nWhen a record contains both an issue and a number, `bibutils` emits both.\r\nIf a record contains either an issue or a number, bibutils emits a `number`.\r\n\r\nThere is a comment explaining why in the `bibutils` source.\r\nhttps://github.com/jayvdb/bibutils-archive/blame/master/lib/bibtexout.c#L508\r\n\r\n```c\r\n/*\r\n * from Tim Hicks:\r\n * I'm no expert on bibtex, but those who know more than I on our mailing \r\n * list suggest that 'issue' isn't a recognised key for bibtex and \r\n * therefore that bibutils should be aliasing IS to number at some point in \r\n * the conversion.\r\n *\r\n * Therefore prefer outputting issue/number as number and only keep\r\n * a distinction if both issue and number are present for a particular\r\n * reference.\r\n */\r\n```\r\nstatic void\r\noutput_issue_number( FILE *fp, fields *info, int format_opts )\r\n...\r\n\r\nI suggest that citeproc-py follows suit."},"comment":{"url":"https://api.github.com/repos/brechtm/citeproc-py/issues/comments/184152545","html_url":"https://github.com/brechtm/citeproc-py/issues/57#issuecomment-184152545","issue_url":"https://api.github.com/repos/brechtm/citeproc-py/issues/57","id":184152545,"user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T10:25:43Z","updated_at":"2016-02-15T10:25:43Z","body":"No particular rush for me on this one, as I have a workaround (https://github.com/jayvdb/pubpdf/commit/6e0d9e5131d5b449f98928245ef3f1a332313040), but other uses might be surprised by the wrong number appearing for the issue."}}