stefanopagliari / bibnotes

359 stars 30 forks source link

CityKey issue #155

Closed nestor50 closed 1 year ago

nestor50 commented 1 year ago

Hello, I'm having some problems in making the {{citeKey}} value to be written in a yaml field and in the corresponding metadata field. Last time I imported from Zotero everything worked but now what I get in front matter is: title: {{citeKey}}

As if the citeKey field in Zotero was empty (even though in Zotero the cite key is set and visible. Same occurs in the Metadata Box:

Citekey: {{citeKey}}

What am I doing wrong? thanks!

celtickuma commented 1 year ago

Had the same problem. Correct citekey was showing up in the title of the file, but not in the YAML data. Reviewed the .json export file and changed {{citekey}} to {{citationKey}} as per the .json and all is right with the world. Changed all instances of {{citekey}} to {{citationKey}}.

nestor50 commented 1 year ago

Thanks a lot @celtickuma !!! If I understand correctly the instances that should be changed are the {{citeKey}} instances in the plugin template, right? (I did this and it seems that it works but don't know if I'm gonna mess around something!)

celtickuma commented 1 year ago

I'm certainly no expert, and have no idea what caused the change, but since we both experienced it at about the same time, I'm pretty sure something changed in Zotero, BetterBibTex, or bibnotes. I just figured anything that I change in those templates can be changed back if there are negative impacts. So far, everything seems to work as expected.

stefanopagliari commented 1 year ago

@nestor50; @celtickuma Thank you for flagging this issue. I was able to replicate the problem on my end using a recently exported library.

I think I have fixed this. Now both {{citeKey}} and {{citationKey}} are recognised on my end. I'm going to close this but please reopen it if it does not work on your end as intended