mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
- 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 |
||
|---|---|---|
| .. | ||
| components | ||
| content | ||
| resource | ||
| tests | ||
| chrome.manifest | ||
| runtests.sh | ||