mirror of
https://github.com/zotero/zotero.git
synced 2026-09-26 01:11:23 +00:00
Mirror of https://github.com/zotero/zotero.git
* citation dialog: interactive before io.getFields - added io.allCitedDataLoadedPromise, which is resolved when both io.fieldIndexPromise and io.citationsByItemIDPromise are resolved. Resolved io.allCitedDataLoadedPromise essentially means that calls to io.sort() and io.getItems() will be fast because all necessary data is already loaded. - citation dialog uses io.allCitedDataLoadedPromise to not await for functions relying on io.sort() and io.getItems() before the data is loaded, as it could take an arbitrary amoung of time. Speicifcally, SearchHandler._getCitedItems() and CitationDataManager.sort. As soon as allCitedDataLoadedPromise is resolved, cited items will be sorted. This means that when retrieving fields takes a long time, one can still add new items, their bubbles will just not immediately be sorted. - this replaces earlier SearchHandler.loadCitedItemsPromise, which was a special case of this handling. - added a new test ensuring that bubbles can be added even when io.allCitedDataLoadedPromise is not resolved yet - cleanup for buildCitation function to remove handling of io.citation.sortedItems, which is always empty on load before io.sort() runs - added a few Zotero.debug statements for future debugging - Uses a dummy promise if no allCitedDataLoadedPromise (e.g. to accomodate the note editor) |
||
|---|---|---|
| .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.