c384fef867
This adds an explicit function on ZoteroPane and the item tree for getting objects -- including collections and searches in the trash -- and limits `getSelectedItems()` to returning actual items from the selection. We shim various item properties on the collections and searches in the trash, but code that's getting the selection should be explicit about what it wants. Outside of the trash, they're equivalent, except `getSelectedObjects()` does have an `asIDs` mode. This switches to using getSelectedObjects() in various places and fixes collections in the trash appearing as belonging to My Publications when using the collections-containing-an-item highlight [1]. This also adds support for highlighting the parent collections of collections in the trash. [1] https://forums.zotero.org/discussion/115449/zotero-7-beta-deleted-collection-appears-as-belonging-to-my-publications |
||
---|---|---|
.. | ||
scaffold | ||
zotero | ||
zotero-platform |