Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Feature request: Extract CSL variables embedded in the CSL note variable #94

Closed
njbart opened this issue Dec 6, 2014 · 4 comments
Closed

Comments

@njbart
Copy link
Contributor

njbart commented Dec 6, 2014

It would be helpful if pandoc-citeproc could extract CSL variables embedded in the CSL note variable in CSL JSON databases.

Embedding CSL variables inside the CSL note variable is a technique that can be used with database managers such as Zotero when no GUI fields are available that map to desired valid CSL variables.

This would be very helpful for using variables such as original-date, status, doi (unavailable in Zotero for books, book sections, reports) etc. in pandoc-citeproc when using Zotero as a database, e.g., via zotxt.

citeproc-js, used by Zotero, has implemented this at least since 2011 (http://gsl-nagoya-u.net/http/pub/citeproc-doc.html#supplementary-fields).

The syntax for adding supplementary fields via the note variable is as follows:

{:authority:Superior Court of California}{:section:A}{:original-date:1777}

For pandoc-citeproc, I would suggest removing these constructs from the note variable after parsing it; this would allow the note variable to be used for its original purpose, too.

jgm added a commit that referenced this issue Mar 8, 2015
This still needs to be filled in with a parser.  See #94.
@njbart
Copy link
Contributor Author

njbart commented Apr 6, 2015

Just noticed that ‘Preliminary steps towards parsing supplementary fields in "note"’ has been patching Bibtex.hs. But unless I'm mistaken, Bibtex.hs is parsing only bibtex and biblatex databases, right?
So, to avoid misunderstandings, my request is about the CSL "note" variable in CSL JSON databases, to be able to use, e.g., data from Zotero via zotxt.
I wouldn't think it makes sense to support supplementary CSL fields in bibtex/biblatex database "note" fields: First, practically all CSL variables in question here have working biblatex counterparts anyway; and second, much too confusing.

jgm added a commit that referenced this issue May 5, 2015
…te"."

This reverts commit 1cf1c56.

See #94.  This commit was a mistake; the feature, if implemented,
is for CSL databases, not bibtex/biblatex.
@adunning
Copy link
Contributor

There's more documentation on this on the Zotero forums. Implementing this would save a huge amount of time, since I'm running into an increasing number of chapters with DOIs, and Chicago wants them to be cited, while proper Zotero support for this seems no closer than it was when this issue was first reported in 2009.

@adunning
Copy link
Contributor

There's now a workaround for this: the Better BibTeX plugin for Zotero has a 'Pandoc JSON' format as of version 1.1, and will parse the note field in the manner requested by @nickbart1980 (cf. retorquere/zotero-better-bibtex#260). Given this, is it still necessary to implement this in pandoc-citeproc?

@njbart
Copy link
Contributor Author

njbart commented Jul 24, 2015

Yes it is, since not everyone uses Better BibTeX.

pandoc-citeproc needs this for proper parsing whenever a CSL JSON database exported by Zotero is used, e.g., with zotxt.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants