Code Monkey home page Code Monkey logo

018 / zotcard Goto Github PK

View Code? Open in Web Editor NEW
504.0 504.0 26.0 33.2 MB

ZotCard is a plug-in for Zotero, which is a card note-taking enhancement tool. It provides card templates (such as concept card, character card, golden sentence card, etc., by default, you can customize other card templates), so you can write cards quickly. In addition, it helps you sort cards and standardize card formats.

License: MIT License

Shell 0.02% JavaScript 86.81% CSS 0.09% HTML 10.02% Fluent 3.05%

zotcard's People

Contributors

018 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zotcard's Issues

添加 publication 字段

你好~ 请问能不能将 zotero 条目中的 publication字段信息 添加在zotcard,类似于 {authors} 的这种。因为现有的 publisher 字段往往是出版社名字,不是期刊名字,不是很方便。谢谢

卡片类型

卡片类型可以用于筛选自定义的卡片名称吗?

所有卡片内容都显示为M87TSJEI

所有卡片内容都显示为:
M87TSJEI {"readingTime":{"page":133,"data":{"0":10,"18":120,"19":140,"20":270,"21":120,"22":10,"23":20,"35":40,"37":30,"38":10,"39":10,"123":10,"131":40}}}
image

在“读卡”窗口,添加“合并导出”,“打印”功能

希望能在读卡窗口添加以下功能:

  1. 合并导出:将筛选出的笔记合并,导出到一个HTML文件或者PDF文件。这样可以利用读卡原本的按照标签筛选按照日期筛选以及搜索功能,将某一主题的笔记进行整合到一个文件进行汇总。
  2. “打印”:作为 1 的一个补充吧。

SCI论文阅读模版

Discussed in #2

Originally posted by 018 September 2, 2021
格式如下:
【卡片名】:SCI论文阅读模版
【卡片模版示意图】:
image
image

<h1> <span>&lt;笔记标题&gt;</span></h1>\n <hr/>
</span></h1>\n <h2 style="color: #1B5E20; background-color:#F1F8E9;">💡 Meta Data
</h2> <table>     <tr>         <th style="background-color:#dbeedd;">              <p style="text-align: right">Title  </p>         </th>         <td style="background-color:#dbeedd;">           ${title}         </td>      
  </tr>         <th style="background-color:#f3faf4;">             <p style="text-align: right">Journal  </p>         </th>         <td style="background-color:#f3faf4;">             ${publicationTitle}&nbsp;<em>(${DOI})</em>       
  </td>     </tr>     <tr>         <th style="background-color:#dbeedd;">             <p style="text-align: right">Authors </p>         </th>         <td style="background-color:#dbeedd;">       ${authors}         </td>  
 </tr>         <th style="background-color:#f3faf4;">             <p style="text-align: right">Pub.date </p>         </th>         <td style="background-color:#f3faf4;">             ${date}       </td>       
 </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;">&#x1F4CA 研究内容</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/>
<h3>  <span><span style="color:  #1565C0">药品:</span></span></h3>
<h3>  <span style="color: #1565C0">表征:</span></h3>
<h3>  <span style="color: #1565C0">其他:</span></h3>

【参考/出处】:自制

zotero自带的通过注释添加条目笔记源代码求助

如果能得到zotero自带的通过注释添加条目笔记源代码的话,可以把此源代码放在zotcard里面,生成笔记卡 的时候可以直接把自己的注释自动生成在里面。这样可以用卡自动生成阅读笔记。

是否有意向与Zotero Better Notes共同开发

您好,

我是Zotero Better Notes插件作者winding。有用户向我推荐了您的插件,并希望能够与Better Notes进行集成,对Better Notes中的子笔记实现卡片展示功能。请问您是否有兴趣协助/共同开发这部分?

我注意到zotcard与Better Notes一样具有模板功能,也许可以在zotcard中引入Better Notes的模板编辑器(尽管目前还是非常粗糙的编辑器)。我也愿意协助您维护zotcard。

