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

[Bug] 学位论文的语言、地点在添加条目时不自动更新;学位论文的语言更新有误;国防科大的地点无法更新 #189

Closed
1 task done
Phoebe-test opened this issue May 25, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@Phoebe-test
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

  • OS: Windows 10 22H2 家庭中文版
  • Zotero Version: 7.0.0-beta.81+721f54fe4 (64-bit)
  • Addon Version: 1.16.10

Describe the bug

  1. 学位论文的语言地点在添加条目时不自动更新
  • 如图所示:
    PixPin_2024-05-26_06-16-10
  1. 右键手动**“Lint并修复”**后,语言变更有误
  • 如图所示:
    PixPin_2024-05-26_06-19-29
  1. 右键手动**“Lint并修复”**后,国防科学技术大学地点不更新

Anything else?

No response

@Phoebe-test Phoebe-test added the bug Something isn't working label May 25, 2024
@northword
Copy link
Owner

northword commented May 26, 2024

烦请截图设置页。

image
image

@Phoebe-test
Copy link
Author

感谢大佬拨冗垂阅,有关设置如图
PixPin_2024-05-26_13-46-17

@northword
Copy link
Owner

northword commented May 26, 2024

我未能复现你所说的第一点,是否可能存在其他插件干扰的情况?

EDIT: 你是通过哪种方式添加的条目呢?(Zotero Connector 还是由茉莉花提供的识别呢?)

语言识别错误的请启用“限制识别语言为 简体中文,英文”;

高校地点问题将于下一版本修复。

northword added a commit that referenced this issue May 26, 2024
@Phoebe-test
Copy link
Author

您好,我在逐项排查插件后,发现是插件zotero-actions-tags中,脚本[Share] Auto-Translate the New Item's Title #107导致的,将此脚本关闭后就可以在添加条目时自动更新学位论文的语言地点了。问题并不是Zotero Connector或茉莉花导致的。

northword added a commit that referenced this issue May 26, 2024
@northword
Copy link
Owner

可能插件之间存在冲突,Zotero 官方目前没有提供有效的控制插件触发顺序的机制。

可以尝试关闭 Linter 的添加条目自动 lint,然后在 Actions 里调用 Linter:

Zotero.Linter.hooks.onLintInBatch("std", item)

这个接口在短时间内应该不会作显著改变。

后二者将在下一版本修复。

@northword
Copy link
Owner

🚀 This ticket has been resolved in v1.16.11. See Release 1.16.11 for release notes.

@Phoebe-test
Copy link
Author

可能插件之间存在冲突,Zotero 官方目前没有提供有效的控制插件触发顺序的机制。

可以尝试关闭 Linter 的添加条目自动 lint,然后在 Actions 里调用 Linter:

Zotero.Linter.hooks.onLintInBatch("std", item)

这个接口在短时间内应该不会作显著改变。

后二者将在下一版本修复。

您好,我在 Actions 里没能成功调用 Linter (已关闭 Linter 的添加条目自动 lint),可否麻烦您看一下这样设置是否正确:
PixPin_2024-05-27_13-39-06
数据:

Zotero.Linter.hooks.onLintInBatch("std", item)

非常感谢!

@northword
Copy link
Owner

抱歉我给错了代码,Linter 插件这个接口接收的参数是一个 Zotero.Item[],代码需要修改为:

return await Zotero.Linter.hooks.onLintInBatch("std", [item])

@Phoebe-test
Copy link
Author

抱歉我给错了代码,Linter 插件这个接口接收的参数是一个 Zotero.Item[],代码需要修改为:

return await Zotero.Linter.hooks.onLintInBatch("std", [item])

芜湖!可以解决插件之间的冲突了!为大佬献上膝盖!

@Phoebe-test
Copy link
Author

为了解决Linter与自动翻译脚本之间的冲突,我想了一种解决方案

  1. 先通过 Action & Tags 运行 Linter 调整语言字段
  2. 延时2000毫秒运行 Auto-Translate the New Item's Title翻译标题和摘要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants