mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Mirror of https://github.com/zotero/zotero.git
- replace objects with zoteroItem, citationItem, etc. as the main representation of an entry in the citation (CitationDataManager.items) with instances of a new BubbleItem class. BubbleItem has two static methods to create a new instance: BubbleItem.fromCitationItem() used to create entries from io.citation.citationItem on load, and BubbleItem.fromItem used to create entries from Zotero.Item when a new item is being added into the citation. BubbleItem.getCitationItem will return a citationItem in a format that citeproc consumes. This streamlines the flow of data, makes it easier to manage and avoids unnecessary conversions between citationItem and Zotero.Item. - This refactoring fixes the issue of added suffix/prefix sticking to an item and persisting even if the bubble is removed and re-added. Fixes: #5282 - add csl data to virtual item in io.customGetItem to remain consistent with Zotero.Integration.Citation.loadItemData. That way, csl data is always found on Zotero.Item and we don't have to check citationItems. Also: - apply deduplication to cited items, so that a cited item from the library that appears in selected or opened section does not have a duplicate entry in the cited section. - added initial test suite for citation dialog |
||
|---|---|---|
| .github/workflows | ||
| app | ||
| chrome | ||
| defaults/preferences | ||
| js-build | ||
| note-editor@a0222d8caa | ||
| pdf-worker@95358b037a | ||
| reader@939124b7bd | ||
| resource | ||
| scripts | ||
| scss | ||
| styles@40b18d8266 | ||
| test | ||
| translators@484110c925 | ||
| types/gecko | ||
| .babelrc | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| chrome.manifest | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| eslint.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| update.rdf | ||
| version | ||
Zotero
Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.
For more information on how to use this source code, see the Zotero documentation.