MuiseDestiny / zotero-figure

一个基于 PDFFigure2 的 PDF 图表解析插件
GNU Affero General Public License v3.0
433 stars 12 forks source link

This plugin causes comments within zotero7 to not show up #90

Closed MXS81 closed 5 days ago

MXS81 commented 3 weeks ago

Using this plugin causes in-software annotations not to be displayed in the sidebar, including the highlighted portion of the body annotations. The annotations are actually generated.

dstillman commented 5 days ago

We received another report that this plugin is causing annotations not to show up:

https://forums.zotero.org/discussion/119784/the-annotations-in-the-pdf-have-disappeared

@MuiseDestiny, could you fix this and push a new version?

MuiseDestiny commented 5 days ago

In fact, the plugin provides an option to only display the figure/table annotation, which will hide the user's annotations, and the user may forget to turn off this option. For this reason, I added the following code in latest version to automatically help the user switch to the appropriate view:

Zotero.Reader.registerEventListener("renderTextSelectionPopup", (event) => {
  const {reader} = event
  if (this.view == "Figure") {
    this.switchToView(reader, "All")
  }
})