zotero/chrome/content
Dan Stillman c384fef867 Add getSelectedObjects() and limit getSelectedItems() to items
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
2024-06-23 05:09:31 -04:00
..
scaffold Scaffold: Manage blank lines before test cases automatically 2024-05-15 12:42:00 -04:00
zotero Add getSelectedObjects() and limit getSelectedItems() to items 2024-06-23 05:09:31 -04:00
zotero-platform fx115: Citation dialog fixes (#3889) 2024-04-05 12:07:24 +03:00