sawhney17 / logseq-citation-manager

73 stars 11 forks source link

[Bug] Cannot parse multiple `{keyword}`s #14

Closed rsomani95 closed 2 years ago

rsomani95 commented 2 years ago

Hello. Firstly, thank you for creating this plugin! It's eons better than what LogSeq has by default.

The Error

Parsing multiple keywords doesn't happen correctly. Only the first keyword is actually in the page, everything else is ignored.

Here's what the .bib citation looks like

@article{WorldShiftsWhen__Yong__2019,
  title = {The {{World Shifts When}} a {{Black Widow Squats}}},
  author = {Yong, Ed},
  date = {2019-01-09T14:42:45Z},
  journaltitle = {The Atlantic},
  url = {https://www.theatlantic.com/science/archive/2019/01/entire-black-widow-spider-sensor/579814/},
  urldate = {2019-06-03},
  abstract = {By changing its posture on its web, the arachnid can tune vibration in its legs to different frequencies.},
  entrysubtype = {magazine},
  langid = {english},
  keywords = {biodiversity,biology,black-widow,cognition,crickets,emobied-cognition,insect,octopus,spider},
  file = {/Users/rahulsomani/ZotFiles/yong_2019_the_world_shifts_when_a_black_widow_squats.html}
}

Here's the relevant line from my template:

tags:: {keywords}

And here's how it gets displayed in LogSeq:

tags:: biodiversity, 

Correct Output

tags:: biodiversity,biology,black-widow,cognition,crickets,emobied-cognition,insect,octopus,spider

Thanks!

sawhney17 commented 2 years ago

update and use keywords+

rsomani95 commented 2 years ago

@sawhney17 awesome, that works. Thank you!