[Item/Text] BetterNotes templates do not function #1014
-
Descriptionmac上使用betternotes,从文件-插入模板到工作区笔记,插入使用过的模板,但出现 从剪贴板导入新模板,右下角显示invalid. 重装better notes、更新版本后结果还是一样。 突然出现这个情况,之前用时正常的;中间没有作任何改变。 ScreenshotsTest on Zotero version6.0.37 Test on Better Notes version1.0.4 Template TypeItem Template Share Codename: "[Item] conclude article with metadata 论文阅读并包含元数据"
content: |-
// @author Kingw413
// @link [PUBLISH PAGE URL](https://github.com/windingwind/zotero-better-notes/discussions/598)
<h1 style="text-align: center">${topItem.getField('title')}</h1>
<hr/>
<h2 style="color: #1B5E20; background-color:#F1F8E9;">💡 Meta Data</h2>
<table>
<tr>
<th style="background-color:#dbeedd;">
<p style="text-align: left;">Title </p>
</th>
<td style="background-color:#dbeedd;">
${topItem.getField('title')}
</td>
</tr>
<tr>
<th style="background-color:#f3faf4;">
<p style="text-align: left">Journal </p>
</th>
<td style="background-color:#f3faf4;">
${topItem.getField('publicationTitle')}
</td>
</tr>
<tr>
<th style="background-color:#dbeedd;">
<p style="text-align: left">Authors </p>
</th>
<td style="background-color:#dbeedd;">
${topItem.getCreators().map((v)=>v.firstName+" "+v.lastName).join("; ")}
</td>
</tr>
<tr>
<th style="background-color:#f3faf4;">
<p style="text-align: left">Pub. date </p>
</th>
<td style="background-color:#f3faf4;">
${topItem.getField('date')}
</td>
</tr>
<tr>
<th style="background-color:#dbeedd;"
<!-- 期刊标签 -->
<p style="text-align: left">期刊标签</p>
</th>
<td style="background-color:#dbeedd;">
${(() => {let space = " ㅤㅤ ㅤㅤ"
return Array.prototype.map.call(Zotero.ZoteroStyle.data.ztoolkit.ItemTree.globalCache.renderCellHooks.PublicationTags(
0,
Zotero.ZoteroStyle.data.ztoolkit.ItemTree.fieldHooks.globalCache.getFieldHooks.PublicationTags(
"", true, true,
topItem, undefined)
).childNodes,
e => {
e.innerText = space + space + e.innerText + space + space;
return e.outerHTML
}).join(space)
})()
}
</td>
</tr>
<tr>
<th style="background-color:#f3faf4;">
<p style="text-align: left">DOI </p>
</th>
<td style="background-color:#f3faf4;">
<a href="https://doi.org/${topItem.getField('DOI')}">${topItem.getField('DOI')}</a>
</td>
</tr>
<tr>
<th style="background-color:#dbeedd;">
<p style="text-align: left">附件</p>
</th>
<td style="background-color:#dbeedd;">
<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>
</table>
</table>
</span></h1>\n <h2 style="color: #E65100; background-color: #FFF8E1;">📜 研究背景 & 基础 & 目的</h2>
<hr/>
<p></p>
</span></h1>\n <h2 style="color:#2E7D32; background-color: #F1F8E9;">📊 研究内容</h2>
<hr/>
<p></p>
</span></h1>\n <h2 style="color:#4A148C; background-color: #F5F5F5;">🚩 研究结论</h2>
<hr/>
<p></p>
</span></h1>\n <h2 style="color: #006064; background-color: #E0F7FA;">📌 感想 & 疑问</h2>
<hr/>
<p></p>
</span></h1>\n <h2 style="color:#1565C0; background-color: #E1F5FE;">🔬 理论推导</h2>
<hr/>
<p></p> Anything elseNo response |
Beta Was this translation helpful? Give feedback.
Answered by
windingwind
Jun 28, 2024
Replies: 1 comment 1 reply
-
笔记模板依赖第三方插件(ZoteroStyle),与本插件无关,请询模板提供者/第三方插件作者。另请善用搜索,我记得有其他人的相关回复 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AubreyHou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
笔记模板依赖第三方插件(ZoteroStyle),与本插件无关,请询模板提供者/第三方插件作者。另请善用搜索,我记得有其他人的相关回复