Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Zotero tags #32

Open
ailintom opened this issue Jan 2, 2024 · 1 comment
Open

Support Zotero tags #32

ailintom opened this issue Jan 2, 2024 · 1 comment

Comments

@ailintom
Copy link
Contributor

ailintom commented Jan 2, 2024

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 the itemTags 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

@ailintom ailintom changed the title Support tags Support Zotero tags Jan 2, 2024
@plandes
Copy link
Owner

plandes commented Jan 2, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants