notero icon indicating copy to clipboard operation
notero copied to clipboard

importing related references

Open fredericky123 opened this issue 3 years ago • 10 comments

I know both Zotero and Noiton have related references, however, the related references stored in Zotero didn't store to Notion, can we sync it? Thanks a ton!

fredericky123 avatar May 30 '22 05:05 fredericky123

Hi, is there any progress? By the way, if I want to add a property named "importance" according to my "tags", how to do this in Notion? More specific, when the "tags" include three stars, I want to the "importance" to be the three stars, the same for one to five stars for "tags" Thanks a ton!

image

fredericky123 avatar Feb 28 '23 15:02 fredericky123

@fredericky123, I haven't had a chance to get to this one yet, but it's on the todo list.

As for adding an "importance" property, I think you can do something similar to what I shared in https://github.com/dvanoni/notero/issues/184#issuecomment-1334847133.

If you make it a formula property, I think you can use a formula like this:

if(contains(prop("Tags"), "⭐⭐⭐⭐⭐"), "⭐⭐⭐⭐⭐", if(contains(prop("Tags"), "⭐⭐⭐⭐"), "⭐⭐⭐⭐", if(contains(prop("Tags"), "⭐⭐⭐"), "⭐⭐⭐", if(contains(prop("Tags"), "⭐⭐"), "⭐⭐", if(contains(prop("Tags"), "⭐"), "⭐", "")))))

dvanoni avatar Mar 01 '23 05:03 dvanoni

Thanks Dvanoni! However, using the formular, no matter how many stars in the tags, it will always show one star in the importance property image

fredericky123 avatar Mar 01 '23 06:03 fredericky123

Hmm that's strange. Just to confirm, did you copy and paste the exact formula I shared above? The order of the if checks is important because it needs to match the highest number of stars first.

dvanoni avatar Mar 01 '23 06:03 dvanoni

Yes, I copied the formular

fredericky123 avatar Mar 01 '23 06:03 fredericky123

image

fredericky123 avatar Mar 01 '23 06:03 fredericky123

Darn, that looks exactly like what I have on my side, and it seems to be working for me.

I may have come up with a simpler approach. The caveat with this formula is that it will be incorrect if you have any other tags that include the ⭐ character. But if you're only using ⭐ for these 1–5 tags, then I think this might work!

replaceAll(prop("Tags"), "[^⭐]", "")

dvanoni avatar Mar 01 '23 06:03 dvanoni

If you wanted, you could also turn this into a number using the following formula:

length(replaceAll(prop("Tags"), "[^⭐]", ""))

And then you could use the "bar" or "ring" view in Notion:

CleanShot 2023-02-28 at 22 55 46@2x

dvanoni avatar Mar 01 '23 06:03 dvanoni

Great! This exactly works!

fredericky123 avatar Mar 01 '23 07:03 fredericky123