Open wliustc opened 9 months ago
`
[!INFO]+ Metadata Key Value Authors <%=it.authors.map(author => [[${author}]]).join(', ')%> Date <%= it.date%> Journal <%= it.publicationTitle %> DOI [<%= it.DOI %>](<%= 'https://doi.org/'+ it.DOI %>) Url [<%= it.url %>](<%= it.url %>) Groups <%= it.collections.join(', ') %> itemLink [My Library](<%= it.backlink %>) PDFLink [<%=it.attachment.path.toString().replaceAll ('attachments:','') %>](<%= "zotero://open-pdf/library/items/"+ it.attachment.key.toString().replaceAll ('attachments:','') %>) ModifyDate <%= it.dateModified %> AddDate <%= it.dateAdded %> Tags <%=it.tags.map(tag => '#' + tag.toString().replaceAll(' ', '__')).join(', ')%> ^Metadata [!quote]- Abstract <% if (it.abstractNote) { %><%= it.abstractNote.toString().replaceAll('\n', '') %> <% } %>
[!INFO]+
[[${author}]]
^Metadata
[!quote]-
<% if (it.abstractNote) { %><%= it.abstractNote.toString().replaceAll('\n', '') %> <% } %>
[!WARNING]+ Summary ✏️ Comment:: 🎯 Problem:: 🔎 Backgroud:: 🚀 Method:: 🐔 TechInfo:: 📺 Content:: 🎉 Conclusion:: 🗝️ Innovation:: 💩 Limitation:: 🐾 prospection::
[!WARNING]+
✏️ Comment::
🎯 Problem::
🔎 Backgroud::
🚀 Method::
🐔 TechInfo::
📺 Content::
🎉 Conclusion::
🗝️ Innovation::
💩 Limitation::
🐾 prospection::
[!WARNING]+ Annoations
<%~ include("annots", it.annotations) %>
[!tldr]- hidden info itemType:: <%= it.itemType %> title:: <%= it.title %> creators:: <%=it.authors.map(author => [[${author}]]).join(', ')%> publicationTitle:: [[<%= it.publicationTitle %>]] University:: [[<%= it.university %>]] DOI:: [<%= it.DOI %>](<%= 'https://doi.org/'+ it.DOI %>) Url:: [<%= it.url %>](<%= it.url %>) date:: <% =it.date%> archiveLocation:: <%= it.archiveLocation %> collection::[[ <%= it.collections.join(', ') %>]] tags:: <%=it.tags.map(tag => '#' + tag.toString().replaceAll(' ', '__')).join(', ')%> itemLink:: [My Library](<%= it.backlink %>) pdfLink:: [<%=it.attachment.path.toString().replaceAll ('attachments:','') %>](<%= "zotero://open-pdf/library/items/"+ it.attachment.key.toString().replaceAll ('attachments:','') %>) citeKey:: <%= it.citekey %> dateAdded:: <%= it.dateAdded %> dateModified:: <%= it.dateModified %> abstract:: <%= it.abstractNote %>`
[!tldr]-
itemType:: <%= it.itemType %> title:: <%= it.title %> creators:: <%=it.authors.map(author => [[${author}]]).join(', ')%> publicationTitle:: [[<%= it.publicationTitle %>]] University:: [[<%= it.university %>]] DOI:: [<%= it.DOI %>](<%= 'https://doi.org/'+ it.DOI %>) Url:: [<%= it.url %>](<%= it.url %>) date:: <% =it.date%> archiveLocation:: <%= it.archiveLocation %> collection::[[ <%= it.collections.join(', ') %>]] tags:: <%=it.tags.map(tag => '#' + tag.toString().replaceAll(' ', '__')).join(', ')%> itemLink:: [My Library](<%= it.backlink %>) pdfLink:: [<%=it.attachment.path.toString().replaceAll ('attachments:','') %>](<%= "zotero://open-pdf/library/items/"+ it.attachment.key.toString().replaceAll ('attachments:','') %>) citeKey:: <%= it.citekey %> dateAdded:: <%= it.dateAdded %> dateModified:: <%= it.dateModified %> abstract:: <%= it.abstractNote %>`
` <% const byColor = Object.groupBy(it, (annot) => annot.colorName); const label = { "red": "[red] good sentences", "orange": "[orange] perspective", "yellow": "[yellow] important issue", "gray": "[gray] new words", "green": "[green] experiment info", "cyan": "青色", "blue": "[blue] theoretical method", "navy": "海军蓝", "purple": "紫色", "brown": "棕色", "magenta": "品红", }; // 合并有标签的颜色和任何未指定标签的颜色 // 保持在label中设置的颜色顺序 const colorSet = new Set([...Object.keys(label), ...Object.keys(byColor)]); for (const color of colorSet) { if (!(color in byColor)) continue -%>
<% for (const annot of byColor[color]) { %> <%~ include("annotation", annot) %> <% } %> <% } %>
`-------
<%= it.imgEmbed %><%= it.text %>[p<%= it.page %>](<%= it.backlink %>) <% if (it.comment) { %> <%= it.comment %> <% } %> `
zt-note.eta
`
<%= it.title %>
<%~ include("annots", it.annotations) %>
zt-annots.eta
` <% const byColor = Object.groupBy(it, (annot) => annot.colorName); const label = { "red": "[red] good sentences", "orange": "[orange] perspective", "yellow": "[yellow] important issue", "gray": "[gray] new words", "green": "[green] experiment info", "cyan": "青色", "blue": "[blue] theoretical method", "navy": "海军蓝", "purple": "紫色", "brown": "棕色", "magenta": "品红", }; // 合并有标签的颜色和任何未指定标签的颜色 // 保持在label中设置的颜色顺序 const colorSet = new Set([...Object.keys(label), ...Object.keys(byColor)]); for (const color of colorSet) { if (!(color in byColor)) continue -%>
<%= label[color] ?? color %>
<% for (const annot of byColor[color]) { %> <%~ include("annotation", annot) %> <% } %> <% } %>
zt-annot.eta
`-------
<%= it.imgEmbed %><%= it.text %>[p<%= it.page %>](<%= it.backlink %>) <% if (it.comment) { %> <%= it.comment %> <% } %> `