祝好!

Feature require: create a zotcard when creating an item or add a hotkey for creating an zotcard

I would like to express my gratitude for the generous contribution of the repo. Additionally, I am wondering if there is a more convenient way to add a Zotcard, as the current process requires navigating through a series of steps, including right-clicking, selecting Zotcard, and then choosing a special template.

Can the process of adding a Zotcard be simplified by enabling users to create a Zotcard when adding an item or by adding a hotkey for Zotcard creation?

一张简明的生物信息学文献阅读卡

<h1>##生物信息学-阅读卡 : <span>&lt;题目&gt;</span></h1>\n
</span></p><p><strong>英语生词</strong>:<span>${text ? text : ""}
</span></p><p><strong>名词解释</strong>:<span>${text ? text : ""}
</span></p><p><strong>作者信息</strong>:<span>${text ? text : ""}
</span></p><p><strong>重点知识</strong>:<span>${text ? text : ""}
</span></p><p><strong>数据信息</strong>:<span>${text ? text : ""}
</span></p><p><strong>分析软件</strong>:<span>${text ? text : ""}
</span></p><p><strong>背景</strong>:<span>${text ? text : ""}
</span></p><p><strong>方法</strong>:<span>${text ? text : ""}
</span></p><p><strong>结果</strong>:<span>${text ? text : ""}
</span></p><p><strong>意义</strong>:<span>${text ? text : ""}
</span></p><p><strong>图表</strong>:<span>${text ? text : ""}
</span></p><p><strong>评论及思考</strong>:<span>${text ? text : ""}
</span></p><p><strong>文献拓展</strong>:<span>${text ? text : ""}
</span></p><p><strong>知识标签</strong>:<span>${text ? text : ""}
</p><p><strong>日期</strong>:${today}</p> 

Zotcard:摘要卡

📕 这篇文章的标题是 - ${title}

\n

🐟 在这一年发表${year}年

🌼 它发表在了这个期刊上/影响因子为:${publicationTitle}/${callNumber}

🔢 它的DOI是:${DOI}

🐒 它的作者有:${authors}等

🍎 概要:

🐎 国内外研究状况(背景):

🌙 解决的问题:

🙋‍ 得到的结果:


论文在哪些地方有创新:

😊 给我带来了什么启发呢💡:

有什么可以改进的地方吗:


👉 研究过程:

💻 采用的数据分析方法:

Zotcard 7.0的卡片报告问题

1.Zotcard 7.0的卡片报告加载时,一直都不能加载出来,无效操作
2.在读取卡片时,卡片的高度、字体大小等格式不能固定,每次读取一次,相应的格式还要反复调试
3.希望推出"导出到word"这个功能

添加笔记不出现卡片选项,也无法预览

想请教一下,我在点击笔记旁边的“+”时,不出现卡片的选项,而且在zotcard选项里也无法预览,我安装的是最新版,之前几个版本也试了但是还是不行。谢谢你!

image
image

卡片模板配置建议

模板设置的有点多,有时候想着同一类的模板放的靠近点就好,但由于很多模板是边看文献边做出来的,导致不同类型的模板混排,或许增加模板排序的功能会更高效。谢谢阅读。

默认卡片可以修改名称吗?

大佬,您好!这个笔记卡片模板功能我很喜欢,但是有一些默认的模板我用不到,可以根据自己的需求修改,但是模板名称却不可以,可以设置成能够修改模板名称吗?
image

请求在模版中获取期刊标签影响因子的功能或方法、代码

image

