Comments (13)
I'll work on it.
from citeproc-js.
I don't see citation-key
(or Citation Key
) in the note
field of any of the input items? Might be Zotero in that case?
from citeproc-js.
You're right of course. The Citation Key
ends up in id
. And, interestingly, the other data also seems to be there, but this here doesn't work quite as it should:
But:
So:
Citation Key
in the middle -> match ontype
works, butevent-date
is not there.Citation Key
on top -> match ontype
works, andevent-date
is there.
Any ideas?
Maybe @dstillman might be also interested in this.
from citeproc-js.
This might be some leftover behavior from creating alignment with BetterBibTeX? @retorquere
from citeproc-js.
I haven't been able to find anything. Not in citeproc-js, not in the Zotero sources. It's in the translators, but I don't think these are involved.
from citeproc-js.
Okay, I think I've found it. (First off, when exporting to CSL-JSON the Citation Key field is (re)moved, but this is not the case when generating CSL-JSON for citeproc-js). Zotero transforms "Citation Key" to "citation-key", but this field is not recognized as a CSL-JSON field, and the transformation is canceled (code). "Citation Key" is not a valid variable name (docs, code). Citeproc only parses the note contents up to the first line that does not contain a note field, with the exception that the first line can contain anything:
Conforming braced-entries and line-entries must occur at the top of the note field. The set of entries may begin on the first or the second line of the field: parsing stops when the parser encounters a non-empty line after the first that does not fit the descriptions above. Parsed entries are removed from the note field before onward processing.
from citeproc-js.
Depending on whether the Citation Key should be available to citeproc or not, the field should either be mapped correctly to citation-key
or removed altogether. In general, the behavior of not modifying unrecognized fields can probably lead to problems down the line.
from citeproc-js.
citation-key
is a CSL variable. It should be available to citeprocs
from citeproc-js.
Would zotero/utilities#29 work?
from citeproc-js.
I think so (and more broadly we need to add the other new variables in CSL 1.0.2 to that list)
from citeproc-js.
Thanks--I noticed that that needed to be updated a week or so ago and haven't found time to track down exactly where
from citeproc-js.
I've added them. It might also be useful to move non-CSL fields to the bottom of the field list (to avoid this confusing behavior for typos etc.) but I can imagine that that could cause other issues.
from citeproc-js.
Thanks.
from citeproc-js.
Related Issues (20)
- Localizing commas, colons, and semicolons HOT 2
- Always capitalize last word in subtitle HOT 1
- [notice] Next.js 13.3.1 fails to build citeproc (npm) 2.4.63 HOT 3
- Author names of translated books from English to Japanese are displayed in family name - given name order when the language is set to "ja"
- When the Chinese references are sorted by the hanyu pinyin of the author's name, there is a wrong alignment. HOT 1
- Why processCitationCluster silently exclude citation passed through citationPre or citationPost HOT 1
- Default rendering for contributor name in Katakana and Romanesque for a Japanese entry
- Italics aren't applied for second instance in field if "and" is present HOT 2
- "id." isn't capitalized when first word in citation sentence HOT 5
- Delimiting comma wrongly appearing outside quotation mark. HOT 3
- Suffix comma wrongly appearing outside quotation mark
- Valid URLs are having the straight apostrophes transformed into fancy/curly quotes
- TypeError: Cannot read properties of undefined (reading 'strings') HOT 3
- Text in edition field
- first-reference-note-number should consider containers
- Inappropriate hyphen conversion in `number` HOT 6
- Support proper ranking for polyphonic (Chinese) characters
- Quotes in URL field are not escaped and produce invalid HTML output HOT 2
- Bibliography `entry-spacing` attribute not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citeproc-js.