{"action":"created","issue":{"url":"https://api.github.com/repos/zotero/zotero/issues/846","labels_url":"https://api.github.com/repos/zotero/zotero/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/zotero/zotero/issues/846/comments","events_url":"https://api.github.com/repos/zotero/zotero/issues/846/events","html_url":"https://github.com/zotero/zotero/issues/846","id":107460301,"number":846,"title":"Support additional CSL fields in Extra field","user":{"login":"aurimasv","id":1381759,"avatar_url":"https://avatars.githubusercontent.com/u/1381759?v=3","gravatar_id":"","url":"https://api.github.com/users/aurimasv","html_url":"https://github.com/aurimasv","followers_url":"https://api.github.com/users/aurimasv/followers","following_url":"https://api.github.com/users/aurimasv/following{/other_user}","gists_url":"https://api.github.com/users/aurimasv/gists{/gist_id}","starred_url":"https://api.github.com/users/aurimasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurimasv/subscriptions","organizations_url":"https://api.github.com/users/aurimasv/orgs","repos_url":"https://api.github.com/users/aurimasv/repos","events_url":"https://api.github.com/users/aurimasv/events{/privacy}","received_events_url":"https://api.github.com/users/aurimasv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-21T07:49:09Z","updated_at":"2015-09-21T20:20:11Z","closed_at":null,"body":"This means that we need to parse the Extra field.\r\n\r\n@dstillman has mentioned that he would want to support `CSL label: value` format. @fbennett supports the `{:label:value}` (@fbennett, does this have to be on a separate line?) format in citeproc-js. While I know @dstillman doesn't like the latter too much, I think it would make sense to support it (but not encourage it going forward), since we probably have a decent number of people using it already.\r\n\r\nI have a few questions remaining:\r\n* Do we ignore case when parsing the label? (I think yes)\r\n* What do we do if the Extra field refers to a field that is officially supported by Zotero (e.g. `title`)? My take on it is that we fill it in only if it is empty. Otherwise we do not overwrite.\r\n* Do we remove the recognized `CSL label: value` entries from the Extra field value (which is then exported as `note`)? (I think so)\r\n* Is the space after colon mandatory? (I want to say yes, but I think users are not attentive enough to a point where that may cause confusion)\r\n* What do we do if a unique field repeats? (i.e. title) Take first? Take last? If we remove recognized values, do we remove all, or only the one we are using? Some fields may be expected to repeat, e.g. \"scriptwriter\"\r\n* What format do we support for creators? `Last Name, First Name`?\r\n* What format do we support for dates? Could we jump on board supporting [EDTF level 0](http://www.loc.gov/standards/datetime/pre-submission.html#level0)? (maybe level 1 later on?)"},"comment":{"url":"https://api.github.com/repos/zotero/zotero/issues/comments/142097676","html_url":"https://github.com/zotero/zotero/issues/846#issuecomment-142097676","issue_url":"https://api.github.com/repos/zotero/zotero/issues/846","id":142097676,"user":{"login":"aurimasv","id":1381759,"avatar_url":"https://avatars.githubusercontent.com/u/1381759?v=3","gravatar_id":"","url":"https://api.github.com/users/aurimasv","html_url":"https://github.com/aurimasv","followers_url":"https://api.github.com/users/aurimasv/followers","following_url":"https://api.github.com/users/aurimasv/following{/other_user}","gists_url":"https://api.github.com/users/aurimasv/gists{/gist_id}","starred_url":"https://api.github.com/users/aurimasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurimasv/subscriptions","organizations_url":"https://api.github.com/users/aurimasv/orgs","repos_url":"https://api.github.com/users/aurimasv/repos","events_url":"https://api.github.com/users/aurimasv/events{/privacy}","received_events_url":"https://api.github.com/users/aurimasv/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T20:20:11Z","updated_at":"2015-09-21T20:20:11Z","body":">Also, the other format was a citeproc-js recommendation, and that will continue to work, right? So we're just not enhancing its support in Zotero\r\n\r\nYes, though my intention was to be able to export these values to CSL JSON, but it's not a huge deal.\r\n\r\n>Beyond that, why would there ever need to be support for things like title or creator in Extra\r\n\r\nTitle was just a simple example, but there may be fields that are supported for one item type, but not another, so switching item types would, potentially, make some Extra field entries redundant with supported fields.\r\n\r\nAs for creator, we do not currently support several creator types (scriptwriter being one of them) and, I suspect, we will not be adding support for all CSL fields either. I don't see a reason why we should limit the users by not supporting all CSL fields."}}