Open ailintom opened 10 months ago
@ailintom Cool idea! Regarding the changes to the client side tree: for things like this it should only require adding to the tree as it is as it was designed to be annotated with additional metadata.
However, filtering (at least in my collection) by keyword in the tree (search box top left) is already painfully slow. Filtering by tag would require set operations across the entire collection for every paper in every collection. For this reason, I really doubt it would be performant to do this in the client.
However, filtering on the site creation side would be more feasible given an SQL join with tags more tractable (assuming these columns are indexed).
Another way to do this on the client side is to add flask and dynamically generate the tree and reload. This would solve the string search that's already there and this as well. However, that would be an even larger set of changes.
New feature: import Zotero tags from zotero.sqlite and allow filtering items by tag on the web page. A list of Tags is stored in the zotero.sqlite table
tags
and theitemTags
table is the junction table linking items to tags.I can try to implement this feature, but it surely requires huge adaptations to the structure of zotero-tree-data.js, to treeview and other key parts of zotsite