`<h1><font` size="4">${(() => {
      const titleTranslation = topItem.getField("titleTranslation");
      if (titleTranslation) {
        return `(${topItem.getField("date")}) ${topItem.getField("title")} (${titleTranslation})`;
      } else {
        return `(${topItem.getField("date")}) ${topItem.getField("title")}`;
      }
    })()}
  </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 = ["#b73508", "#d47828", "#f5d44b", "#afcfa6	", "#4c6643"];
  
                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 === "xju") {
                out += `<span style="background-color: ${colors[4]}; margin-right: 20px;  padding:5px">  #${keyValuePairs[key]}</span>`;
              }
                }
  			}
                return out;
              })()}</div>
  <div><strong>标题翻译</strong>:: ${topItem.getField('titleTranslation')}</div>
  <div><strong>摘要翻译</strong>:: ${topItem.getField('abstractTranslation')}</div>
  <div><strong>doi</strong>:: ${topItem.getField('DOI')}</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:  #45aab4;">📜 背景</h2>
 <hr/>
  <p></p>
  <h2 style="color:#f9637c; ">🔬 研究内容</h2>
 <hr/>
  <p></p>
  <h2 style="color:#fbb45c;">💧 数据</h2>
 <hr/>
  <p></p>
  <h2 style="color:#4f6962; ">⚙️ 方法</h2>
 <hr/>
  <p></p>
  <h2 style="color:#fbc1ad;">🚩 研究结果</h2>
 <hr/>
  <p></p>
  <h2 style="color: #006064; ">💡 创新点</h2>
 <hr/>
  <p></p>
  <h2 style="color:#fe7966;">💭 借鉴</h2>
 <hr/>

### **【卡片名】:SCI论文模版**

【卡片名】:SCI论文模版

### 【卡片模版预览】:
image
image

【卡片模版】:

<h1> <span>&lt;笔记标题&gt;</span></h1>\n <hr/>
</span></h1>\n <h2 style="color: #1B5E20; background-color:#F1F8E9;">💡 Meta Data
</h2> <table>     <tr>         <th style="background-color:#dbeedd;">              <p style="text-align: right">Title  </p>         </th>         <td style="background-color:#dbeedd;">           ${title}         </td>      
  </tr>         <th style="background-color:#f3faf4;">             <p style="text-align: right">Journal  </p>         </th>         <td style="background-color:#f3faf4;">             ${publicationTitle}&nbsp;<em>(${DOI})</em>       
  </td>     </tr>     <tr>         <th style="background-color:#dbeedd;">             <p style="text-align: right">Authors </p>         </th>         <td style="background-color:#dbeedd;">       ${authors}         </td>  
 </tr>         <th style="background-color:#f3faf4;">             <p style="text-align: right">Pub.date </p>         </th>         <td style="background-color:#f3faf4;">             ${date}       </td>       
 </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;">&#x1F4CA 研究内容</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/>
<h3>  <span><span style="color:  #1565C0">药品:</span></span></h3>
<h3>  <span style="color: #1565C0">表征:</span></h3>
<h3>  <span style="color: #1565C0">其他:</span></h3>

Originally posted by @FemiSphere in #2 (comment)

epub文件下无法创建笔记卡片

首先十分感谢作者创建了这么优秀的zotero插件!!!
更新到zotero7后可以阅读epub文件,我在使用过程中发现epub文件无法使用zotcard建立笔记,点击后没有反应。其他文件可以流畅使用。不知道是不是bug T T。

发现有些HTML代码不支持的情况?

在ZotCard配置里面是完全正常显示的,但是建卡后,有些 代码就不能正常显示了。
1.比如样式设置;
2.表格设置可以输入,但是建卡后不能正常输入文字;【比如下面代码中表格中要点三后面的输入框和问题后面的输入框】
有没有高手能指点一二??

代码如下:
文献信息表

表格:

标题 ${title}
中文 写入标题翻译
年份 ${date} IF ${libraryCatalog}区${callNumber}分 期刊 ${journalAbbreviation}
一作 ${authors}
作者单位 作者单位代码
摘要 摘要内容
要点一 具体酶内容 问题 <textarea name="message" rows="10" cols="30">The cat was playing in the garden.问题内容</textarea>
要点二 底物具体内容
要点三 可输入的内容:细胞过程/机制

求适配zotero7

这个插件实在是太好用了,现在从6换到7,发现还没有适配,如果能适配的话那就太棒啦,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.