[Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 #598
Replies: 40 comments 101 replies
-
说明:
|
Beta Was this translation helpful? Give feedback.
-
请问使用模板时在标题前有:name: "[Item] conclude article with metadata 论文阅读并包含元数据" content: |- // @author Kingw413 // @link PUBLISH PAGE URL,如何解决。 |
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
您好 可以提供一下这个模板代码么
…------------------ 原始邮件 ------------------
发件人: "windingwind/zotero-better-notes" ***@***.***>;
发送时间: 2023年8月21日(星期一) 晚上8:52
***@***.***>;
***@***.******@***.***>;
主题: Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598)
大佬,请问下能修改代码让中文文献的期刊标签显示出来吗?按照上面的只有英文文献能显示出来。求大大回复,感谢!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
老师可以发一下么 我的网络实在是登不上GitHub
…---原始邮件---
发件人: "Haodong ***@***.***>
发送时间: 2023年8月22日(周二) 下午3:35
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598)
上面就有啊😂
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
请问这个 应该怎么弄呀 |
Beta Was this translation helpful? Give feedback.
-
把作者下面回复那段模板,替换原模板相应的部分即可
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年08月28日 18:42 |
| 收件人 | ***@***.***> |
| 抄送至 | Keqiang ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598) |
请问这个 应该怎么弄呀
TypeError: Zotero.ZoteroStyle.data.ztoolkit.ItemTree.fieldHooks.globalCache.getFieldHooks.PublicationTags is not a function
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
还没解决吗?你还没搞好的话,我等会可以给把完整版发出来
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年08月28日 19:13 |
| 收件人 | ***@***.***> |
| 抄送至 | Keqiang ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598) |
okok 我想着直接用最后不是发了一个嘛 用那个 看来还是得按照评论进行替换
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
不要用太多插件,互相之间可能不太兼容
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年08月28日 23:42 |
| 收件人 | ***@***.***> |
| 抄送至 | Keqiang ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598) |
哈哈哈 bug好多,刚刚我拿gpt写的模板有的文献可以正常,有的不行
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
而且可能是有的文献没办法抓取metadata,不一定是模板的问题
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年08月28日 23:42 |
| 收件人 | ***@***.***> |
| 抄送至 | Keqiang ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598) |
哈哈哈 bug好多,刚刚我拿gpt写的模板有的文献可以正常,有的不行
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Template [Item]论文阅读 Error: Error: getAttachments() cannot be called on attachment items 提示了一个这样的错误,请问作者有什么思路吗,不知道缺了什么 |
Beta Was this translation helpful? Give feedback.
-
可以问问Template 笔记 Error: ReferenceError: topItem is not defined 是什么故障吗 |
Beta Was this translation helpful? Give feedback.
-
我不知道,我是搞数据科学的,对于js了解几乎是零,我是问的gpt
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年08月29日 14:53 |
| 收件人 | ***@***.***> |
| 抄送至 | Keqiang ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598) |
你好,可以问问Zotero.ZoteroStyle.data.ztoolkit.ItemTree.globalCache.renderCellHooks.PublicationTags is not a function 是为什么吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
客气啦
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年08月29日 18:50 |
| 收件人 | ***@***.***> |
| 抄送至 | Keqiang ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598) |
十分感谢!对问题很有帮助,现在已经开始用啦
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
这是笔记插件本身就无法为没有元数据的条目建立条目笔记。你试试随便点开一个没有元数据,仅有pdf附件的条目,无法条目笔记的,只有有元数据条目才能有笔记,你手动建一个条目吧,然后把pdf拖进条目中。
gwjemail
***@***.***
…------------------ 原始邮件 ------------------
发件人: "windingwind/zotero-better-notes" ***@***.***>;
发送时间: 2023年9月10日(星期天) 下午2:58
***@***.***>;
***@***.******@***.***>;
主题: Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598)
你好,请问我按照操作导入模板,点击从模板添加笔记,选中笔记模板以后出现图片中这个情况,我点击另做选择,选择我要做笔记的文献,如果这个文件中没有元数据,整个模板就会消失,这种问题该怎么解决呢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
好的好的,谢谢。这种情况算是少数。如果有不需要元数据的代码应该可以更好的应对这种情况 |
Beta Was this translation helpful? Give feedback.
-
我有一些问题想请教作者,当我用了这个模板,将这个模板以markdown形式导出后,用obsidian打开,这个md文件是自带文档属性的,如图所示,请问该怎么修改文档属性这里的数据,如果可以的话,就省去编辑metadata这一栏了,整个文档也会整洁很多 |
Beta Was this translation helpful? Give feedback.
-
我是用gpt改动大佬的模板中的语法某些错误,建议你多看几个讨论中的模板,如果是形式上的改动,还算简单,不懂的用gpt解释一下,我还另开了一条讨论改了个简洁版的,如果你自己想做全新的zotero7的模板,收集新的信息,需要你了解插件和zotero中的特定函数名调用信息才行,gpt完不成,因为它不知道zotero插件中的细节。zotero6的话,好像有个插件可以生成模板吧。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2023年9月15日(周五) 晚上9:46
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598)
请问以下有没有GPT的提示词分享一下,我也想自定义模板
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Template [Item] conclude article with metadata 论文阅读并包含元数据 Error: TypeError: Zotero.ZoteroStyle is undefined |
Beta Was this translation helpful? Give feedback.
-
楼主大大,这个怎么解决:Template [Item] conclude article with metadata 论文阅读并包含元数据 Error: TypeError: Zotero.Items.get(...).filter(...)[0] is undefined |
Beta Was this translation helpful? Give feedback.
-
各位大大,在笔记标题和“title”里共显示了两次文章标题,我想把其中一个显为翻译后的中文,请问如何改写代码 |
Beta Was this translation helpful? Give feedback.
-
谢谢!
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年10月02日 20:19 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598) |
这个可参考如下关键字,顺便给大家友好提示,有了问题啥的可以在别的条目逛逛,说不定有方法,已经看过好多个重复问的。。。这样可能不会有回复或者及时回复
标题翻译:: ${topItem.getField('titleTranslation')}
摘要翻译:: ${topItem.getField('abstractTranslation')}
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
有没有人遇到这种情况,插入模板试提示:Error: TypeError: Zotero.ZoteroStyle is undefined |
Beta Was this translation helpful? Give feedback.
-
应用了这个模板之后,出现Template [Item] conclude article with metadata 论文阅读并包含元数据 Error: TypeError: Zotero.ZoteroStyle.data.ztoolkit.ItemTree.globalCache is undefined该如何解决呢?麻烦各位大佬们了🙏🙏 |
Beta Was this translation helpful? Give feedback.
-
感谢大佬的回复和建议,和gpt配合不是很好一直没找到问题的解决办法,于是向采用第二种建议,但是阅览网页中的现有模板似乎没有与这个模板相似的可以提供文章metadata数据的,请问大佬有类似的推荐吗?十分叨扰🙏
3℃
***@***.***
…------------------ 原始邮件 ------------------
发件人: "windingwind/zotero-better-notes" ***@***.***>;
发送时间: 2024年3月11日(星期一) 上午10:00
***@***.***>;
***@***.******@***.***>;
主题: Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598)
你好,我刚试了一下,问题和你相同,原因可能是style插件代码变更了,对应功能删除了。解决方法:1.可以结合gpt删除对应的代码部分修改一下;2.换一个别的正常的zotero7 模板。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
非常感谢大佬提供的代码,我在discussion中再找找看
3℃
***@***.***
…------------------ 原始邮件 ------------------
发件人: "windingwind/zotero-better-notes" ***@***.***>;
发送时间: 2024年3月11日(星期一) 下午3:41
***@***.***>;
***@***.******@***.***>;
主题: Re: [windingwind/zotero-better-notes] [Item]Read Articles with All MetaData 包含所有元数据的论文阅读模板 (Discussion #598)
discussion中,耐心找一下。
这个是我从如图找到的,并且期刊便签增加了sci标签
image.png (view on web)
# This template is specifically for importing/sharing, using better # notes 'import from clipboard': copy the content and # goto Zotero menu bar, click Edit->New Template from Clipboard. # Do not copy-paste this to better notes template editor directly. name: "[Item] 简约zotero7" content: |- <hr/> <table border="1"> <h2 style="color: #E65100; background-color: #FFF8E1;">(${topItem.getField("date")}) ${topItem.getField("title")}</h2> <tr> <td><b>期刊: <b style="color:#FF0000">${topItem.getField('publicationTitle')}</b></b>(发表日期: <b>${topItem.getField("date")}</b>)<br><b>作者:</b> ${topItem.getCreators().map((v)=>v.firstName+" "+v.lastName).join("; ")}</td> </tr> <tr> <td><b>摘要: </b><i>${topItem.getField('abstractNote')}</i></td> </tr> <tr> <td><b>期刊分区: </b> <!-- 引用了zotero style插件的标签 --> ${ ( ()=> { let tags=Zotero.ZoteroStyle.data.ztoolkit.ItemTree.fieldHooks.globalCache.getFieldHooks.PublicationTags( "", true, true, topItem, undefined); const jsonStartIndex = tags.indexOf('{'); if (jsonStartIndex !== -1) { tags= tags.slice(jsonStartIndex);} let regex = /"(sci|sciif)":"([^"]+)"/g; let matches = tags.match(regex); <!-- 条件语句:防止学位论文、会议论文找不到分区报错 --> if(tags){ const keyValuePairs = JSON.parse(tags); const colors = ["#ffe2dd", "#e8deee", "#dbeddb", "#fadec9", "#e9e8e7"]; let out = ""; <!-- 中文期刊分区,从上到下分别是:--> <!-- 北核 南核 EI 浙大分区 FMS --> <!-- 还需要其他中文分区,可以自行添加 --> <!-- 分区信息使用的是easyscholar插件,zotero style有教程 --> for (const key in keyValuePairs) { if (key === "sci") { out += `<span style="background-color: ${colors[0]}; margin-right: 20px; padding:5px">SCI ${keyValuePairs[key]}</span>`; } if (key === "sciUp") { out += `<span style="background-color: ${colors[1]}; margin-right: 20px; padding:5px">中科院 ${keyValuePairs[key]}</span>`; } if (key === "sciif") { out += `<span style="background-color: ${colors[2]}; margin-right: 20px; padding:5px">IF ${keyValuePairs[key]}</span>`; } if (key === "pku") { out += `<span style="background-color: ${colors[3]}; margin-right: 20px; padding:5px"> 北核</span>`; } if (key === "cssci") { out += `<span style="background-color: ${colors[4]}; margin-right: 20px; padding:5px"> ${keyValuePairs[key]}</span>`; } if (key === "pku") { out += `<span style="background-color: ${colors[0]}; margin-right: 20px; padding:5px">北核 ${keyValuePairs[key]}</span>`; } if (key === "cssci") { out += `<span style="background-color: ${colors[0]}; margin-right: 20px; padding:5px">${keyValuePairs[key]}</span>`; } if (key === "eii") { out += `<span style="background-color: ${colors[1]}; margin-right: 20px; padding:5px">${keyValuePairs[key]}</span>`; } if (key === "zju") { out += `<span style="background-color: ${colors[0]}; margin-right: 20px; padding:5px"> ZJU ${keyValuePairs[key]}</span>`; } if (key === "fms") { out += `<span style="background-color: ${colors[0]}; margin-right: 20px; padding:5px">FMS ${keyValuePairs[key]}</span>`; } } return out;} } )()} </td> </tr> <tr> <td><b>原文PDF链接: </b> <a href=zotero://open-pdf/0_${Zotero.Items.get(topItem.getAttachments()).filter((i) => i.isPDFAttachment())[0].key}> ${Zotero.Items.get(topItem.getAttachments()).filter((i)=> i.isPDFAttachment())[0].getFilename()} </a> </td> </tr> <tr> <td><b>笔记创建日期: </b>${new Date().toLocaleString()}</td> </tr> </table> <h3>💡创新点</h3> <blockquote>Tips: 本文提出了什么<u>新的科学问题</u>,提出了什么<u>新的研究思路</u>,或提出了什么<u>新的研究工具</u>?</blockquote> <h3>📚前言及文献综述</h3> <blockquote>Tips: 本研究的<u>必要性、紧迫性、可行性</u>是什么?作者是如何论述的?<br>作者引用了哪些该领域的<u>开创性文献</u>?</blockquote> <h3>🧩数据</h3> <h3>🔬方法</h3> <h3>📜结论</h3> <h3>🤔思考</h3> <blockquote>Tips: 本文有什么<u>优缺点</u>?你是否对某些内容产生了<u>疑问</u>?<br>你是否认为某些研究方式可以改进,<u>如何改进</u>?</blockquote>
以下是我用的,仅供参考
# This template is specifically for importing/sharing, using better # notes 'import from clipboard': copy the content and # goto Zotero menu bar, click Edit->New Template from Clipboard. # Do not copy-paste this to better notes template editor directly. name: "[Item] gwj1dataview" content: |- <!-- author:xiehui--> <h1><font size="4">${topItem.getField("title")}</font></h1> <div><strong>作者</strong>:: ${topItem.getCreators().map((v)=>v.firstName+" "+v.lastName).join("; ")}</div> <div><strong>出版年份</strong>:: ${topItem.getField('date')}</div> <div><strong>期刊</strong>:: ${topItem.getField('publicationTitle')}</div> <div><strong>期刊标签</strong>:: ${(() => { let tags = Zotero.ZoteroStyle.data.ztoolkit.ItemTree.fieldHooks.globalCache.getFieldHooks.PublicationTags( "", true, true, topItem, undefined); let out = " "; if (!tags){ out += `<span></span>`; }else{ const jsonStartIndex = tags.indexOf('{'); if (jsonStartIndex !== -1) { tags = tags.slice(jsonStartIndex); } let regex = /"(sci|sciif)":"([^"]+)"/g; let matches = tags.match(regex); const keyValuePairs = JSON.parse(tags); const colors = ["#ff6666", "#ffd400", "#5fb236", "#2ea8e5", "#a28ae5"]; for (const key in keyValuePairs) { if (key === "sci") { out += `<span style="background-color: ${colors[0]}; margin-right: 20px; padding:5px">SCI ${keyValuePairs[key]}</span>`; } if (key === "sciUp") { out += `<span style="background-color: ${colors[1]}; margin-right: 20px; padding:5px">中科院 ${keyValuePairs[key]}</span>`; } if (key === "sciif") { out += `<span style="background-color: ${colors[2]}; margin-right: 20px; padding:5px">IF ${keyValuePairs[key]}</span>`; } if (key === "pku") { out += `<span style="background-color: ${colors[3]}; margin-right: 20px; padding:5px"> 北核</span>`; } if (key === "cssci") { out += `<span style="background-color: ${colors[4]}; margin-right: 20px; padding:5px"> ${keyValuePairs[key]}</span>`; } } } return out; })()}</div> <div><strong>附件链接</strong>:: <a href="zotero://open-pdf/0_${Zotero.Items.get(topItem.getAttachments())[0].key}"> ${Zotero.Items.get(topItem.getAttachments())[0].getFilename()} </a></div> <div><strong>创新摘要</strong>:: </div> <h2 style="color: #E65100; background-color: #FFF8E1;">📜 背景</h2> <hr/> <p></p> <h2 style="color:#2E7D32; background-color: #F1F8E9;">🔬 研究内容</h2> <hr/> <p></p> <h2 style="color:#4A148C; background-color: #F5F5F5;">🚩 研究结果</h2> <hr/> <p></p> <h2 style="color: #006064; background-color: #E0F7FA;">📌 创新点</h2> <hr/> <p></p> <h2 style="color:#1565C0; background-color: #E1F5FE;">🔬 借鉴</h2> <hr/>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Template [Item] conclude article with metadata 论文阅读并包含元数据 Error: TypeError: Zotero.ZoteroStyle.data.ztoolkit.ItemTree.fieldHooks.globalCache is undefined 出现这个事什么意思呀 |
Beta Was this translation helpful? Give feedback.
-
Template [Item] conclude article with metadata 论文阅读并包含元数据 Error: TypeError: Zotero.ZoteroStyle is undefined 您好,我在zotero7.0.1版本,复制代码后显示的是这样,请问有遇到同样问题的吗。 |
Beta Was this translation helpful? Give feedback.
-
请问有没有生成条目跳转链接的模板,有时候没有附件无法生成文件跳转链接 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Type: Item
Description: This template is to conclude article with metadata 包含文章元数据以及pdf附件的论文阅读模板
Screenshots:
To import this template:
Zotero 6版本
Zotero 7版本
Edit
->New Template from Clipboard
. 进入Zotero,编辑
->从剪贴板导入新模板
Beta Was this translation helpful? Give feedback.
All reactions