HTTP Integration Protocol: Citation numbering not updated after bibliography edit in Google Docs mod
**Describe the bug**
When using the HTTP integration protocol (Google Docs mode), after deleting a reference
from the bibliography via addEditBibliography, the bibliography list updates correctly,
but the in-text citation numbers are not renumbered.
**To Reproduce**
1. Create a document with numbered citations (IEEE style)
2. Use addEditBibliography to delete a reference
3. The bibliography updates, but citation numbers like [1], [2], [3] are not renumbered
**Expected behavior**
Citation numbers should be renumbered after bibliography changes, as they are in
Word/LibreOffice COM integration mode.
**Technical details**
- The issue appears to be specific to HTTP integration protocol (Google Docs mode)
- In COM mode (Word), Zotero directly controls field updates
- In HTTP mode, Zotero only sends bibliography data, not citation renumbering commands
- The 'refresh' command does not trigger citation renumbering in HTTP mode
**Workaround attempted**
- Calling import() + refresh() after addEditBibliography - does not work
- Manually iterating through citation fields - does not work
This affects third-party plugins that use the HTTP integration protocol to implement
Zotero support for other word processors (e.g., WPS Office).
When using the HTTP integration protocol (Google Docs mode), after deleting a reference
from the bibliography via addEditBibliography, the bibliography list updates correctly,
but the in-text citation numbers are not renumbered.
**To Reproduce**
1. Create a document with numbered citations (IEEE style)
2. Use addEditBibliography to delete a reference
3. The bibliography updates, but citation numbers like [1], [2], [3] are not renumbered
**Expected behavior**
Citation numbers should be renumbered after bibliography changes, as they are in
Word/LibreOffice COM integration mode.
**Technical details**
- The issue appears to be specific to HTTP integration protocol (Google Docs mode)
- In COM mode (Word), Zotero directly controls field updates
- In HTTP mode, Zotero only sends bibliography data, not citation renumbering commands
- The 'refresh' command does not trigger citation renumbering in HTTP mode
**Workaround attempted**
- Calling import() + refresh() after addEditBibliography - does not work
- Manually iterating through citation fields - does not work
This affects third-party plugins that use the HTTP integration protocol to implement
Zotero support for other word processors (e.g., WPS Office).
Upgrade Storage
If you remove an item from a numbered bibliography, the item is removed, all numbering remains the same (so if the removed item is [2], the bibliography is now [1] ...[3], and all citations (including citations to that item) remain in the text. That's how edit bibliography works across all reference types (and it's why it virtually never makes sense to use it for numbered bibliographies)
More generally, this reads like an AI generated description of the issue, which is generally a bad idea: we don't know what's from the AI and what's stuff you're actually observing, the AI is wrong as often as it is correct, and the description is missing what we'd actually need to troubleshoot, in this case most importantly what you're actually trying to do.
E.g., if you want to remove [2] from the document, you'd have to remove all citations to [2]; edit bibliography does nothing.