Upgrade to Zotero 7/8 with new citation sources and custom column - #47
Open
craighit wants to merge 2 commits into
Open
Upgrade to Zotero 7/8 with new citation sources and custom column#47craighit wants to merge 2 commits into
craighit wants to merge 2 commits into
Conversation
- Migrate from XUL overlay to bootstrap.js plugin architecture - Replace install.rdf with manifest.json (Zotero 7/8 format) - Replace XUL preference window with native Services.prompt dialog - Dynamic UI injection via Zotero.ItemTreeManager and createXULElement - Add OpenAlex data source (free, no API key needed) - Add Google Scholar data source via SerpAPI (requires free API key) - Add custom 'Citations' column in items list (sortable, shows only numbers) - Simplify Extra field format to 'Citations: N' (clean, compact) - Add Windows PowerShell build script (bin/build.ps1) - Replace update.rdf with update.json - Remove deprecated XUL overlays, chrome.manifest, DTD locale files
- Remove local Windows paths from README build instructions - Add proper build instructions for both Linux/macOS (sh) and Windows (PowerShell) - Update README with new data sources, custom column docs, and setup guide - Update manifest.json description to include new data sources - Add *.xht, .DS_Store, Thumbs.db to .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
! Caution : All modifications are made by Cursor, may not be tested thoroughly
Summary
This PR upgrades the plugin from Zotero 6.x to Zotero 7/8, migrating the entire plugin architecture and adding new citation data sources.
Breaking Changes
6.999(i.e., Zotero 7+).Architecture Migration (Zotero 6 → 7/8)
install.rdfwithmanifest.json(WebExtension-style metadata)update.rdfwithupdate.jsonchrome.manifestand all XUL overlay files (overlay.xul,options.xul)defaults/preferences/prefs.js(prefs now managed viaZotero.PrefsAPI)bootstrap.jsas the plugin lifecycle entry point (startup,shutdown,install,uninstall)preferences.xhtml) and a native prompt fallbackNew Features
New Citation Data Sources
Custom "Citations" Column
Zotero.ItemTreeManager.registerColumns()Simplified Extra Field Format
Citations: N(e.g.,Citations: 22) instead of the verbose22 citations (Source) [2026-02-27]formatPreferences Dialog
Windows Build Support
bin/build.ps1PowerShell build script using .NETSystem.IO.Compression.ZipArchiveto ensure correct forward-slash paths in.xpifiles (critical for Zotero'sjar:URI loader)Files Changed
manifest.jsoninstall.rdf)bootstrap.jsupdate.jsonupdate.rdf)chrome/content/preferences.xhtmlbin/build.ps1chrome/content/scripts/zoterocitationcounts.jsbin/build.shREADME.md.gitignoreinstall.rdf,update.rdf,chrome.manifestchrome/content/overlay.xul,options.xulchrome/locale/en-US/*defaults/preferences/prefs.jsTesting
build.sh(Linux/macOS) andbuild.ps1(Windows) produce valid.xpifilesScreenshots