[Item] Literature Summary Note with metadata and links (Markdown) #857
Replies: 5 comments 12 replies
-
Wonderful! For the beta version of BN, you may want to replace the ${itemNotes.map((noteItem)=>{
const notePar = `
---
${noteItem.getNote()}
---
`;
copyNoteImage(noteItem);
return notePar;
}).join("\n")} with ${await Zotero.BetterNotes.api.note2html(itemNotes, { targetNoteItem })} See also zotero-better-notes/src/modules/convert/api.ts Lines 230 to 233 in f976d60 |
Beta Was this translation helpful? Give feedback.
-
hi, how to fix this? |
Beta Was this translation helpful? Give feedback.
-
Small update: I shortened the code to fetch a link to the local zotero item. It should now work for items without a PDF attachment as well, and now looks like this:
I tried implementing the "newer" format of |
Beta Was this translation helpful? Give feedback.
-
New to templates in Zotero...every time I have attempted to use this, I get an: Template [Literature Review] Error: ReferenceError: topItem is not defined It looks as though this refers to the cite - and BibTex is installed and generating a key - but, it still does absolutely nothing. Realize this must be my error - but don't really understand how to fix it. Any help you can provide would be very appreciated. |
Beta Was this translation helpful? Give feedback.
-
I am having some difficulty with BetterNotes being used by the Literature Template I installed into Zotero. While simple info is coming through fine...when it comes to BetterNotes - I am getting this: Have I missed a setting? Or is the Lit Review template not supposed to import the relevant BetterNotes? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Description
This is a template I made to take summary notes of literature. The notes are intended to be exported and used with an external markdown editor (in my case Zettlr), while including metadata from Zotero and links to the parent item and the PDF (both of which should open in Zotero).
It works for almost all item types in Zotero (ie. journal articles, conference papers, reports, books, book sections, encyclopedia articles, newspaper articles, theses, webpages, blog posts, magazine articles, documents, and dictionary entries). Information such as publisher, DOI, ISBN, etc. automatically adapt to the right item type.
Obviously, it is very much adapted to my own style of note taking. Feel free to do the same for your own needs.
Overview of contents
Instructions
TypeError: Zotero.Items.get(...).filter(...)[0] is undefined
, you are probably using the template on an item with no PDF attachment, which will not work. For items with no PDF attachment, use this version of the template instead: [Item] Literature Summary Note with metadata and links (Markdown) #857 (reply in thread)Issues
There are some issues that I have so far been unable to resolve with this template:
TypeError: Zotero.Items.get(...).filter(...)[0] is undefined
If this is a problem for you, just remove the fragment of code for PDF linking:topItem.getField("editor")
does not work. I don't know what other key to use.These are minor issues, which don't break the template. However, if anyone knows of a solution for any of them, feel free to comment below.
Screenshots
Test on Zotero version
6.0.30
Test on Better Notes version
1.0.4
Template Type
Item
Template Share Code
Anything else
No response
Beta Was this translation helpful? Give feedback.
All reactions